git: 00a1c67ecca6 - main - science/py-scipy: fix build on powerpc64le on CURRENT
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 08 Jul 2026 18:38:09 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=00a1c67ecca6da49cffb8c63ab07aaf714f9c9da
commit 00a1c67ecca6da49cffb8c63ab07aaf714f9c9da
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2026-07-07 13:53:52 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2026-07-08 18:37:21 +0000
science/py-scipy: fix build on powerpc64le on CURRENT
Same as other long double-related issues, e.g. bash or coreutils.
---
science/py-scipy/Makefile | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/science/py-scipy/Makefile b/science/py-scipy/Makefile
index c0cf2f9e02a2..75dbe9bf6106 100644
--- a/science/py-scipy/Makefile
+++ b/science/py-scipy/Makefile
@@ -71,6 +71,14 @@ NETLIB_VARS= PEP517_BUILD_CONFIG_SETTING+="-Csetup-args=-Dblas=blas -Csetup-args
OPENBLAS_USES= blaslapack:openblas
OPENBLAS_VARS= PEP517_BUILD_CONFIG_SETTING+="-Csetup-args=-Dblas=openblas -Csetup-args=-Dlapack=openblas"
+.include <bsd.port.options.mk>
+
+# clang crashes (XSCMPUQP requires Power9) building IEEE-128 long double at
+# -O1+ on the powerpc64le POWER8 baseline; build at -O0. CPUTYPE (POWER9+) is fine.
+.if ${ARCH} == powerpc64le && !defined(CPUTYPE) && ${OSVERSION} >= 1600019
+CFLAGS+= -O0
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|pythran>=0.14.0,<0.19.0|pythran>=0.14.0|' \
-e 's|Cython>=3.0.8,<3.3.0|Cython>=3.0.8|' \