mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
After python-m2crypto was reported as failed task in bitbake world on 2014-02-08 by Martin Jansa, I investigated python-m2crypto with MACHINE = "qemux86-64" setting. When compiling python-m2crypto for qemux86-64, the setup.py aborts in the swig call with: | swig -python -I[...]/tmp-eglibc/sysroots/qemux86-64/usr/include/python2.7 -I[...]/tmp-eglibc/sysroots/qemux86-64/usr/include -includeall -o SWIG/_m2crypto_wrap.c SWIG/_m2crypto.i | [...]/tmp-eglibc/sysroots/qemux86-64/usr/include/openssl/opensslconf.h:41: Error: Unable to find 'openssl/opensslconf-32.h' | error: command 'swig' failed with exit status 1 | ERROR: python setup.py build_ext execution failed. | WARNING: exit code 1 from a shell command. To compile for x86-64 architecture, opensslconf.h shall include opensslconf-64.h, not opensslconf-32.h. Properly including opensslconf-64.h can be configured through the bits/wordsize.h header and setting the __x86_64__ directive in the swig call. To set the directive, the SWIG_FEATURES variable for x86-64 is set and exported in the recipe. Compiling python-m2crypto for qemumips still fails and needs further adjustments, but is not addressed here. This patch follows Khem Raj's suggestion on the openembedded-devel mailing list after submission of the first commit to this issue. Signed-off-by: Lukas Bulwahn <lukas.bulwahn@oss.bmw-carit.de> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
24 lines
707 B
BlitzBasic
24 lines
707 B
BlitzBasic
DESCRIPTION = "A Python crypto and SSL toolkit"
|
|
HOMEPAGE = "http://chandlerproject.org/bin/view/Projects/MeTooCrypto"
|
|
|
|
DEPENDS = "openssl swig-native"
|
|
|
|
LICENSE = "BSD"
|
|
LIC_FILES_CHKSUM = "file://LICENCE;md5=b0e1f0b7d0ce8a62c18b1287b991800e"
|
|
|
|
SRC_URI = "http://pypi.python.org/packages/source/M/M2Crypto/M2Crypto-${PV}.tar.gz \
|
|
file://0001-setup.py-link-in-sysroot-not-in-host-directories.patch"
|
|
|
|
SRC_URI[md5sum] = "f93d8462ff7646397a9f77a2fe602d17"
|
|
SRC_URI[sha256sum] = "25b94498505c2d800ee465db0cc1aff097b1615adc3ac042a1c85ceca264fc0a"
|
|
|
|
S = "${WORKDIR}/M2Crypto-${PV}"
|
|
|
|
inherit setuptools
|
|
|
|
SWIG_FEATURES_x86-64 = "-D__x86_64__"
|
|
SWIG_FEATURES ?= ""
|
|
export SWIG_FEATURES
|
|
|
|
BBCLASSEXTEND = "native"
|