pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/py-zmq Stop messing with compiler/linker bitness o...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fa730018b0dd
branches:  trunk
changeset: 357967:fa730018b0dd
user:      fhajny <fhajny%pkgsrc.org@localhost>
date:      Thu Feb 02 11:53:58 2017 +0000

description:
Stop messing with compiler/linker bitness on SunOS. Let pkgsrc and compiler do its job.

diffstat:

 net/py-zmq/distinfo                           |   4 +++-
 net/py-zmq/patches/patch-buildutils_detect.py |  18 ++++++++++++++++++
 net/py-zmq/patches/patch-setup.py             |  19 +++++++++++++++++++
 3 files changed, 40 insertions(+), 1 deletions(-)

diffs (58 lines):

diff -r 945c318f7bfe -r fa730018b0dd net/py-zmq/distinfo
--- a/net/py-zmq/distinfo       Thu Feb 02 10:16:51 2017 +0000
+++ b/net/py-zmq/distinfo       Thu Feb 02 11:53:58 2017 +0000
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.10 2017/02/02 10:16:30 fhajny Exp $
+$NetBSD: distinfo,v 1.11 2017/02/02 11:53:58 fhajny Exp $
 
 SHA1 (pyzmq-16.0.2.tar.gz) = ad91c8d50f4c85e2e321511914d2420ad3603c49
 RMD160 (pyzmq-16.0.2.tar.gz) = 7973c1c58a515ece5b97b74eda8d7a057ec018a8
 SHA512 (pyzmq-16.0.2.tar.gz) = 40eaf8ce39db86ab3866890d74b92bd6f20d4ae827828a8772003656d899d10ffcfc222d21f344d9daba390824e6c43b9f34e31beb604ec5ee1ec199165f4b96
 Size (pyzmq-16.0.2.tar.gz) = 1026531 bytes
+SHA1 (patch-buildutils_detect.py) = 829ad2337dfb2cf0aabd9fde0e0806802d8c7da4
+SHA1 (patch-setup.py) = e03b101b23f2dd61bdd82743b7abeb57520898da
diff -r 945c318f7bfe -r fa730018b0dd net/py-zmq/patches/patch-buildutils_detect.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/py-zmq/patches/patch-buildutils_detect.py     Thu Feb 02 11:53:58 2017 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-buildutils_detect.py,v 1.1 2017/02/02 11:53:58 fhajny Exp $
+
+Let compiler decide what's best.
+
+--- buildutils/detect.py.orig  2016-11-22 12:41:00.000000000 +0000
++++ buildutils/detect.py
+@@ -47,11 +47,6 @@ def test_compilation(cfile, compiler=Non
+         else:
+             # allow for missing UB arch, since it will still work:
+             lpreargs = ['-undefined', 'dynamic_lookup']
+-    if sys.platform == 'sunos5':
+-        if platform.architecture()[0]=='32bit':
+-            lpreargs = ['-m32']
+-        else: 
+-            lpreargs = ['-m64']
+     extra = compiler_attrs.get('extra_compile_args', None)
+ 
+     objs = cc.compile([cfile], extra_preargs=cpreargs, extra_postargs=extra)
diff -r 945c318f7bfe -r fa730018b0dd net/py-zmq/patches/patch-setup.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/py-zmq/patches/patch-setup.py Thu Feb 02 11:53:58 2017 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-setup.py,v 1.3 2017/02/02 11:53:58 fhajny Exp $
+
+Let compiler decide what's best.
+
+--- setup.py.orig      2016-11-22 12:41:00.000000000 +0000
++++ setup.py
+@@ -203,12 +203,6 @@ def settings_from_prefix(prefix=None, bu
+         if sys.platform.startswith('freebsd'):
+             settings['libraries'].append('pthread')
+ 
+-        if sys.platform.startswith('sunos'):
+-          if platform.architecture()[0] == '32bit':
+-            settings['extra_link_args'] += ['-m32']
+-          else:
+-            settings['extra_link_args'] += ['-m64']
+-
+         if prefix:
+             settings['libraries'].append('zmq')
+ 



Home | Main Index | Thread Index | Old Index