diff --git a/package/python-numpy/0001-Don-t-use-fenv.h-on-uClibc.patch b/package/python-numpy/0001-Don-t-use-fenv.h-on-uClibc.patch deleted file mode 100644 index 8b3937a1ba..0000000000 --- a/package/python-numpy/0001-Don-t-use-fenv.h-on-uClibc.patch +++ /dev/null @@ -1,30 +0,0 @@ -From 52b47439d17463304e5bd7974dec17ced0b0f24a Mon Sep 17 00:00:00 2001 -From: Fabrice Fontaine -Date: Sat, 16 Mar 2019 10:38:27 +0100 -Subject: [PATCH] Don't use on uClibc - -Signed-off-by: Thomas Petazzoni -Signed-off-by: Alexey Brodkin -Signed-off-by: Fabrice Fontaine -[Upstream status: https://github.com/numpy/numpy/pull/13137] ---- - numpy/core/src/npymath/ieee754.c.src | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - -diff --git a/numpy/core/src/npymath/ieee754.c.src b/numpy/core/src/npymath/ieee754.c.src -index d960838c8..f3f15f841 100644 ---- a/numpy/core/src/npymath/ieee754.c.src -+++ b/numpy/core/src/npymath/ieee754.c.src -@@ -681,7 +681,8 @@ void npy_set_floatstatus_invalid(void) - fp_raise_xcp(FP_INVALID); - } - --#elif defined(_MSC_VER) || (defined(__osf__) && defined(__alpha)) -+#elif defined(_MSC_VER) || (defined(__osf__) && defined(__alpha)) || \ -+ defined (__UCLIBC__) - - /* - * By using a volatile floating point value, --- -2.14.1 - diff --git a/package/python-numpy/0002-FIX-no-FPU-exceptions-bits-on-ARC-glibc.patch b/package/python-numpy/0002-FIX-no-FPU-exceptions-bits-on-ARC-glibc.patch deleted file mode 100644 index ece52118d7..0000000000 --- a/package/python-numpy/0002-FIX-no-FPU-exceptions-bits-on-ARC-glibc.patch +++ /dev/null @@ -1,31 +0,0 @@ -From 1125f1ee33324bc91b4e8dd9da49163af572d04a Mon Sep 17 00:00:00 2001 -From: Fabrice Fontaine -Date: Sat, 16 Mar 2019 10:48:25 +0100 -Subject: [PATCH] FIX: no FPU exceptions bits on ARC glibc - -The FPU exceptions bits are missing in fenv.h in glibc for ARC -architecture. - -Signed-off-by: Evgeniy Didin -Signed-off-by: Fabrice Fontaine -[Upstream status: https://github.com/numpy/numpy/pull/13137] ---- - numpy/core/src/npymath/ieee754.c.src | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/numpy/core/src/npymath/ieee754.c.src b/numpy/core/src/npymath/ieee754.c.src -index f3f15f841..3f66b24a4 100644 ---- a/numpy/core/src/npymath/ieee754.c.src -+++ b/numpy/core/src/npymath/ieee754.c.src -@@ -682,7 +682,7 @@ void npy_set_floatstatus_invalid(void) - } - - #elif defined(_MSC_VER) || (defined(__osf__) && defined(__alpha)) || \ -- defined (__UCLIBC__) -+ defined (__UCLIBC__) || (defined(__arc__) && defined(__GLIBC__)) - - /* - * By using a volatile floating point value, --- -2.14.1 - diff --git a/package/python-numpy/Config.in b/package/python-numpy/Config.in index c337675ceb..5b9ee5803b 100644 --- a/package/python-numpy/Config.in +++ b/package/python-numpy/Config.in @@ -16,6 +16,8 @@ config BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS config BR2_PACKAGE_PYTHON_NUMPY bool "python-numpy" depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS + # python-numpy needs fenv.h which is not provided by uclibc + depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL help NumPy is the fundamental package for scientific computing with Python. @@ -24,3 +26,6 @@ config BR2_PACKAGE_PYTHON_NUMPY C library. http://www.numpy.org/ + +comment "python-numpy needs glibc or musl" + depends on !(BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL)