summaryrefslogtreecommitdiff
path: root/lang/python27
diff options
context:
space:
mode:
authorrichard <richard@pkgsrc.org>2014-06-11 05:55:58 +0000
committerrichard <richard@pkgsrc.org>2014-06-11 05:55:58 +0000
commit9ac7bce553d7e49ad7b23f8b23e17e92a55b78d5 (patch)
tree883d1f136a1601c3739b32aded1c805af67ff329 /lang/python27
parentb6778d568628c4ef6fa25c4e63f3c92d62722c92 (diff)
downloadpkgsrc-9ac7bce553d7e49ad7b23f8b23e17e92a55b78d5.tar.gz
avoid conflicting declaration of gethostname on SunOS
Diffstat (limited to 'lang/python27')
-rw-r--r--lang/python27/Makefile4
-rw-r--r--lang/python27/distinfo3
-rw-r--r--lang/python27/patches/patch-Include_pyport.h18
3 files changed, 22 insertions, 3 deletions
diff --git a/lang/python27/Makefile b/lang/python27/Makefile
index d1f756f10a9..76e56cf03b4 100644
--- a/lang/python27/Makefile
+++ b/lang/python27/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.42 2014/06/09 17:58:31 he Exp $
+# $NetBSD: Makefile,v 1.43 2014/06/11 05:55:58 richard Exp $
.include "dist.mk"
PKGNAME= python27-${PY_DISTVERSION}
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= lang python
MAINTAINER= pkgsrc-users@NetBSD.org
diff --git a/lang/python27/distinfo b/lang/python27/distinfo
index 7aa75a680e5..5cc8f1c3f47 100644
--- a/lang/python27/distinfo
+++ b/lang/python27/distinfo
@@ -1,10 +1,11 @@
-$NetBSD: distinfo,v 1.41 2014/06/09 17:58:31 he Exp $
+$NetBSD: distinfo,v 1.42 2014/06/11 05:55:58 richard Exp $
SHA1 (Python-2.7.7.tar.xz) = 5f82557cac5abf18d1df6f8bb2029aa335b321f4
RMD160 (Python-2.7.7.tar.xz) = 988da9490e8d66a2456accdce5dbe9ba875d5a18
Size (Python-2.7.7.tar.xz) = 10496500 bytes
SHA1 (patch-Include_node.h) = 673d148b625711ac47e4bfeb0f5b0d5b31f94d7e
SHA1 (patch-Include_pyerrors.h) = 3eba043c83b1d1df4918524f7b53047a6ed372ae
+SHA1 (patch-Include_pyport.h) = 3f21c910cf7f002184d2b054a1a362e4a98a218f
SHA1 (patch-Lib_distutils_unixccompiler.py) = 39b967dc2ae648143d5841f22602a21063b4d5ea
SHA1 (patch-Lib_poplib.py) = 5d7f64b028abd2fd43651f27a7f2ce7efe5b0859
SHA1 (patch-Lib_smtplib.py) = f1118bbc53b4e292eb9a28ef3ef10eb4aa553bc3
diff --git a/lang/python27/patches/patch-Include_pyport.h b/lang/python27/patches/patch-Include_pyport.h
new file mode 100644
index 00000000000..10e5e50a2e2
--- /dev/null
+++ b/lang/python27/patches/patch-Include_pyport.h
@@ -0,0 +1,18 @@
+$NetBSD: patch-Include_pyport.h,v 1.1 2014/06/11 05:55:58 richard Exp $
+SunOS defines gethostname in <unistd.h>
+http://bugs.python.org/issue19561
+
+--- Include/pyport.h.orig 2014-05-31 18:58:38.000000000 +0000
++++ Include/pyport.h
+@@ -640,11 +640,6 @@ Please be conservative with adding new o
+ in platform-specific #ifdefs.
+ **************************************************************************/
+
+-#ifdef SOLARIS
+-/* Unchecked */
+-extern int gethostname(char *, int);
+-#endif
+-
+ #ifdef __BEOS__
+ /* Unchecked */
+ /* It's in the libs, but not the headers... - [cjh] */