summaryrefslogtreecommitdiff
path: root/lang/python23/patches
diff options
context:
space:
mode:
authorminskim <minskim>2005-06-30 03:38:22 +0000
committerminskim <minskim>2005-06-30 03:38:22 +0000
commit333d0639e892350f2adc6761594b962ce432c52b (patch)
tree6a7b36efe81785e240c9d4e8a35a53c906309aeb /lang/python23/patches
parentd77839a768d5419116646a76a3e0f9f01f317ec7 (diff)
downloadpkgsrc-333d0639e892350f2adc6761594b962ce432c52b.tar.gz
Backport from Python-2.4 a configure condition that prevents
_POSIX_C_SOURCE from being defined on Darwin-8.x. This makes the package build on Darwin-8.x.
Diffstat (limited to 'lang/python23/patches')
-rw-r--r--lang/python23/patches/patch-al34
1 files changed, 23 insertions, 11 deletions
diff --git a/lang/python23/patches/patch-al b/lang/python23/patches/patch-al
index ad2f021e938..2b65632a304 100644
--- a/lang/python23/patches/patch-al
+++ b/lang/python23/patches/patch-al
@@ -1,6 +1,6 @@
-$NetBSD: patch-al,v 1.11 2005/02/15 12:25:07 drochner Exp $
+$NetBSD: patch-al,v 1.12 2005/06/30 03:38:22 minskim Exp $
---- configure.orig 2005-01-11 14:48:52.000000000 +0100
+--- configure.orig 2005-01-11 07:48:52.000000000 -0600
+++ configure
@@ -1481,6 +1481,8 @@ case $ac_sys_system/$ac_sys_release in
# Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
@@ -11,7 +11,19 @@ $NetBSD: patch-al,v 1.11 2005/02/15 12:25:07 drochner Exp $
# On Solaris 2.6, sys/wait.h is inconsistent in the usage
# of union __?sigval. Reported by Stuart Bishop.
SunOS/5.6)
-@@ -3733,7 +3735,7 @@ _ACEOF
+@@ -1505,6 +1507,11 @@ case $ac_sys_system/$ac_sys_release in
+ # has another value. By not (re)defining it, the defaults come in place.
+ AIX/4)
+ define_xopen_source=no;;
++ # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
++ # disables platform specific features beyond repair.
++ Darwin/8.*)
++ define_xopen_source=no
++ ;;
+ esac
+
+ if test $define_xopen_source = yes
+@@ -3733,7 +3740,7 @@ _ACEOF
RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
INSTSONAME="$LDLIBRARY".$SOVERSION
;;
@@ -20,7 +32,7 @@ $NetBSD: patch-al,v 1.11 2005/02/15 12:25:07 drochner Exp $
LDLIBRARY='libpython$(VERSION).so'
BLDLIBRARY='-L. -lpython$(VERSION)'
RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
-@@ -3754,6 +3756,14 @@ _ACEOF
+@@ -3754,6 +3761,14 @@ _ACEOF
BLDLIBRARY='-L. -lpython$(VERSION)'
RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
;;
@@ -35,7 +47,7 @@ $NetBSD: patch-al,v 1.11 2005/02/15 12:25:07 drochner Exp $
esac
# DG/UX requires some fancy ld contortions to produce a .so from an .a
case $MACHDEP in
-@@ -4152,7 +4162,12 @@ echo "${ECHO_T}$ac_cv_no_strict_aliasing
+@@ -4152,7 +4167,12 @@ echo "${ECHO_T}$ac_cv_no_strict_aliasing
;;
# is there any other compiler on Darwin besides gcc?
Darwin*)
@@ -49,7 +61,7 @@ $NetBSD: patch-al,v 1.11 2005/02/15 12:25:07 drochner Exp $
;;
esac
;;
-@@ -10979,7 +10994,7 @@ then
+@@ -10979,7 +10999,7 @@ then
LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
else
# No framework. Ignore undefined symbols, assuming they come from Python
@@ -58,7 +70,7 @@ $NetBSD: patch-al,v 1.11 2005/02/15 12:25:07 drochner Exp $
fi ;;
Darwin/1.4*|Darwin/5.*|Darwin/6.*)
LDSHARED='$(CC) $(LDFLAGS) -bundle'
-@@ -11009,12 +11024,12 @@ then
+@@ -11009,12 +11029,12 @@ then
LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
else
# No framework, use the Python app as bundle-loader
@@ -74,7 +86,7 @@ $NetBSD: patch-al,v 1.11 2005/02/15 12:25:07 drochner Exp $
dgux*) LDSHARED="ld -G";;
BSD/OS*/4*) LDSHARED="gcc -shared";;
OpenBSD*|FreeBSD*)
-@@ -11024,7 +11039,8 @@ then
+@@ -11024,7 +11044,8 @@ then
else
LDSHARED="ld -Bshareable ${LDFLAGS}"
fi;;
@@ -84,7 +96,7 @@ $NetBSD: patch-al,v 1.11 2005/02/15 12:25:07 drochner Exp $
OpenUNIX*|UnixWare*)
if test "$GCC" = "yes"
then LDSHARED='$(CC) -shared'
-@@ -11057,6 +11073,7 @@ then
+@@ -11057,6 +11078,7 @@ then
Linux*|GNU*) CCSHARED="-fPIC";;
BSD/OS*/4*) CCSHARED="-fpic";;
FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";;
@@ -92,7 +104,7 @@ $NetBSD: patch-al,v 1.11 2005/02/15 12:25:07 drochner Exp $
OpenUNIX*|UnixWare*)
if test "$GCC" = "yes"
then CCSHARED="-fPIC"
-@@ -11116,6 +11133,7 @@ then
+@@ -11116,6 +11138,7 @@ then
then
LINKFORSHARED="-Wl,--export-dynamic"
fi;;
@@ -100,7 +112,7 @@ $NetBSD: patch-al,v 1.11 2005/02/15 12:25:07 drochner Exp $
SunOS/5*) case $CC in
*gcc*)
if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
-@@ -15127,6 +15145,7 @@ cat >>conftest.$ac_ext <<_ACEOF
+@@ -15127,6 +15150,7 @@ cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include "confdefs.h"