diff options
author | Patrick Williams <patrick@stwcx.xyz> | 2016-08-17 14:31:25 -0500 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2016-08-22 16:43:26 +0000 |
commit | 60f9d69e016b11c468c98ea75ba0a60c44afbbc4 (patch) | |
tree | ecb49581a9e41a37943c22cd9ef3f63451b20ee7 /import-layers/yocto-poky/meta/recipes-devtools/python/python-numpy/add-glibc-check.patch | |
parent | e18c61205e0234b03697129c20cc69c9b3940efc (diff) | |
download | talos-openbmc-60f9d69e016b11c468c98ea75ba0a60c44afbbc4.tar.gz talos-openbmc-60f9d69e016b11c468c98ea75ba0a60c44afbbc4.zip |
yocto-poky: Move to import-layers subdir
We are going to import additional layers, so create a subdir to
hold all of the layers that we import with git-subtree.
Change-Id: I6f732153a22be8ca663035c518837e3cc5ec0799
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Diffstat (limited to 'import-layers/yocto-poky/meta/recipes-devtools/python/python-numpy/add-glibc-check.patch')
-rw-r--r-- | import-layers/yocto-poky/meta/recipes-devtools/python/python-numpy/add-glibc-check.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/import-layers/yocto-poky/meta/recipes-devtools/python/python-numpy/add-glibc-check.patch b/import-layers/yocto-poky/meta/recipes-devtools/python/python-numpy/add-glibc-check.patch new file mode 100644 index 000000000..29768f34d --- /dev/null +++ b/import-layers/yocto-poky/meta/recipes-devtools/python/python-numpy/add-glibc-check.patch @@ -0,0 +1,36 @@ +Dont punish musl for glibc's trignometeric functions problems +additionally ensure that glibc specific macros are not used +unconditionally + +Signed-off-by: Khem Raj <raj.khem@gmail.com> +Upstream-Status: Pending +Index: numpy-1.10.4/numpy/core/src/private/npy_config.h +=================================================================== +--- numpy-1.10.4.orig/numpy/core/src/private/npy_config.h ++++ numpy-1.10.4/numpy/core/src/private/npy_config.h +@@ -75,10 +75,12 @@ + + #if defined(HAVE_FEATURES_H) + #include <features.h> ++#ifdef __GLIBC__ + #define TRIG_OK __GLIBC_PREREQ(2, 16) + #else + #define TRIG_OK 0 + #endif ++#endif + + #if !TRIG_OK + #undef HAVE_CASIN +Index: numpy-1.10.4/numpy/core/src/npymath/ieee754.c.src +=================================================================== +--- numpy-1.10.4.orig/numpy/core/src/npymath/ieee754.c.src ++++ numpy-1.10.4/numpy/core/src/npymath/ieee754.c.src +@@ -612,7 +612,7 @@ void npy_set_floatstatus_invalid(void) + } + + +-#elif defined(__GLIBC__) || defined(__APPLE__) || \ ++#elif defined(__linux__) || defined(__APPLE__) || \ + defined(__CYGWIN__) || defined(__MINGW32__) || \ + (defined(__FreeBSD__) && (__FreeBSD_version >= 502114)) + # include <fenv.h> |