diff options
Diffstat (limited to 'meta/recipes-devtools/python-numpy/files/0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch')
| -rw-r--r-- | meta/recipes-devtools/python-numpy/files/0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch | 33 |
1 files changed, 19 insertions, 14 deletions
diff --git a/meta/recipes-devtools/python-numpy/files/0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch b/meta/recipes-devtools/python-numpy/files/0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch index ffd6ced136..516ccd7b9b 100644 --- a/meta/recipes-devtools/python-numpy/files/0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch +++ b/meta/recipes-devtools/python-numpy/files/0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch | |||
| @@ -1,23 +1,24 @@ | |||
| 1 | From cc2ce6d8b6a3e6e2c8874896c10897034a80cd4f Mon Sep 17 00:00:00 2001 | 1 | From c8c6649b29a08f82e1d6761a6d62ce5f632313c5 Mon Sep 17 00:00:00 2001 |
| 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
| 3 | Date: Thu, 10 Dec 2015 13:20:30 +0200 | 3 | Date: Thu, 10 Dec 2015 13:20:30 +0200 |
| 4 | Subject: [PATCH] Don't search /usr and so on for libraries by default to avoid | 4 | Subject: [PATCH 1/3] Don't search /usr and so on for libraries by default to |
| 5 | host contamination. | 5 | avoid host contamination. |
| 6 | 6 | ||
| 7 | Upstream-Status: Inappropriate (As the code stands, this is a hack) | 7 | Upstream-Status: Inappropriate (As the code stands, this is a hack) |
| 8 | Signed-off-by: Ross Burton <ross.burton@intel.com> | 8 | Signed-off-by: Ross Burton <ross.burton@intel.com> |
| 9 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | 9 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
| 10 | |||
| 10 | --- | 11 | --- |
| 11 | numpy/distutils/system_info.py | 50 +++++------------------------------------- | 12 | numpy/distutils/system_info.py | 50 +++++------------------------------------- |
| 12 | 1 file changed, 6 insertions(+), 44 deletions(-) | 13 | 1 file changed, 6 insertions(+), 44 deletions(-) |
| 13 | 14 | ||
| 14 | Index: numpy-1.13.1/numpy/distutils/system_info.py | 15 | diff --git a/numpy/distutils/system_info.py b/numpy/distutils/system_info.py |
| 15 | =================================================================== | 16 | index bea120c..544e056 100644 |
| 16 | --- numpy-1.13.1.orig/numpy/distutils/system_info.py | 17 | --- a/numpy/distutils/system_info.py |
| 17 | +++ numpy-1.13.1/numpy/distutils/system_info.py | 18 | +++ b/numpy/distutils/system_info.py |
| 18 | @@ -211,51 +211,13 @@ if sys.platform == 'win32': | 19 | @@ -262,51 +262,13 @@ if sys.platform == 'win32': |
| 19 | default_x11_lib_dirs = [] | 20 | add_system_root(os.path.join(conda_dir, 'Library')) |
| 20 | default_x11_include_dirs = [] | 21 | |
| 21 | else: | 22 | else: |
| 22 | - default_lib_dirs = libpaths(['/usr/local/lib', '/opt/lib', '/usr/lib', | 23 | - default_lib_dirs = libpaths(['/usr/local/lib', '/opt/lib', '/usr/lib', |
| 23 | - '/opt/local/lib', '/sw/lib'], platform_bits) | 24 | - '/opt/local/lib', '/sw/lib'], platform_bits) |
| @@ -29,10 +30,7 @@ Index: numpy-1.13.1/numpy/distutils/system_info.py | |||
| 29 | - '/opt/local/include', '/sw/include', | 30 | - '/opt/local/include', '/sw/include', |
| 30 | - '/usr/include/suitesparse'] | 31 | - '/usr/include/suitesparse'] |
| 31 | - default_src_dirs = ['.', '/usr/local/src', '/opt/src', '/sw/src'] | 32 | - default_src_dirs = ['.', '/usr/local/src', '/opt/src', '/sw/src'] |
| 32 | + default_lib_dirs = libpaths(['/deadir/lib'], platform_bits) | 33 | - |
| 33 | + default_include_dirs = ['/deaddir/include'] | ||
| 34 | + default_src_dirs = ['.', '/deaddir/src'] | ||
| 35 | |||
| 36 | - default_x11_lib_dirs = libpaths(['/usr/X11R6/lib', '/usr/X11/lib', | 34 | - default_x11_lib_dirs = libpaths(['/usr/X11R6/lib', '/usr/X11/lib', |
| 37 | - '/usr/lib'], platform_bits) | 35 | - '/usr/lib'], platform_bits) |
| 38 | - default_x11_include_dirs = ['/usr/X11R6/include', '/usr/X11/include', | 36 | - default_x11_include_dirs = ['/usr/X11R6/include', '/usr/X11/include', |
| @@ -67,8 +65,15 @@ Index: numpy-1.13.1/numpy/distutils/system_info.py | |||
| 67 | - finally: | 65 | - finally: |
| 68 | - if tmp is not None: | 66 | - if tmp is not None: |
| 69 | - tmp.close() | 67 | - tmp.close() |
| 68 | + default_lib_dirs = libpaths(['/deadir/lib'], platform_bits) | ||
| 69 | + default_include_dirs = ['/deaddir/include'] | ||
| 70 | + default_src_dirs = ['.', '/deaddir/src'] | ||
| 71 | + | ||
| 70 | + default_x11_lib_dirs = libpaths(['/deaddir/lib'], platform_bits) | 72 | + default_x11_lib_dirs = libpaths(['/deaddir/lib'], platform_bits) |
| 71 | + default_x11_include_dirs = ['/deaddir/include'] | 73 | + default_x11_include_dirs = ['/deaddir/include'] |
| 72 | 74 | ||
| 73 | if os.path.join(sys.prefix, 'lib') not in default_lib_dirs: | 75 | if os.path.join(sys.prefix, 'lib') not in default_lib_dirs: |
| 74 | default_lib_dirs.insert(0, os.path.join(sys.prefix, 'lib')) | 76 | default_lib_dirs.insert(0, os.path.join(sys.prefix, 'lib')) |
| 77 | -- | ||
| 78 | 2.16.1 | ||
| 79 | |||
