summaryrefslogtreecommitdiff
path: root/math/py-scipy
diff options
context:
space:
mode:
authorhe <he@pkgsrc.org>2022-07-30 16:13:47 +0000
committerhe <he@pkgsrc.org>2022-07-30 16:13:47 +0000
commit2fbe236a05725c8fb7642b50ca0c35db4bed977f (patch)
treed2e128f21160f4644b631b93aa4ee4ef66199922 /math/py-scipy
parentdbf10f8cf5ed3c05d42c34032718cf460e641829 (diff)
downloadpkgsrc-2fbe236a05725c8fb7642b50ca0c35db4bed977f.tar.gz
math/py-scipy: fix build on NetBSD/powerpc (at least!)
In the unuran part, omit defining _ISOC99_SOURCE. I am told that the ieeefp.h header should not be used with _ISOC99_SOURCE. (Its use comes from pyport.h.) Lately I've seen this package fail to build also for aarch64, have not verified that this fixes it, though it's not entirely impossible. Fixes what triggered PR#56892. Bump PKGREVISION.
Diffstat (limited to 'math/py-scipy')
-rw-r--r--math/py-scipy/Makefile4
-rw-r--r--math/py-scipy/distinfo3
-rw-r--r--math/py-scipy/patches/patch-scipy_stats__unuran_setup.py16
3 files changed, 20 insertions, 3 deletions
diff --git a/math/py-scipy/Makefile b/math/py-scipy/Makefile
index 656ddffcc00..b8cedb2382e 100644
--- a/math/py-scipy/Makefile
+++ b/math/py-scipy/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.59 2022/06/28 11:34:45 wiz Exp $
+# $NetBSD: Makefile,v 1.60 2022/07/30 16:13:47 he Exp $
DISTNAME= scipy-1.8.1
-PKGREVISION= 2
+PKGREVISION= 3
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= math python
MASTER_SITES= ${MASTER_SITE_PYPI:=s/scipy/}
diff --git a/math/py-scipy/distinfo b/math/py-scipy/distinfo
index 558b62541fb..8590fad8946 100644
--- a/math/py-scipy/distinfo
+++ b/math/py-scipy/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.36 2022/05/27 16:59:50 tnn Exp $
+$NetBSD: distinfo,v 1.37 2022/07/30 16:13:47 he Exp $
BLAKE2s (scipy-1.8.1.tar.gz) = 364d6645a49d897429094a406e6073e124c1ebca01f4be63ebe401b660d8df38
SHA512 (scipy-1.8.1.tar.gz) = f6fc71c209991fe82baa4b10d8ade0deb1057f6f5942a91dfb7ae45f3eb78a4535efa2861badf5e2d37239fa99dbd99de760aa7e4854b95991ade0263004e7ea
@@ -6,3 +6,4 @@ Size (scipy-1.8.1.tar.gz) = 38196215 bytes
SHA1 (patch-scipy_spatial_ckdtree_src_ckdtree__decl.h) = ad0e4a79af2a3b0667e61f205f5b8453ea440498
SHA1 (patch-scipy_special___logit.h) = c729c2b73de00cad4c9ad834a79b80dea7b05af3
SHA1 (patch-scipy_special___round.h) = bc05a935e6423ce8395450ad3b30e88826939422
+SHA1 (patch-scipy_stats__unuran_setup.py) = 9839f589fdfe7f1f74e84f32526a2ce96a28d04a
diff --git a/math/py-scipy/patches/patch-scipy_stats__unuran_setup.py b/math/py-scipy/patches/patch-scipy_stats__unuran_setup.py
new file mode 100644
index 00000000000..df9ec95d88a
--- /dev/null
+++ b/math/py-scipy/patches/patch-scipy_stats__unuran_setup.py
@@ -0,0 +1,16 @@
+$NetBSD: patch-scipy_stats__unuran_setup.py,v 1.1 2022/07/30 16:13:48 he Exp $
+
+On NetBSD/powerpc, you can't build with _ISOC99_SOURCE defined,
+the include of <ieeefp.h> deep down in the python headers will fail
+with undefined types.
+
+--- ./scipy/stats/_unuran/setup.py.orig 2022-05-16 12:36:53.864307900 +0000
++++ ./scipy/stats/_unuran/setup.py
+@@ -95,7 +95,6 @@ def configuration(parent_package="", top
+ ("UNUR_ENABLE_INFO", "1"),
+ ("VERSION", '"%s"' % UNURAN_VERSION),
+ ("HAVE_CONFIG_H", "1"),
+- ("_ISOC99_SOURCE", "1"),
+ ]
+
+ UNURAN_DIRS = [