pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/py-twisted py-twisted: allow building with a c99 c...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ebeea037be7c
branches:  trunk
changeset: 373039:ebeea037be7c
user:      wiedi <wiedi%pkgsrc.org@localhost>
date:      Sun Dec 24 13:44:56 2017 +0000

description:
py-twisted: allow building with a c99 compiler on SunOS

diffstat:

 net/py-twisted/Makefile                                    |   4 +-
 net/py-twisted/distinfo                                    |   3 +-
 net/py-twisted/patches/patch-src_twisted_python___setup.py |  15 ++++++++++++++
 3 files changed, 19 insertions(+), 3 deletions(-)

diffs (49 lines):

diff -r 096623dd918b -r ebeea037be7c net/py-twisted/Makefile
--- a/net/py-twisted/Makefile   Sun Dec 24 13:37:12 2017 +0000
+++ b/net/py-twisted/Makefile   Sun Dec 24 13:44:56 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.36 2017/12/03 00:12:35 joerg Exp $
+# $NetBSD: Makefile,v 1.37 2017/12/24 13:44:56 wiedi Exp $
 
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:tl}
 COMMENT=       Framework for writing networked applications
@@ -17,7 +17,7 @@
 REPLACE_PYTHON+=       src/twisted/trial/test/scripttest.py
 REPLACE_PYTHON+=       src/twisted/python/test/pullpipe.py
 
-CFLAGS.SunOS+= -D_XOPEN_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1 -Du_int=uint32_t
+USE_LANGUAGES=         c99
 
 post-install:
        cd ${DESTDIR}${PREFIX}/bin && \
diff -r 096623dd918b -r ebeea037be7c net/py-twisted/distinfo
--- a/net/py-twisted/distinfo   Sun Dec 24 13:37:12 2017 +0000
+++ b/net/py-twisted/distinfo   Sun Dec 24 13:44:56 2017 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.34 2017/10/19 08:50:34 adam Exp $
+$NetBSD: distinfo,v 1.35 2017/12/24 13:44:56 wiedi Exp $
 
 SHA1 (Twisted-17.9.0.tar.bz2) = a218e69ab51b5c6b632043f91aed98bc92083a90
 RMD160 (Twisted-17.9.0.tar.bz2) = 5a4c088b2639eb844f57caaa646a611375078621
 SHA512 (Twisted-17.9.0.tar.bz2) = 0fb854db1044bfdb208594a379a0f8df0193326a9974e193266e82113488d49220648d4a50b323fa144654e94976f5848e1d60efed13ab2668b02cc795720345
 Size (Twisted-17.9.0.tar.bz2) = 3019243 bytes
+SHA1 (patch-src_twisted_python___setup.py) = 420e1d783fe08a24abb22e2b66de6e1b64a69a4c
diff -r 096623dd918b -r ebeea037be7c net/py-twisted/patches/patch-src_twisted_python___setup.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/py-twisted/patches/patch-src_twisted_python___setup.py        Sun Dec 24 13:44:56 2017 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_twisted_python___setup.py,v 1.1 2017/12/24 13:44:56 wiedi Exp $
+Allow building with a c99 compiler on SunOS
+
+--- src/twisted/python/_setup.py.orig  2017-09-23 05:51:46.000000000 +0000
++++ src/twisted/python/_setup.py
+@@ -293,8 +293,7 @@ class build_ext_twisted(build_ext.build_
+         # http://stackoverflow.com/questions/1034587).  See the documentation
+         # of X/Open CAE in the standards(5) man page of Solaris.
+         if sys.platform.startswith('sunos'):
+-            self.define_macros.append(('_XOPEN_SOURCE', 1))
+-            self.define_macros.append(('_XOPEN_SOURCE_EXTENDED', 1))
++            self.define_macros.append(('_XOPEN_SOURCE', 600))
+ 
+         self.extensions = [
+             x for x in self.conditionalExtensions if x.condition(self)



Home | Main Index | Thread Index | Old Index