diff options
| -rw-r--r-- | meta/recipes-devtools/python/python3/0001-Don-t-search-system-for-headers-libraries.patch | 29 | ||||
| -rw-r--r-- | meta/recipes-devtools/python/python3_3.7.7.bb | 1 |
2 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3/0001-Don-t-search-system-for-headers-libraries.patch b/meta/recipes-devtools/python/python3/0001-Don-t-search-system-for-headers-libraries.patch new file mode 100644 index 0000000000..acf8e1e9b5 --- /dev/null +++ b/meta/recipes-devtools/python/python3/0001-Don-t-search-system-for-headers-libraries.patch | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | From 85e8f86ad2b7dec0848cd55b8e810a5e2722b20a Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Jeremy Puhlman <jpuhlman@mvista.com> | ||
| 3 | Date: Wed, 4 Mar 2020 00:06:42 +0000 | ||
| 4 | Subject: [PATCH] Don't search system for headers/libraries | ||
| 5 | |||
| 6 | Upstream-Status: Inappropriate [oe-core specific] | ||
| 7 | Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com> | ||
| 8 | --- | ||
| 9 | setup.py | 4 ++-- | ||
| 10 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 11 | |||
| 12 | diff --git a/setup.py b/setup.py | ||
| 13 | index 9da1b3a..59782c0 100644 | ||
| 14 | --- a/setup.py | ||
| 15 | +++ b/setup.py | ||
| 16 | @@ -674,8 +674,8 @@ class PyBuildExt(build_ext): | ||
| 17 | add_dir_to_list(self.compiler.include_dirs, | ||
| 18 | sysconfig.get_config_var("INCLUDEDIR")) | ||
| 19 | |||
| 20 | - system_lib_dirs = ['/lib64', '/usr/lib64', '/lib', '/usr/lib'] | ||
| 21 | - system_include_dirs = ['/usr/include'] | ||
| 22 | + system_lib_dirs = [] | ||
| 23 | + system_include_dirs = [] | ||
| 24 | # lib_dirs and inc_dirs are used to search for files; | ||
| 25 | # if a file is found in one of those directories, it can | ||
| 26 | # be assumed that no additional -I,-L directives are needed. | ||
| 27 | -- | ||
| 28 | 2.24.1 | ||
| 29 | |||
diff --git a/meta/recipes-devtools/python/python3_3.7.7.bb b/meta/recipes-devtools/python/python3_3.7.7.bb index 823eb2f8fd..0a78cdab44 100644 --- a/meta/recipes-devtools/python/python3_3.7.7.bb +++ b/meta/recipes-devtools/python/python3_3.7.7.bb | |||
| @@ -33,6 +33,7 @@ SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.xz \ | |||
| 33 | SRC_URI_append_class-native = " \ | 33 | SRC_URI_append_class-native = " \ |
| 34 | file://0001-distutils-sysconfig-append-STAGING_LIBDIR-python-sys.patch \ | 34 | file://0001-distutils-sysconfig-append-STAGING_LIBDIR-python-sys.patch \ |
| 35 | file://12-distutils-prefix-is-inside-staging-area.patch \ | 35 | file://12-distutils-prefix-is-inside-staging-area.patch \ |
| 36 | file://0001-Don-t-search-system-for-headers-libraries.patch \ | ||
| 36 | " | 37 | " |
| 37 | SRC_URI_append_class-nativesdk = " \ | 38 | SRC_URI_append_class-nativesdk = " \ |
| 38 | file://0001-main.c-if-OEPYTHON3HOME-is-set-use-instead-of-PYTHON.patch \ | 39 | file://0001-main.c-if-OEPYTHON3HOME-is-set-use-instead-of-PYTHON.patch \ |
