diff options
author | Dominic Sacré <dominic.sacre@gmx.de> | 2015-07-28 16:58:35 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-08-01 22:24:17 +0100 |
commit | 3c53a2bbd7f34ab729a3b1172a8f61d0b9f9857c (patch) | |
tree | 53d53578e40244a509a8e544ddc24530ad443566 /meta/recipes-devtools/python/python3/setup.py-find-libraries-in-staging-dirs.patch | |
parent | 016f5aed006cf74e44235a2039fc58f79566de08 (diff) | |
download | poky-3c53a2bbd7f34ab729a3b1172a8f61d0b9f9857c.tar.gz |
python3: detect libraries in STAGING_LIBDIR
Patch setup.py so that the detect_modules() function looks for required
libraries and headers in STAGING_LIBDIR / STAGING_INCDIR.
Without this patch, several extension modules are not built, even though
their dependencies are present in the compiler's search paths.
The result is the following warning, and ultimately incomplete packages:
| The necessary bits to build these optional modules were not found:
| _bz2 _curses_panel _dbm
| _gdbm _lzma _sqlite3
| nis readline zlib
| To find the necessary bits, look in setup.py in detect_modules() for the module's name.
With the Python 3.3 version of the recipe, at least some of these modules
were built, because STAGING_LIBDIR happened to be in the search path
by coincidence. Due to changes to distutils in Python 3.4, this is no
longer the case.
A previous patch that only affects the search paths for SSL is dropped, as
this one is a more complete fix for [YOCTO #7768].
Part of the fix for [YOCTO #8048].
(From OE-Core rev: 540a223fc0fb6b07dab3316de6236924bd97613c)
Signed-off-by: Dominic Sacré <dominic.sacre@gmx.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python3/setup.py-find-libraries-in-staging-dirs.patch')
-rw-r--r-- | meta/recipes-devtools/python/python3/setup.py-find-libraries-in-staging-dirs.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3/setup.py-find-libraries-in-staging-dirs.patch b/meta/recipes-devtools/python/python3/setup.py-find-libraries-in-staging-dirs.patch new file mode 100644 index 0000000000..f26bd38b02 --- /dev/null +++ b/meta/recipes-devtools/python/python3/setup.py-find-libraries-in-staging-dirs.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | Patch setup.py so that the detect_modules() function looks for required | ||
2 | libraries and headers in STAGING_LIBDIR / STAGING_INCDIR. | ||
3 | |||
4 | Without this patch, several extension modules are not built, even though | ||
5 | their dependencies are present in the compiler's search paths. | ||
6 | The result is the following warning, and ultimately incomplete packages: | ||
7 | |||
8 | | The necessary bits to build these optional modules were not found: | ||
9 | | _bz2 _curses_panel _dbm | ||
10 | | _gdbm _lzma _sqlite3 | ||
11 | | nis readline zlib | ||
12 | | To find the necessary bits, look in setup.py in detect_modules() for the module's name. | ||
13 | |||
14 | Upstream-Status: Inappropriate [Cross compile specific] | ||
15 | |||
16 | Signed-off-by: Dominic Sacré <dominic.sacre@gmx.de> | ||
17 | |||
18 | Index: Python-3.4.3/setup.py | ||
19 | =================================================================== | ||
20 | --- Python-3.4.3.orig/setup.py | ||
21 | +++ Python-3.4.3/setup.py | ||
22 | @@ -521,6 +521,8 @@ class PyBuildExt(build_ext): | ||
23 | else: | ||
24 | lib_dirs = self.compiler.library_dirs[:] | ||
25 | inc_dirs = self.compiler.include_dirs[:] | ||
26 | + lib_dirs.append(os.environ.get('STAGING_LIBDIR')) | ||
27 | + inc_dirs.append(os.environ.get('STAGING_INCDIR')) | ||
28 | exts = [] | ||
29 | missing = [] | ||
30 | |||