generic-poky/meta/recipes-devtools
Tom Zanussi 23d2eaf9d2 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)

Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-11-08 21:48:30 +00:00
..
apt deb packages support: switch from /var/dpkg to /var/lib/dpkg 2011-09-21 13:42:49 +01:00
autoconf autoconf: no need to hardcode the full path to m4 2011-10-14 13:18:13 +01:00
automake recipes: Delete patch=1, its default and replace pnum with striplevel 2011-08-23 18:23:30 -07:00
binutils binutils-cross-canadian: Point sysroot to correct location 2011-10-24 17:27:13 +01:00
bison gettext: Switch to disabling nls and reducing -native build dependencies to a set of pre built m4 macros 2011-11-02 08:58:03 +00:00
btrfs-tools fix Upstream-Status line for few patches 2011-07-22 11:51:05 +01:00
ccache ccache: update to 3.1.6 2011-10-20 17:13:41 +01:00
cdrtools Patches: Fix Upstream-Status info 2011-07-13 12:29:20 +01:00
chrpath chrpath: Ensure the package respects the docdir variable 2011-07-07 10:57:50 +01:00
cmake cmake : Disable building ccmake. 2011-10-17 14:10:42 +01:00
desktop-file-utils desktop-file-utils: Add SRC_URI checksums 2011-04-06 08:01:13 -07:00
diffstat diffstat: Add missing file from previous commit 2011-09-22 22:23:36 +01:00
distcc SRC_URI, S: use BPN instead of PN for multilib case 2011-08-04 15:04:30 +01:00
docbook-dsssl-stylesheets docbook-dsssl-stylesheets-native: Write a bak file for shared state 2011-08-01 14:16:55 +01:00
docbook-sgml-dtd docbook-sgml-dtd-native: Write a bak file for shared state 2011-08-01 14:16:55 +01:00
docbook-utils Drop PRIORITY variable 2011-07-01 23:27:29 +01:00
dosfstools dosfstools: Add SRC_URI Checksum 2011-10-07 11:35:44 +01:00
dpkg deb packages support: switch from /var/dpkg to /var/lib/dpkg 2011-09-21 13:42:49 +01:00
e2fsprogs e2fsprogs: move mke2fs.conf to e2fsprogs-mke2fs package 2011-10-31 22:03:25 +00:00
elfutils fix Upstream-Status line for few patches 2011-07-22 11:51:05 +01:00
file update patch upstream status 2011-05-13 11:02:14 +01:00
flex flex.inc: inherit gettext class instead of adding gettext to DEPENDS directly 2011-04-04 14:09:43 +01:00
gcc gcc-4.6: Backport fix for PR32219 2011-10-24 17:27:17 +01:00
gdb Add readline as dependecy for gdb-cross-canadian 2011-10-27 08:45:48 +01:00
genext2fs recipes-devtools: Add Summary information 2010-12-16 15:53:08 +00:00
git libxml-parser-perl, libxml-simple-perl, expat, sgmlspl-native, git: bump PR to rebuild after perl upgrade 2011-10-25 08:36:16 +01:00
gnu-config gnu-config-native: should depend on perl-native-runtime rather than perl-native 2011-06-09 16:58:33 +01:00
guilt guilt-native: Add SRC_URI Checksums 2011-10-07 11:35:44 +01:00
help2man help2man-native: Add 1.38.2 2011-07-20 15:27:36 +01:00
icecc-create-env icecc-create-env-native: provide the script right in the tree 2011-09-28 14:58:47 +01:00
icon-naming-utils icon-naming-utils: Add SRC_URI Checksum 2011-10-07 11:35:46 +01:00
insserv Drop PRIORITY variable 2011-07-01 23:27:29 +01:00
installer qt-demo-init/linux-firmware/adt-installer: Convert to Use allarch class file 2011-10-10 09:59:09 +01:00
intltool intltool: add libxml-parser-perl-native dependency to -native version 2011-09-22 22:23:38 +01:00
libtool libtool: Fix an issue where unnecessary rpaths were being injected 2011-09-26 17:56:44 +01:00
linuxdoc-tools recipes: add Upstream-Status to various recipe patches 2011-05-18 14:32:46 +01:00
m4 recipes: Delete patch=1, its default and replace pnum with striplevel 2011-08-23 18:23:30 -07:00
make recipes: Delete patch=1, its default and replace pnum with striplevel 2011-08-23 18:23:30 -07:00
makedevs Patches: Fix Upstream-Status info 2011-07-13 12:29:20 +01:00
mklibs mklibs-native: Update to 0.1.33 2011-05-19 20:51:38 +01:00
mtd mtd-utils: update to version to 1.4.6 2011-09-07 22:54:13 +01:00
mtools mtools: upgrade to 4.0.17 2011-10-27 08:29:51 +01:00
nasm nasm: Fix aclocal 2011-06-23 12:07:31 +01:00
openjade openjade-native: Change RDEPENDS of sgml-common-native 2011-08-03 18:07:25 +01:00
opensp opensp: Fix hard path in native nsgmls. 2011-09-13 17:06:17 +01:00
opkg opkg svn: bump SRCREV to 625 2011-07-27 16:46:29 +01:00
opkg-utils opkg-utils: ignore packages disapperaring filelist generation 2011-08-29 13:48:06 +01:00
patch recipes: Delete patch=1, its default and replace pnum with striplevel 2011-08-23 18:23:30 -07:00
pax-utils pax-utils: upgrade to version 2.2.2 2011-01-06 10:06:29 +00:00
perl libxml-parser-perl, libxml-simple-perl, expat, sgmlspl-native, git: bump PR to rebuild after perl upgrade 2011-10-25 08:36:16 +01:00
pkgconfig pkgconfig: Fix logic that was accidently leaving legacy pkg-config functionality enabled 2011-10-07 11:35:50 +01:00
prelink Uprev to latest version of prelink_git, fixing TLS issues 2011-09-15 11:23:56 +01:00
pseudo pseudo: Uprev pseudo to version 1.2 2011-11-08 21:44:36 +00:00
python python: skip setup.py 'import check' when cross-compiling 2011-11-08 21:48:30 +00:00
qemu qemu.inc: qemu-native also needs glib-2.0 native 2011-10-14 13:18:19 +01:00
quilt quilt: Add RDEPENDS on bash 2011-07-08 16:39:07 +01:00
rpm rpm: fix QA Warning on installed but not shipped staticdev filesw 2011-09-28 14:58:52 +01:00
rsync rsync: Update to 3.0.9 2011-10-14 13:18:18 +01:00
sgml-common sgml-common-native: Read a catalog backup to repopulate sgml-docbook.cat 2011-08-01 14:16:55 +01:00
sgmlspl libxml-parser-perl, libxml-simple-perl, expat, sgmlspl-native, git: bump PR to rebuild after perl upgrade 2011-10-25 08:36:16 +01:00
squashfs-tools squashfs-tools: add recipe 2011-10-24 17:27:16 +01:00
strace Add new strace-graph package to avoid making perl a dependecy for all of strace 2011-10-31 22:03:22 +00:00
subversion subversion-1.6.15: add native support too 2011-10-24 17:27:17 +01:00
swabber poky-default-revisions: move the SRCREV to recipe file 2011-05-04 15:06:36 +01:00
syslinux syslinux: rdepends on mtools 2011-05-25 15:50:54 +01:00
tcf-agent tcf-agent: add openssl into DEPENDS 2011-08-17 15:14:56 +01:00
tcltk tcl: upgrade from 8.5.9 to 8.5.10 2011-10-24 17:27:12 +01:00
transfig Drop PRIORITY variable 2011-07-01 23:27:29 +01:00
ubootchart recipes: Delete patch=1, its default and replace pnum with striplevel 2011-08-23 18:23:30 -07:00
unfs-server Allow user mode NFS server to run without rpcbind / portmap 2011-10-10 10:00:08 +01:00
unifdef unifdef: add LIC_FILES_CHKSUM 2010-12-23 15:52:06 +00:00
update-alternatives deb packages support: switch from /var/dpkg to /var/lib/dpkg 2011-09-21 13:42:49 +01:00
valgrind valgrind: supporting on Linux kernel 3.x 2011-08-15 15:26:16 +01:00