summaryrefslogtreecommitdiff
path: root/lang/python26
diff options
context:
space:
mode:
authorhans <hans@pkgsrc.org>2011-12-16 17:04:17 +0000
committerhans <hans@pkgsrc.org>2011-12-16 17:04:17 +0000
commit4422518b272f56daa3012d07125eb301d09f1198 (patch)
treeee85536d2154575ddfcce07d5d5e401e9eeee325 /lang/python26
parentb559c789bf3a2700b4c60a05a09141ef5816a83e (diff)
downloadpkgsrc-4422518b272f56daa3012d07125eb301d09f1198.tar.gz
On SunOS, don't ever override _XOPEN_SOURCE if it is already set.
Fixes build on SunOS with gcc>=4.6.
Diffstat (limited to 'lang/python26')
-rw-r--r--lang/python26/distinfo3
-rw-r--r--lang/python26/patches/patch-pyconfig.h.in14
2 files changed, 16 insertions, 1 deletions
diff --git a/lang/python26/distinfo b/lang/python26/distinfo
index 32f4ba4689e..4b6810de6c4 100644
--- a/lang/python26/distinfo
+++ b/lang/python26/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.41 2011/11/08 07:30:08 sbd Exp $
+$NetBSD: distinfo,v 1.42 2011/12/16 17:04:18 hans Exp $
SHA1 (Python-2.6.7.tar.bz2) = 5d35eb746e85fb3deaff8518448137c9b9fb6daa
RMD160 (Python-2.6.7.tar.bz2) = 513e84a7cb76ca876e3803bb03ed558bd0378063
@@ -24,3 +24,4 @@ SHA1 (patch-az) = 473419352f6e1ff3c6e6268e81457e6f8a1fccb8
SHA1 (patch-ba) = 97dcf72d7380a2d257220669845c52a698165fcf
SHA1 (patch-bb) = 6cdd94dd1e69630159194c7c153b6c4e46c81456
SHA1 (patch-bc) = 09aaa254a54109026bb262a949b4006235df7858
+SHA1 (patch-pyconfig.h.in) = ad0f7d60886849e58a03fb28bb6c5ba0600c4698
diff --git a/lang/python26/patches/patch-pyconfig.h.in b/lang/python26/patches/patch-pyconfig.h.in
new file mode 100644
index 00000000000..497080bb29b
--- /dev/null
+++ b/lang/python26/patches/patch-pyconfig.h.in
@@ -0,0 +1,14 @@
+$NetBSD: patch-pyconfig.h.in,v 1.1 2011/12/16 17:04:18 hans Exp $
+
+--- pyconfig.h.in.orig 2009-10-27 13:30:12.000000000 +0100
++++ pyconfig.h.in 2011-11-13 14:37:13.053045656 +0100
+@@ -1036,7 +1036,9 @@
+ #undef _REENTRANT
+
+ /* Define to the level of X/Open that your system supports */
++#if !defined(__sun) || (defined(__sun) && !defined(_XOPEN_SOURCE))
+ #undef _XOPEN_SOURCE
++#endif
+
+ /* Define to activate Unix95-and-earlier features */
+ #undef _XOPEN_SOURCE_EXTENDED