summaryrefslogtreecommitdiff
path: root/math/py-numpy
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2024-08-15 17:47:25 +0800
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-08-15 19:53:55 +0800
commitba856133e5f1a18de13106955e417f998be213e5 (patch)
tree47452e8a0088e03ec4d2bfae6ce46b0423c23a58 /math/py-numpy
parentwww/node20: Fix build with libc++ 19 (diff)
math/py-numpy: Remove clang error condition in distutils check
- Bump PORTREVISION for package change PR: 280715 Tested by: dim (with Clang 15 to 19)
Diffstat (limited to 'math/py-numpy')
-rw-r--r--math/py-numpy/Makefile2
-rw-r--r--math/py-numpy/files/patch-clang13
2 files changed, 14 insertions, 1 deletions
diff --git a/math/py-numpy/Makefile b/math/py-numpy/Makefile
index 25beecd6312b..d462d649969d 100644
--- a/math/py-numpy/Makefile
+++ b/math/py-numpy/Makefile
@@ -1,6 +1,6 @@
PORTNAME= numpy
PORTVERSION= 1.26.4
-PORTREVISION= 1
+PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= math python
MASTER_SITES= PYPI \
diff --git a/math/py-numpy/files/patch-clang b/math/py-numpy/files/patch-clang
new file mode 100644
index 000000000000..5802f130651e
--- /dev/null
+++ b/math/py-numpy/files/patch-clang
@@ -0,0 +1,13 @@
+--- numpy/distutils/checks/cpu_avx512_spr.c.orig 2024-02-05 21:17:48 UTC
++++ numpy/distutils/checks/cpu_avx512_spr.c
+@@ -15,10 +15,6 @@ int main(int argc, char **argv)
+
+ int main(int argc, char **argv)
+ {
+-/* clang has a bug regarding our spr coode, see gh-23730. */
+-#if __clang__
+-#error
+-#endif
+ __m512h a = _mm512_loadu_ph((void*)argv[argc-1]);
+ __m512h temp = _mm512_fmadd_ph(a, a, a);
+ _mm512_storeu_ph((void*)(argv[argc-1]), temp);