diff options
3 files changed, 49 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python-numpy/files/d70d37b7c4aa2af3fe879a0d858c54f2aa32a725.patch b/meta/recipes-devtools/python-numpy/files/d70d37b7c4aa2af3fe879a0d858c54f2aa32a725.patch new file mode 100644 index 0000000000..08cb078fad --- /dev/null +++ b/meta/recipes-devtools/python-numpy/files/d70d37b7c4aa2af3fe879a0d858c54f2aa32a725.patch | |||
@@ -0,0 +1,47 @@ | |||
1 | From 154b2c19f392817a936aea0190e276f8228cb489 Mon Sep 17 00:00:00 2001 | ||
2 | From: "Erik M. Bray" <erik.bray@lri.fr> | ||
3 | Date: Mon, 12 Dec 2016 13:07:16 +0100 | ||
4 | Subject: [PATCH] BUG: xlocale.h is not available in newlib--all the defines | ||
5 | used here from xlocale.h are instead found in locale.h | ||
6 | |||
7 | Added a feature check for xlocale.h, with fallback to locale.h if it is | ||
8 | missing. | ||
9 | --- | ||
10 | numpy/core/setup_common.py | 1 + | ||
11 | numpy/core/src/multiarray/numpyos.c | 8 +++++++- | ||
12 | 2 files changed, 8 insertions(+), 1 deletion(-) | ||
13 | |||
14 | Upstream-Status: Backport | ||
15 | RP 2017/9/6 | ||
16 | |||
17 | diff --git a/numpy/core/setup_common.py b/numpy/core/setup_common.py | ||
18 | index ba7521e3043..a1729e65656 100644 | ||
19 | --- a/numpy/core/setup_common.py | ||
20 | +++ b/numpy/core/setup_common.py | ||
21 | @@ -113,6 +113,7 @@ def check_api_version(apiversion, codegen_dir): | ||
22 | "xmmintrin.h", # SSE | ||
23 | "emmintrin.h", # SSE2 | ||
24 | "features.h", # for glibc version linux | ||
25 | + "xlocale.h" # see GH#8367 | ||
26 | ] | ||
27 | |||
28 | # optional gcc compiler builtins and their call arguments and optional a | ||
29 | diff --git a/numpy/core/src/multiarray/numpyos.c b/numpy/core/src/multiarray/numpyos.c | ||
30 | index 450ec40b6e0..84617ea78c3 100644 | ||
31 | --- a/numpy/core/src/multiarray/numpyos.c | ||
32 | +++ b/numpy/core/src/multiarray/numpyos.c | ||
33 | @@ -15,7 +15,13 @@ | ||
34 | |||
35 | #ifdef HAVE_STRTOLD_L | ||
36 | #include <stdlib.h> | ||
37 | -#include <xlocale.h> | ||
38 | +#ifdef HAVE_XLOCALE_H | ||
39 | + /* | ||
40 | + * the defines from xlocale.h are included in locale.h on some sytems; | ||
41 | + * see gh-8367 | ||
42 | + */ | ||
43 | + #include <xlocale.h> | ||
44 | +#endif | ||
45 | #endif | ||
46 | |||
47 | |||
diff --git a/meta/recipes-devtools/python-numpy/python-numpy_1.11.1.bb b/meta/recipes-devtools/python-numpy/python-numpy_1.11.1.bb index c5af720a9c..c94f5c3d12 100644 --- a/meta/recipes-devtools/python-numpy/python-numpy_1.11.1.bb +++ b/meta/recipes-devtools/python-numpy/python-numpy_1.11.1.bb | |||
@@ -9,6 +9,7 @@ SRC_URI = "https://files.pythonhosted.org/packages/source/n/${SRCNAME}/${SRCNAME | |||
9 | file://0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch \ | 9 | file://0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch \ |
10 | file://remove-build-path-in-comments.patch \ | 10 | file://remove-build-path-in-comments.patch \ |
11 | file://fix_shebang_f2py.patch \ | 11 | file://fix_shebang_f2py.patch \ |
12 | file://d70d37b7c4aa2af3fe879a0d858c54f2aa32a725.patch \ | ||
12 | ${CONFIGFILESURI} " | 13 | ${CONFIGFILESURI} " |
13 | UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/numpy/files/" | 14 | UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/numpy/files/" |
14 | 15 | ||
diff --git a/meta/recipes-devtools/python-numpy/python3-numpy_1.11.0.bb b/meta/recipes-devtools/python-numpy/python3-numpy_1.11.0.bb index 3cca2239d9..8b502febc4 100644 --- a/meta/recipes-devtools/python-numpy/python3-numpy_1.11.0.bb +++ b/meta/recipes-devtools/python-numpy/python3-numpy_1.11.0.bb | |||
@@ -9,6 +9,7 @@ SRC_URI = "https://files.pythonhosted.org/packages/source/n/${SRCNAME}/${SRCNAME | |||
9 | file://0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch \ | 9 | file://0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch \ |
10 | file://remove-build-path-in-comments.patch \ | 10 | file://remove-build-path-in-comments.patch \ |
11 | file://fix_shebang_f2py.patch \ | 11 | file://fix_shebang_f2py.patch \ |
12 | file://d70d37b7c4aa2af3fe879a0d858c54f2aa32a725.patch \ | ||
12 | ${CONFIGFILESURI} " | 13 | ${CONFIGFILESURI} " |
13 | UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/numpy/files/" | 14 | UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/numpy/files/" |
14 | 15 | ||