[46414] trunk/dports/sysutils/daemon

stechert at macports.org stechert at macports.org
Wed Feb 4 08:12:17 PST 2009


Revision: 46414
          http://trac.macports.org/changeset/46414
Author:   stechert at macports.org
Date:     2009-02-04 08:12:16 -0800 (Wed, 04 Feb 2009)
Log Message:
-----------
Fixes #15425 - daemon-0.6.3 build failure

Modified Paths:
--------------
    trunk/dports/sysutils/daemon/Portfile

Added Paths:
-----------
    trunk/dports/sysutils/daemon/files/
    trunk/dports/sysutils/daemon/files/patch-macros.mk

Modified: trunk/dports/sysutils/daemon/Portfile
===================================================================
--- trunk/dports/sysutils/daemon/Portfile	2009-02-04 16:11:26 UTC (rev 46413)
+++ trunk/dports/sysutils/daemon/Portfile	2009-02-04 16:12:16 UTC (rev 46414)
@@ -19,7 +19,12 @@
 master_sites	${homepage}/download/
 checksums		md5 d2f3001b20bb035d55202f1945c0a0ee
 
+patch.pre_args  -p2
+patchfiles      patch-macros.mk
+
 configure.cmd	./config
+configure.env-append    _NO_POSIX_C_SOURCE=1
+build.env-append        _NO_POSIX_C_SOURCE=1
 
 test.run		yes
 test.target		check

Added: trunk/dports/sysutils/daemon/files/patch-macros.mk
===================================================================
--- trunk/dports/sysutils/daemon/files/patch-macros.mk	                        (rev 0)
+++ trunk/dports/sysutils/daemon/files/patch-macros.mk	2009-02-04 16:12:16 UTC (rev 46414)
@@ -0,0 +1,22 @@
+diff -ruN work/daemon-0.6.3/libslack/macros.mk work/daemon-0.6.3-orig/libslack/macros.mk
+--- work/daemon-0.6.3/libslack/macros.mk	2009-02-04 07:59:53.000000000 -0800
++++ work/daemon-0.6.3-orig/libslack/macros.mk	2009-02-04 07:55:47.000000000 -0800
+@@ -27,6 +27,7 @@
+ # SLACK_DEFINES += -DETC_DIR=\"/etc\"
+ # SLACK_DEFINES += -DROOT_PID_DIR=\"/var/run\"
+ # SLACK_DEFINES += -DUSER_PID_DIR=\"/tmp\"
++SLACK_DEFINES += -DNO_POSIX_C_SOURCE=1
+ 
+ # Uncomment this if your system doesn't have GNU getopt_long()
+ #
+diff -ruN work/daemon-0.6.3/macros.mk work/daemon-0.6.3-orig/macros.mk
+--- work/daemon-0.6.3/macros.mk	2009-02-04 07:59:53.000000000 -0800
++++ work/daemon-0.6.3-orig/macros.mk	2009-02-04 07:55:47.000000000 -0800
+@@ -56,6 +56,7 @@
+ DAEMON_DEFINES += -DHAVE_PTHREAD_RWLOCK=1
+ # DAEMON_DEFINES += -DNO_POSIX_SOURCE=1
+ # DAEMON_DEFINES += -DNO_XOPEN_SOURCE=1
++DAEMON_DEFINES += -DNO_POSIX_C_SOURCE=1
+ 
+ DAEMON_TARGET := $(DAEMON_SRCDIR)/$(DAEMON_NAME)
+ DAEMON_MODULES := daemon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090204/e7f01555/attachment.html>


More information about the macports-changes mailing list