diff options
author | Khem Raj <raj.khem@gmail.com> | 2016-04-28 06:38:50 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-14 23:05:12 +0100 |
commit | f969ce9ddf0c2bd08ee8dd92637697e27a67edb7 (patch) | |
tree | 9a76d59439fb6f50fb2d8f132892d1ceb57fdcee /meta | |
parent | 45dd3d28e430b6bd8db66a36afa9ab931367fcde (diff) | |
download | poky-f969ce9ddf0c2bd08ee8dd92637697e27a67edb7.tar.gz |
python-native: Point to expat in native sysroot and add missing dep on expat-native
This fixes inconsistency where expat dependency is
then depending upon build host having it or not having it
Fixes errors like
WARNING: renaming "pyexpat" since importing it failed: build/lib.linux-x86_64-2.7/pyexpat.so: undefined symbol: XML_SetCommentHandler
also reported here
https://dev.openwrt.org/ticket/20087
This work due to the fact that we use -isystem pointing to native sysroot
so the search order of native includedir is moved after buildhosts system
includdirs. Moment we replace it with -I, build falls apart
This also fixes the error
Caught exception: <type 'exceptions.ImportError'> ImportError('No module named _elementtree',)
where gobject-introspection-native fails to find _elementtree
which is only compiled if expat is available
(From OE-Core rev: a63798df712bf0d2362e07713c06af3b071a10b2)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/python/python-native_2.7.11.bb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-devtools/python/python-native_2.7.11.bb b/meta/recipes-devtools/python/python-native_2.7.11.bb index 4c204a4f0f..abb69fcd20 100644 --- a/meta/recipes-devtools/python/python-native_2.7.11.bb +++ b/meta/recipes-devtools/python/python-native_2.7.11.bb | |||
@@ -1,7 +1,7 @@ | |||
1 | require python.inc | 1 | require python.inc |
2 | 2 | ||
3 | EXTRANATIVEPATH += "bzip2-native" | 3 | EXTRANATIVEPATH += "bzip2-native" |
4 | DEPENDS = "openssl-native bzip2-replacement-native zlib-native readline-native sqlite3-native" | 4 | DEPENDS = "openssl-native bzip2-replacement-native zlib-native readline-native sqlite3-native expat-native" |
5 | PR = "${INC_PR}.1" | 5 | PR = "${INC_PR}.1" |
6 | 6 | ||
7 | SRC_URI += "\ | 7 | SRC_URI += "\ |
@@ -27,7 +27,7 @@ inherit native | |||
27 | 27 | ||
28 | RPROVIDES += "python-distutils-native python-compression-native python-textutils-native python-codecs-native python-core-native python-unittest-native" | 28 | RPROVIDES += "python-distutils-native python-compression-native python-textutils-native python-codecs-native python-core-native python-unittest-native" |
29 | 29 | ||
30 | EXTRA_OECONF_append = " --bindir=${bindir}/${PN}" | 30 | EXTRA_OECONF_append = " --bindir=${bindir}/${PN} --with-system-expat=${STAGING_DIR_HOST}" |
31 | 31 | ||
32 | EXTRA_OEMAKE = '\ | 32 | EXTRA_OEMAKE = '\ |
33 | BUILD_SYS="" \ | 33 | BUILD_SYS="" \ |