summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python-numpy/files/add-glibc-check.patch
diff options
context:
space:
mode:
authorAlexander Kanavin <alexander.kanavin@linux.intel.com>2016-05-12 16:43:36 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-01 12:38:42 +0100
commit9d7867a054f84e6e53cff1da26f32caeec0180d6 (patch)
tree18554cb2c8b73d7e80b2455a90a4273d46d13ddf /meta/recipes-devtools/python-numpy/files/add-glibc-check.patch
parent083d0aa27f49e2b65f200c2c6089c32afd3f6442 (diff)
downloadpoky-9d7867a054f84e6e53cff1da26f32caeec0180d6.tar.gz
python-numpy: move recipe to own directory
This is done so that patches can be shared with python3-numpy (From OE-Core rev: 9bffe2f9fb4ce6c0b265f27e5b484fbe076c6349) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python-numpy/files/add-glibc-check.patch')
-rw-r--r--meta/recipes-devtools/python-numpy/files/add-glibc-check.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python-numpy/files/add-glibc-check.patch b/meta/recipes-devtools/python-numpy/files/add-glibc-check.patch
new file mode 100644
index 0000000000..29768f34d2
--- /dev/null
+++ b/meta/recipes-devtools/python-numpy/files/add-glibc-check.patch
@@ -0,0 +1,36 @@
1Dont punish musl for glibc's trignometeric functions problems
2additionally ensure that glibc specific macros are not used
3unconditionally
4
5Signed-off-by: Khem Raj <raj.khem@gmail.com>
6Upstream-Status: Pending
7Index: numpy-1.10.4/numpy/core/src/private/npy_config.h
8===================================================================
9--- numpy-1.10.4.orig/numpy/core/src/private/npy_config.h
10+++ numpy-1.10.4/numpy/core/src/private/npy_config.h
11@@ -75,10 +75,12 @@
12
13 #if defined(HAVE_FEATURES_H)
14 #include <features.h>
15+#ifdef __GLIBC__
16 #define TRIG_OK __GLIBC_PREREQ(2, 16)
17 #else
18 #define TRIG_OK 0
19 #endif
20+#endif
21
22 #if !TRIG_OK
23 #undef HAVE_CASIN
24Index: numpy-1.10.4/numpy/core/src/npymath/ieee754.c.src
25===================================================================
26--- numpy-1.10.4.orig/numpy/core/src/npymath/ieee754.c.src
27+++ numpy-1.10.4/numpy/core/src/npymath/ieee754.c.src
28@@ -612,7 +612,7 @@ void npy_set_floatstatus_invalid(void)
29 }
30
31
32-#elif defined(__GLIBC__) || defined(__APPLE__) || \
33+#elif defined(__linux__) || defined(__APPLE__) || \
34 defined(__CYGWIN__) || defined(__MINGW32__) || \
35 (defined(__FreeBSD__) && (__FreeBSD_version >= 502114))
36 # include <fenv.h>