summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2020-05-30 20:46:09 +0000
committerjoerg <joerg@pkgsrc.org>2020-05-30 20:46:09 +0000
commit8d0a8fc32c4650d7b698045e05f5680fdbe3e3e4 (patch)
tree6a0162dea2ac0340f72c89ffb3d121b8b5327810
parent672d62fcb16d38e991b5e1037f190b604be6730f (diff)
downloadpkgsrc-8d0a8fc32c4650d7b698045e05f5680fdbe3e3e4.tar.gz
Python config leaks _NETBSD_SOURCE into the build, so ensure it is
provided consistently to undo damage. Spell C++11 mode canonically.
-rw-r--r--graphics/mypaint/Makefile3
-rw-r--r--graphics/mypaint/distinfo3
-rw-r--r--graphics/mypaint/patches/patch-setup.py26
3 files changed, 29 insertions, 3 deletions
diff --git a/graphics/mypaint/Makefile b/graphics/mypaint/Makefile
index 3e260416f9b..316fa2f9337 100644
--- a/graphics/mypaint/Makefile
+++ b/graphics/mypaint/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.47 2020/05/19 12:09:08 nia Exp $
+# $NetBSD: Makefile,v 1.48 2020/05/30 20:46:09 joerg Exp $
DISTNAME= mypaint-2.0.0
PKGREVISION= 4
@@ -18,7 +18,6 @@ TOOL_DEPENDS+= swig3-[0-9]*:../../devel/swig3
EGG_NAME= MyPaint-${PKGVERSION_NOREV}a0
-
USE_LANGUAGES= c c++
USE_TOOLS+= bash:run msgfmt pkg-config
diff --git a/graphics/mypaint/distinfo b/graphics/mypaint/distinfo
index 3375962bb0e..3ff90db9687 100644
--- a/graphics/mypaint/distinfo
+++ b/graphics/mypaint/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.10 2020/03/04 13:51:51 wiz Exp $
+$NetBSD: distinfo,v 1.11 2020/05/30 20:46:09 joerg Exp $
SHA1 (mypaint-2.0.0.tar.xz) = 334fa13893d20c80805092de665dbbcf03b92ece
RMD160 (mypaint-2.0.0.tar.xz) = 894b276a4f6139a717d8fdfcf8618ecef00222dd
SHA512 (mypaint-2.0.0.tar.xz) = 118d905f4d7ce6adb9779b59d6b3f51b94a9937778b8fe3ed1b31c9b5b77d63110134bdc74849a91d8095e905664227ff43ffe183ad9c7c7ba18fa954ade8a84
Size (mypaint-2.0.0.tar.xz) = 7316680 bytes
SHA1 (patch-lib_meta.py) = 1c8832ff06154255d7ea14037dc728d1fa0ba50e
+SHA1 (patch-setup.py) = 55b5c2ef1ef8612999c1630b2259f7f54a5cf264
diff --git a/graphics/mypaint/patches/patch-setup.py b/graphics/mypaint/patches/patch-setup.py
new file mode 100644
index 00000000000..47653fe6f3a
--- /dev/null
+++ b/graphics/mypaint/patches/patch-setup.py
@@ -0,0 +1,26 @@
+$NetBSD: patch-setup.py,v 1.1 2020/05/30 20:46:09 joerg Exp $
+
+Don't force pure standard mode as it depends on various extensions
+anyway. Explicitly set _NETBSD_SOURCE since Python's config.h pollutes
+the namespace with it.
+
+--- setup.py.orig 2020-02-15 15:05:23.000000000 +0000
++++ setup.py
+@@ -801,7 +801,7 @@ def get_ext_modules():
+ import numpy
+
+ extra_compile_args = [
+- '--std=c++11',
++ '-std=gnu++11',
+ '-Wall',
+ '-Wno-sign-compare',
+ '-Wno-write-strings',
+@@ -821,6 +821,8 @@ def get_ext_modules():
+ # Look up libraries dependencies relative to the library.
+ extra_link_args.append('-Wl,-z,origin')
+ extra_link_args.append('-Wl,-rpath,$ORIGIN')
++ if sys.platform.startswith("netbsd"):
++ extra_compile_args.append("-D_NETBSD_SOURCE")
+
+ initial_deps = ["libmypaint >= 1.5"]
+ remaining_deps = [