diff options
author | wiedi <wiedi@pkgsrc.org> | 2017-12-24 13:44:56 +0000 |
---|---|---|
committer | wiedi <wiedi@pkgsrc.org> | 2017-12-24 13:44:56 +0000 |
commit | 885d1d3e70d87273970dc359afbfc9e5b835b7db (patch) | |
tree | 0df65bef7ff5ba83f1040b65e90fd0966dd5c16a | |
parent | aef254f4527a5bca737f1c7ebaf520f549a564b1 (diff) | |
download | pkgsrc-885d1d3e70d87273970dc359afbfc9e5b835b7db.tar.gz |
py-twisted: allow building with a c99 compiler on SunOS
-rw-r--r-- | net/py-twisted/Makefile | 4 | ||||
-rw-r--r-- | net/py-twisted/distinfo | 3 | ||||
-rw-r--r-- | net/py-twisted/patches/patch-src_twisted_python___setup.py | 15 |
3 files changed, 19 insertions, 3 deletions
diff --git a/net/py-twisted/Makefile b/net/py-twisted/Makefile index 11692793b20..cdd57e65612 100644 --- a/net/py-twisted/Makefile +++ b/net/py-twisted/Makefile @@ -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/mail/test/pop3testserver.py 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 --git a/net/py-twisted/distinfo b/net/py-twisted/distinfo index 86cc1565476..ce8023232cc 100644 --- a/net/py-twisted/distinfo +++ b/net/py-twisted/distinfo @@ -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 --git a/net/py-twisted/patches/patch-src_twisted_python___setup.py b/net/py-twisted/patches/patch-src_twisted_python___setup.py new file mode 100644 index 00000000000..e228288b0f5 --- /dev/null +++ b/net/py-twisted/patches/patch-src_twisted_python___setup.py @@ -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) |