summaryrefslogtreecommitdiff
path: root/lang/python23
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2003-08-06 11:38:10 +0000
committerdrochner <drochner@pkgsrc.org>2003-08-06 11:38:10 +0000
commit6e80dc318e8140239a8817772d7e5764c2631566 (patch)
treec7587a1f40431ed4bca2af9100b6124067af97a9 /lang/python23
parent89febf819ddf5c718e6f7a1a56d0f52f94c90e73 (diff)
downloadpkgsrc-6e80dc318e8140239a8817772d7e5764c2631566.tar.gz
-add a patch from Marc Recht vie pkgsrc-wip which meddes with these
XOPEN/POSIX/NetBSD_SOURCE definitions so that it builds on 1.6.x -pull in some GNU-pth related fixes from Python-2.2-pth
Diffstat (limited to 'lang/python23')
-rw-r--r--lang/python23/distinfo3
-rw-r--r--lang/python23/patches/patch-al42
2 files changed, 44 insertions, 1 deletions
diff --git a/lang/python23/distinfo b/lang/python23/distinfo
index b10c596cee6..6fcf3e84ca3 100644
--- a/lang/python23/distinfo
+++ b/lang/python23/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.2 2003/08/06 11:05:27 drochner Exp $
+$NetBSD: distinfo,v 1.3 2003/08/06 11:38:10 drochner Exp $
SHA1 (Python-2.3.tgz) = ce5fbde09be17ea5dddd4baa62d2b90e06e7e5c1
Size (Python-2.3.tgz) = 8436880 bytes
@@ -6,4 +6,5 @@ SHA1 (patch-aa) = cf9b037bdd2c7db5ebee79d6327d1961d519cd31
SHA1 (patch-ae) = ff045dc1b42ce8a4fe5e64fde72469e1be8dab28
SHA1 (patch-ai) = 75d30db64343afcf2f0bcfe8e73dc9948acb237e
SHA1 (patch-aj) = 1e3ce4072e90cb7be6d0a5539ec213b56518dcc7
+SHA1 (patch-al) = 5429c1c50e1b58495ad93477d19a82b81a713076
SHA1 (patch-bb) = 1390c5f0bcd75f5f3f1b9949921b555e1021954f
diff --git a/lang/python23/patches/patch-al b/lang/python23/patches/patch-al
new file mode 100644
index 00000000000..fa5272eb73c
--- /dev/null
+++ b/lang/python23/patches/patch-al
@@ -0,0 +1,42 @@
+$NetBSD: patch-al,v 1.1 2003/08/06 11:38:10 drochner Exp $
+
+--- pyconfig.h.in.orig 2003-07-22 17:20:49.000000000 +0200
++++ pyconfig.h.in 2003-08-02 15:50:34.000000000 +0200
+@@ -835,6 +835,10 @@
+ /* Define _OSF_SOURCE to get the makedev macro. */
+ #undef _OSF_SOURCE
+
++/* These defines disable needed library functions on NetBSD < 1.6T */
++/* ( _NETBSD_SOURCE doesn't exist prior to 1.6T ) */
++#if defined(__NetBSD_Version__) && (__NetBSD_Version__ < 106200000)
++
+ /* Define to 2 if the system does not provide POSIX.1 features except with
+ this defined. */
+ #undef _POSIX_1_SOURCE
+@@ -845,18 +849,26 @@
+ /* Define to 1 if you need to in order for `stat' and other things to work. */
+ #undef _POSIX_SOURCE
+
++#endif
++
+ /* Define if you have POSIX threads, and your system does not define that. */
+ #undef _POSIX_THREADS
+
+ /* Define to force use of thread-safe errno, h_errno, and other functions */
+ #undef _REENTRANT
+
++/* These defines disable needed library functions on NetBSD < 1.6T */
++/* ( _NETBSD_SOURCE doesn't exists prior to 1.6T ) */
++#if defined(__NetBSD_Version__) && (__NetBSD_Version__ < 106200000)
++
+ /* Define to the level of X/Open that your system supports */
+ #undef _XOPEN_SOURCE
+
+ /* Define to activate Unix95-and-earlier features */
+ #undef _XOPEN_SOURCE_EXTENDED
+
++#endif
++
+ /* Define on FreeBSD to activate all library features */
+ #undef __BSD_VISIBLE
+