[55669] trunk/dports/lang/python25
landonf at macports.org
landonf at macports.org
Sun Aug 16 11:17:15 PDT 2009
Revision: 55669
http://trac.macports.org/changeset/55669
Author: landonf at macports.org
Date: 2009-08-16 11:17:13 -0700 (Sun, 16 Aug 2009)
Log Message:
-----------
Fix building of native Python modules on 10.6
Modified Paths:
--------------
trunk/dports/lang/python25/Portfile
Added Paths:
-----------
trunk/dports/lang/python25/files/patch-pyconfig.h.in.diff
Modified: trunk/dports/lang/python25/Portfile
===================================================================
--- trunk/dports/lang/python25/Portfile 2009-08-16 17:53:35 UTC (rev 55668)
+++ trunk/dports/lang/python25/Portfile 2009-08-16 18:17:13 UTC (rev 55669)
@@ -165,7 +165,8 @@
configure.args-append --disable-toolbox-glue --disable-framework
configure.cppflags-append -D_DARWIN_C_SOURCE
patchfiles-append patch-configure-badcflags.diff \
- patch-configure-arch_only.diff
+ patch-configure-arch_only.diff \
+ patch-pyconfig.h.in.diff
}
platform puredarwin {
Added: trunk/dports/lang/python25/files/patch-pyconfig.h.in.diff
===================================================================
--- trunk/dports/lang/python25/files/patch-pyconfig.h.in.diff (rev 0)
+++ trunk/dports/lang/python25/files/patch-pyconfig.h.in.diff 2009-08-16 18:17:13 UTC (rev 55669)
@@ -0,0 +1,13 @@
+--- pyconfig.h.in.orig 2009-08-16 10:22:50.000000000 -0700
++++ pyconfig.h.in 2009-08-16 10:23:24.000000000 -0700
+@@ -4,6 +4,10 @@
+ #ifndef Py_PYCONFIG_H
+ #define Py_PYCONFIG_H
+
++// Required on Darwin 10+
++#ifndef _DARWIN_C_SOURCE
++#define _DARWIN_C_SOURCE
++#endif
+
+ /* Define for AIX if your compiler is a genuine IBM xlC/xlC_r and you want
+ support for AIX C++ shared extension modules. */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090816/9a8bd3f0/attachment-0001.html>
More information about the macports-changes
mailing list