pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/x11/py-sip py-sip: Fix linker flags with SunOS/clang. ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ac9ba6e7bddd
branches:  trunk
changeset: 374636:ac9ba6e7bddd
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Fri Jan 26 15:47:18 2018 +0000

description:
py-sip: Fix linker flags with SunOS/clang.  Bump PKGREVISION.

diffstat:

 x11/py-sip/Makefile                  |   3 ++-
 x11/py-sip/distinfo                  |   4 ++--
 x11/py-sip/patches/patch-siputils.py |  19 +++++++++++++++++--
 3 files changed, 21 insertions(+), 5 deletions(-)

diffs (61 lines):

diff -r 84f4d582ddfc -r ac9ba6e7bddd x11/py-sip/Makefile
--- a/x11/py-sip/Makefile       Fri Jan 26 15:27:04 2018 +0000
+++ b/x11/py-sip/Makefile       Fri Jan 26 15:47:18 2018 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.50 2018/01/25 14:08:59 jperkin Exp $
+# $NetBSD: Makefile,v 1.51 2018/01/26 15:47:18 jperkin Exp $
 
 DISTNAME=      sip-4.19.5
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+PKGREVISION=   1
 CATEGORIES=    x11 devel python
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=pyqt/}
 
diff -r 84f4d582ddfc -r ac9ba6e7bddd x11/py-sip/distinfo
--- a/x11/py-sip/distinfo       Fri Jan 26 15:27:04 2018 +0000
+++ b/x11/py-sip/distinfo       Fri Jan 26 15:47:18 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.39 2018/01/18 05:07:04 markd Exp $
+$NetBSD: distinfo,v 1.40 2018/01/26 15:47:18 jperkin Exp $
 
 SHA1 (sip-4.19.5.tar.gz) = 654f02563bf0b67253abcee3e2249acfdfb21b08
 RMD160 (sip-4.19.5.tar.gz) = d7b2b3bfd8f350c6be1d6bfe9d3761ad1cb73320
@@ -7,4 +7,4 @@
 SHA1 (patch-aa) = 813eeed9d8608a2049e3cc819d31876afdada3aa
 SHA1 (patch-ab) = a331efb38a1fadd799e00be34f076c8b8f6e3071
 SHA1 (patch-sipgen_gencode.c) = a9abb5e9fa488ef46864f5c25e1e353494c43378
-SHA1 (patch-siputils.py) = 8e5cccfb5e17df54550fc352df35c4065ef36b65
+SHA1 (patch-siputils.py) = fa69e6b957697cdb9afb3c44d9d4b42ab8a604f3
diff -r 84f4d582ddfc -r ac9ba6e7bddd x11/py-sip/patches/patch-siputils.py
--- a/x11/py-sip/patches/patch-siputils.py      Fri Jan 26 15:27:04 2018 +0000
+++ b/x11/py-sip/patches/patch-siputils.py      Fri Jan 26 15:47:18 2018 +0000
@@ -1,8 +1,9 @@
-$NetBSD: patch-siputils.py,v 1.2 2014/08/21 21:32:39 wiz Exp $
+$NetBSD: patch-siputils.py,v 1.3 2018/01/26 15:47:18 jperkin Exp $
 
 Fix build on Darwin with pkgsrc python.
+Fix SunOS/clang.
 
---- siputils.py.orig   2014-05-10 15:00:48.000000000 +0000
+--- siputils.py.orig   2015-03-25 11:00:24.000000000 +0000
 +++ siputils.py
 @@ -258,6 +258,9 @@ class Makefile:
          self._installs = installs
@@ -14,3 +15,17 @@
          # Make sure the destination directory is an absolute path.
          if dir:
              self.dir = os.path.abspath(dir)
+@@ -1596,10 +1599,10 @@ class ModuleMakefile(Makefile):
+                     if sys.platform[:5] == 'linux':
+                         self.LFLAGS.extend(['-Wl,--version-script=%s.exp' % self._target])
+                     elif sys.platform[:5] == 'sunos':
+-                        if self.required_string('LINK') == 'g++':
+-                            self.LFLAGS.extend(['-Wl,-z,noversion', '-Wl,-M,%s.exp' % self._target])
+-                        else:
++                        if self.required_string('LINK') == 'CC':
+                             self.LFLAGS.extend(['-z' 'noversion', '-M', '%s.exp' % self._target])
++                        else:
++                            self.LFLAGS.extend(['-Wl,-z,noversion', '-Wl,-M,%s.exp' % self._target])
+                     elif sys.platform[:5] == 'hp-ux':
+                         self.LFLAGS.extend(['-Wl,+e,%s' % self._entry_point])
+                     elif sys.platform[:5] == 'irix' and self.required_string('LINK') != 'g++':



Home | Main Index | Thread Index | Old Index