]> code.ossystems Code Review - openembedded-core.git/commit
python3: detect libraries in STAGING_LIBDIR
authorDominic Sacré <dominic.sacre@gmx.de>
Tue, 28 Jul 2015 14:58:35 +0000 (16:58 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 1 Aug 2015 09:59:26 +0000 (10:59 +0100)
commit540a223fc0fb6b07dab3316de6236924bd97613c
treef90039f0c0e013e480a5b9c275d0f0fe6f7a4a4a
parent8e1723eaa4c2dad4d02f7e18d05a1a3239f82ef1
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].

Signed-off-by: Dominic Sacré <dominic.sacre@gmx.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/python/python3/fix_ssl_include_dir.patch [deleted file]
meta/recipes-devtools/python/python3/setup.py-find-libraries-in-staging-dirs.patch [new file with mode: 0644]
meta/recipes-devtools/python/python3_3.4.3.bb