pkgsrc-Changes archive

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

CVS commit: pkgsrc/net/py-twisted



Module Name:    pkgsrc
Committed By:   wiedi
Date:           Sun Dec 24 13:44:56 UTC 2017

Modified Files:
        pkgsrc/net/py-twisted: Makefile distinfo
Added Files:
        pkgsrc/net/py-twisted/patches: patch-src_twisted_python___setup.py

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


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 pkgsrc/net/py-twisted/Makefile
cvs rdiff -u -r1.34 -r1.35 pkgsrc/net/py-twisted/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/net/py-twisted/patches/patch-src_twisted_python___setup.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/net/py-twisted/Makefile
diff -u pkgsrc/net/py-twisted/Makefile:1.36 pkgsrc/net/py-twisted/Makefile:1.37
--- pkgsrc/net/py-twisted/Makefile:1.36 Sun Dec  3 00:12:35 2017
+++ pkgsrc/net/py-twisted/Makefile      Sun Dec 24 13:44:56 2017
@@ -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/p
 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 && \

Index: pkgsrc/net/py-twisted/distinfo
diff -u pkgsrc/net/py-twisted/distinfo:1.34 pkgsrc/net/py-twisted/distinfo:1.35
--- pkgsrc/net/py-twisted/distinfo:1.34 Thu Oct 19 08:50:34 2017
+++ pkgsrc/net/py-twisted/distinfo      Sun Dec 24 13:44:56 2017
@@ -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

Added files:

Index: pkgsrc/net/py-twisted/patches/patch-src_twisted_python___setup.py
diff -u /dev/null pkgsrc/net/py-twisted/patches/patch-src_twisted_python___setup.py:1.1
--- /dev/null   Sun Dec 24 13:44:56 2017
+++ pkgsrc/net/py-twisted/patches/patch-src_twisted_python___setup.py   Sun Dec 24 13:44:56 2017
@@ -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