generic-poky/meta/recipes-devtools/python
Tom Zanussi ccf6077d4e python: skip setup.py 'import check' when cross-compiling
build_extension() in setup.py, as part of the build process, does an
'import check' on the built extension.  The import check in turn
dlopen()'s the shared library associated with the extension, which
isn't something that makes sense if that library was cross-compiled
for a different architecture.

This was noticed with an x86_64 target that was compiled with avx
support, because it caused 'illegal instruction' exceptions:

| /bin/sh: line 1: 14575 Illegal instruction ... -E ./setup.py -q build

For other target architectures, it doesn't necessarily cause illegal
instruction exceptions, but still fails.  For example, on arm, the
failure pathway causes this warning:

*** WARNING: renaming "cmath" since importing it failed: .../cmath.so:
    wrong ELF class: ELFCLASS32

This patch to setup.py and the associated recipe changes allow the
whole 'import check' logic to be skipped when cross-compiling.

(From OE-Core rev: 25fae81538a92e15eab3fc169ebce44505f67839)

(From OE-Core rev: d83e4ac25cca788d2b102c2072ccb367c0cab284)

Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-01-30 16:38:14 +00:00
..
python python: skip setup.py 'import check' when cross-compiling 2012-01-30 16:38:14 +00:00
python-gst python-gst: upgrade from 0.10.19 to 0.10.21 2011-04-24 22:50:33 +01:00
python-imaging recipes: Fix the Upstream-Status format 2011-05-11 17:14:26 +01:00
python-native python-native: Fix a compiler finding issue 2011-08-08 13:41:19 +01:00
python-pycurl recipes: Update upstream-status of patches 2011-05-13 11:02:19 +01:00
python-pygobject recipes: Update upstream-status of patches 2011-05-13 11:02:19 +01:00
python-pygtk recipes: Add Upstream-Status to multiple recipes 2011-05-13 10:29:01 +01:00
python-pyrex recipes: Update upstream-status of patches 2011-05-13 11:02:19 +01:00
fix-path.inc Major layout change to the packages directory 2010-08-27 15:29:45 +01:00
python-2.6-manifest.inc python: Switch to using the default -dbg package 2011-06-23 12:07:36 +01:00
python-dbus_0.83.2.bb python-dbus: upgrade from 0.83.1 to 0.83.2 2011-01-06 10:06:32 +00:00
python-gst_0.10.21.bb python-gst: Add missing files to the -dbg package 2011-06-23 12:07:35 +01:00
python-imaging_1.1.7.bb Drop PRIORITY variable 2011-07-01 23:27:29 +01:00
python-native_2.6.6.bb python-native: add link for python2 2011-09-08 09:56:32 +01:00
python-pycairo_1.8.10.bb License Field Cleanup: Non-standard field names 2011-05-27 18:27:22 +01:00
python-pycurl_7.19.0.bb recipes: Delete patch=1, its default and replace pnum with striplevel 2011-08-23 18:23:30 -07:00
python-pygobject_2.27.91.bb multilib: remove the multilib handling to allarch 2011-10-04 13:59:30 +01:00
python-pygtk_2.17.0.bb RDEPENDS, RRECOMMENDS -> RDPEPENDS_${PN}, RRECOMMENDS_${PN} 2010-12-30 10:03:10 +00:00
python-pyrex-native_0.9.9.bb RDEPENDS, RRECOMMENDS -> RDPEPENDS_${PN}, RRECOMMENDS_${PN} 2010-12-30 10:03:10 +00:00
python-pyrex_0.9.9.bb Drop PRIORITY variable 2011-07-01 23:27:29 +01:00
python-scons-native_2.0.1.bb RDEPENDS, RRECOMMENDS -> RDPEPENDS_${PN}, RRECOMMENDS_${PN} 2010-12-30 10:03:10 +00:00
python-scons_2.0.1.bb Drop PRIORITY variable 2011-07-01 23:27:29 +01:00
python.inc python: fix security vulnerability 2011-07-22 11:51:05 +01:00
python_2.6.6.bb python: skip setup.py 'import check' when cross-compiling 2012-01-30 16:38:14 +00:00