summaryrefslogtreecommitdiff
path: root/math/py-scipy
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2022-04-12 20:31:43 +0000
committertnn <tnn@pkgsrc.org>2022-04-12 20:31:43 +0000
commit35c076873714210ebabaeccd4171deacddd6e8c2 (patch)
tree461192b7f6b93bb37f3f054038ca7aefa6412207 /math/py-scipy
parent84d99bb22424036f41d3f618b82d929169276ac9 (diff)
downloadpkgsrc-35c076873714210ebabaeccd4171deacddd6e8c2.tar.gz
cipy: fix build on SunOS (system header conflict)
Diffstat (limited to 'math/py-scipy')
-rw-r--r--math/py-scipy/distinfo3
-rw-r--r--math/py-scipy/patches/patch-scipy_stats___hypotests__pythran.cpp19
2 files changed, 21 insertions, 1 deletions
diff --git a/math/py-scipy/distinfo b/math/py-scipy/distinfo
index f213f6ae87a..2bed3bfbfbe 100644
--- a/math/py-scipy/distinfo
+++ b/math/py-scipy/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.30 2022/04/09 12:15:31 adam Exp $
+$NetBSD: distinfo,v 1.31 2022/04/12 20:31:43 tnn Exp $
BLAKE2s (scipy-1.8.0.tar.gz) = 45a8dad311d6c459a748f31a7df37ce49ee611c8d4c258649288fd624e5a3a05
SHA512 (scipy-1.8.0.tar.gz) = 674652728ae76479d17189e6974895bb838a8e83b17b9fb91c5f86faebf2a1387e1466555ac5b51d05c293f9b31b9a72e634f5858105ea984ca94bd2f05bbb4c
Size (scipy-1.8.0.tar.gz) = 38313602 bytes
SHA1 (patch-scipy_special___round.h) = bc05a935e6423ce8395450ad3b30e88826939422
+SHA1 (patch-scipy_stats___hypotests__pythran.cpp) = e5d70b810ca020ccd25b9ad7068ce44487d8da60
diff --git a/math/py-scipy/patches/patch-scipy_stats___hypotests__pythran.cpp b/math/py-scipy/patches/patch-scipy_stats___hypotests__pythran.cpp
new file mode 100644
index 00000000000..270358c24f2
--- /dev/null
+++ b/math/py-scipy/patches/patch-scipy_stats___hypotests__pythran.cpp
@@ -0,0 +1,19 @@
+$NetBSD: patch-scipy_stats___hypotests__pythran.cpp,v 1.1 2022/04/12 20:31:43 tnn Exp $
+
+/usr/include/iso/ctype_iso.h on SunOS has this:
+#define _P 0x00000010 /* Punctuation */
+
+Kludge away this macro.
+
+--- scipy/stats/_hypotests_pythran.cpp.orig 2022-02-04 14:45:39.615792300 +0000
++++ scipy/stats/_hypotests_pythran.cpp
+@@ -253,6 +253,9 @@ namespace __pythran__hypotests_pythran
+ typename type<argument_type0>::result_type operator()(argument_type0&& A) const
+ ;
+ } ;
++#ifdef _P
++#undef _P
++#endif
+ struct _P
+ {
+ typedef void callable;