From 9bb2f5d5c1b99e7177344e450062010349cb69d0 Mon Sep 17 00:00:00 2001 From: hans Date: Thu, 16 Feb 2012 13:39:26 +0000 Subject: Fix build on SunOS. --- chat/anope/distinfo | 4 ++-- chat/anope/patches/patch-af | 21 +++++++++++++++++++-- chat/atheme/Makefile | 4 +++- chat/atheme/distinfo | 4 +++- chat/atheme/patches/patch-include_common.h | 15 +++++++++++++++ chat/atheme/patches/patch-include_stdinc.h | 15 +++++++++++++++ 6 files changed, 57 insertions(+), 6 deletions(-) create mode 100644 chat/atheme/patches/patch-include_common.h create mode 100644 chat/atheme/patches/patch-include_stdinc.h (limited to 'chat') diff --git a/chat/anope/distinfo b/chat/anope/distinfo index 0e5e9bb06ba..f16ae03016a 100644 --- a/chat/anope/distinfo +++ b/chat/anope/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.5 2009/12/17 20:56:46 abs Exp $ +$NetBSD: distinfo,v 1.6 2012/02/16 13:39:26 hans Exp $ SHA1 (anope-1.7.21.tar.gz) = 1a8c845fcfd6351a4225fc8e38bb6e90f5201a4b RMD160 (anope-1.7.21.tar.gz) = ac2b22d60e6be2e7ea02e933fc005c5b3b206180 @@ -8,4 +8,4 @@ SHA1 (patch-ab) = 9684780fa938db06f53014e7d45e9e6debf9e92c SHA1 (patch-ac) = d08a26c28b7e6130b7eb459a7109ad67160eb43d SHA1 (patch-ad) = 7b64822e486fa8673db8e47edc9b86c7183505c7 SHA1 (patch-ae) = 6c02aaa1d809e113338d35b672911269c1932d29 -SHA1 (patch-af) = 77e21789e0af1b845c417dabd02e2ad9a5e04239 +SHA1 (patch-af) = 1d874c5be0f624f2c83bd6d66be0ddc4ce29d3fe diff --git a/chat/anope/patches/patch-af b/chat/anope/patches/patch-af index a60b8f7fcdb..e10063f4dde 100644 --- a/chat/anope/patches/patch-af +++ b/chat/anope/patches/patch-af @@ -1,8 +1,25 @@ -$NetBSD: patch-af,v 1.1 2009/12/17 20:56:46 abs Exp $ +$NetBSD: patch-af,v 1.2 2012/02/16 13:39:26 hans Exp $ --- src/tools/Makefile.orig 2008-01-10 22:31:37.000000000 +0000 +++ src/tools/Makefile -@@ -30,10 +30,10 @@ clean: +@@ -16,8 +16,14 @@ all: ${OBJS} + + distclean: spotless + +-anopesmpt: $(OBJS) +- $(CC) $(CFLAGS) $(OBJS) $(ANOPELIBS) $(MLIBS) -o $@ $(LDFLAGS) ++anopesmtp: anopesmtp.o ++ $(CC) $(CFLAGS) $< $(ANOPELIBS) $(MLIBS) -o $@ $(LDFLAGS) ++ ++db-merger: db-merger.o ++ $(CC) $(CFLAGS) $< $(ANOPELIBS) $(MLIBS) -o $@ $(LDFLAGS) ++ ++epona2anope: epona2anope.o ++ $(CC) $(CFLAGS) $< $(ANOPELIBS) $(MLIBS) -o $@ $(LDFLAGS) + + $(OBJS): Makefile + anopesmtp.o: anopesmtp.c $(INCLUDES) +@@ -30,10 +36,10 @@ clean: spotless: clean install: anopesmtp db-merger epona2anope diff --git a/chat/atheme/Makefile b/chat/atheme/Makefile index 239083f6c61..e3484b91d4a 100644 --- a/chat/atheme/Makefile +++ b/chat/atheme/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2010/01/28 19:32:48 joerg Exp $ +# $NetBSD: Makefile,v 1.6 2012/02/16 13:46:52 hans Exp $ # DISTNAME= atheme-services-3.0.4 @@ -40,6 +40,8 @@ FILES_SUBST+= ATHEME_GROUP=${ATHEME_GROUP} .include "options.mk" +CFLAGS.SunOS+= -Dfaultcode_t=foo_faultcode_t -Dboolean_t=foo_boolean_t + CONFIGURE_ARGS+= --localstatedir=${VARBASE} CONFIGURE_ARGS+= --enable-fhs-paths CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} diff --git a/chat/atheme/distinfo b/chat/atheme/distinfo index 021b9a7bb95..a8967b16e0c 100644 --- a/chat/atheme/distinfo +++ b/chat/atheme/distinfo @@ -1,7 +1,9 @@ -$NetBSD: distinfo,v 1.1.1.1 2008/06/16 10:38:27 adrianp Exp $ +$NetBSD: distinfo,v 1.2 2012/02/16 13:46:52 hans Exp $ SHA1 (atheme-services-3.0.4.tbz2) = 1ba73fa07377f3ec31d03b0ac588141e10ad35b3 RMD160 (atheme-services-3.0.4.tbz2) = cca06369a1fd6989178b760efdbf745de28c9b60 Size (atheme-services-3.0.4.tbz2) = 580786 bytes SHA1 (patch-aa) = ea2122cbe3dc1f7ddbc62aa9bcc695a384dc575e SHA1 (patch-ab) = 49c72c026c24f0e2b5054a2297d80256ca37ed1d +SHA1 (patch-include_common.h) = ee4ab38b65f954d8a545e7f6d58f41b964b301e5 +SHA1 (patch-include_stdinc.h) = a7d2898581addaf7730270003b0f0eb30a455de9 diff --git a/chat/atheme/patches/patch-include_common.h b/chat/atheme/patches/patch-include_common.h new file mode 100644 index 00000000000..42d3e371b61 --- /dev/null +++ b/chat/atheme/patches/patch-include_common.h @@ -0,0 +1,15 @@ +$NetBSD: patch-include_common.h,v 1.1 2012/02/16 13:46:52 hans Exp $ + +--- include/common.h.orig 2008-02-11 03:58:08.000000000 +0100 ++++ include/common.h 2012-01-20 00:50:51.945230165 +0100 +@@ -111,6 +111,10 @@ enum faultcode_ + fault_unimplemented = 14 + }; + ++#ifdef __sun ++#undef faultcode_t ++#endif ++ + typedef enum faultcode_ faultcode_t; + + #if defined(__GNUC__) || defined(__INTEL_COMPILER) diff --git a/chat/atheme/patches/patch-include_stdinc.h b/chat/atheme/patches/patch-include_stdinc.h new file mode 100644 index 00000000000..0451e4b65d0 --- /dev/null +++ b/chat/atheme/patches/patch-include_stdinc.h @@ -0,0 +1,15 @@ +$NetBSD: patch-include_stdinc.h,v 1.1 2012/02/16 13:46:52 hans Exp $ + +--- include/stdinc.h.orig 2008-02-11 03:58:08.000000000 +0100 ++++ include/stdinc.h 2012-01-20 00:50:03.416296368 +0100 +@@ -46,6 +46,10 @@ + #include + #include + ++#ifdef __sun ++#undef boolean_t ++#endif ++ + typedef mowgli_boolean_t boolean_t; + + #endif -- cgit v1.2.3