[35260] trunk/dports/lang/python23
jmr at macports.org
jmr at macports.org
Sun Mar 23 00:16:38 PDT 2008
Revision: 35260
http://trac.macosforge.org/projects/macports/changeset/35260
Author: jmr at macports.org
Date: 2008-03-23 00:16:32 -0700 (Sun, 23 Mar 2008)
Log Message:
-----------
python23: fix building on Leopard. Closes #14021.
Modified Paths:
--------------
trunk/dports/lang/python23/Portfile
trunk/dports/lang/python23/files/patch-configure.in
Added Paths:
-----------
trunk/dports/lang/python23/files/patch-Include_pyport.h.diff
Modified: trunk/dports/lang/python23/Portfile
===================================================================
--- trunk/dports/lang/python23/Portfile 2008-03-23 04:15:55 UTC (rev 35259)
+++ trunk/dports/lang/python23/Portfile 2008-03-23 07:16:32 UTC (rev 35260)
@@ -55,13 +55,17 @@
configure.args-append --disable-toolbox-glue
}
-variant x86 {
+platform darwin i386 {
configure.args-append --disable-toolbox-glue
}
platform darwin 8 {
patchfiles-append patch-darwin8-pyconfig.h.in
}
+platform darwin 9 {
+ patchfiles-append patch-darwin8-pyconfig.h.in \
+ patch-Include_pyport.h.diff
+}
variant pydebug {
configure.args-append --with-pydebug
@@ -72,8 +76,8 @@
configure.args-append --with-readline
}
-variant darwin {
- if {![variant_isset puredarwin] && ![variant_isset x86]} {
+platform darwin {
+ if {![variant_isset puredarwin] && ![variant_isset darwin_i386]} {
configure.env-append LIBS="-framework CoreServices \
-framework Foundation"
}
Added: trunk/dports/lang/python23/files/patch-Include_pyport.h.diff
===================================================================
--- trunk/dports/lang/python23/files/patch-Include_pyport.h.diff (rev 0)
+++ trunk/dports/lang/python23/files/patch-Include_pyport.h.diff 2008-03-23 07:16:32 UTC (rev 35260)
@@ -0,0 +1,10 @@
+--- Include/pyport.h.orig 2008-03-03 07:32:57.000000000 +1100
++++ Include/pyport.h 2008-03-23 17:19:06.000000000 +1100
+@@ -366,6 +366,7 @@
+ #if !defined(HAVE_PTY_H) && !defined(HAVE_LIBUTIL_H)
+ /* BSDI does not supply a prototype for the 'openpty' and 'forkpty'
+ functions, even though they are included in libutil. */
++#include <sys/ioctl.h>
+ #include <termios.h>
+ extern int openpty(int *, int *, char *, struct termios *, struct winsize *);
+ extern int forkpty(int *, char *, struct termios *, struct winsize *);
Modified: trunk/dports/lang/python23/files/patch-configure.in
===================================================================
--- trunk/dports/lang/python23/files/patch-configure.in 2008-03-23 04:15:55 UTC (rev 35259)
+++ trunk/dports/lang/python23/files/patch-configure.in 2008-03-23 07:16:32 UTC (rev 35260)
@@ -53,7 +53,7 @@
Defined for Solaris 2.6 bug in pthread header.)
;;
- SunOS/5.8) AC_DEFINE(HAVE_BROKEN_POSIX_SEMAPHORES, 1,
-+ SunOS/5.8 | Darwin/8*) AC_DEFINE(HAVE_BROKEN_POSIX_SEMAPHORES, 1,
++ SunOS/5.8 | Darwin/8* | Darwin/9*) AC_DEFINE(HAVE_BROKEN_POSIX_SEMAPHORES, 1,
Define if the Posix semaphores do not work on your system)
;;
esac
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080323/d4f20284/attachment.html
More information about the macports-changes
mailing list