diff options
author | Jens Rehsack <sno@netbsd.org> | 2018-08-27 13:07:35 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2018-08-28 09:36:28 -0700 |
commit | 15bd5f4ebb70f3cfc36534a759ce2dbd6515d6e6 (patch) | |
tree | 267f9b3093ce0d3d7b6b8af4aa13338f7418627d /meta-python/recipes-devtools/python/python-m2crypto.inc | |
parent | b3b34496758768d06a18621754492dde730c9423 (diff) | |
download | meta-openembedded-15bd5f4ebb70f3cfc36534a759ce2dbd6515d6e6.tar.gz |
python{, 3}-m2crypto: update from 0.26.4 -> 0.30.1
Updating recipe for crypto and SSL toolkit for python and support
python3 infrastructure of Yocto as well as the already supported
python2 line.
Refresh patches to fix devtool warnings
Signed-off-by: Jens Rehsack <sno@netbsd.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python-m2crypto.inc')
-rw-r--r-- | meta-python/recipes-devtools/python/python-m2crypto.inc | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python-m2crypto.inc b/meta-python/recipes-devtools/python/python-m2crypto.inc new file mode 100644 index 0000000000..d0eaa819b1 --- /dev/null +++ b/meta-python/recipes-devtools/python/python-m2crypto.inc | |||
@@ -0,0 +1,56 @@ | |||
1 | SUMMARY = "A Python crypto and SSL toolkit" | ||
2 | HOMEPAGE = "https://gitlab.com/m2crypto/m2crypto" | ||
3 | |||
4 | LICENSE = "MIT" | ||
5 | LIC_FILES_CHKSUM = "file://LICENCE;md5=b0e1f0b7d0ce8a62c18b1287b991800e" | ||
6 | |||
7 | FILESEXTRAPATHS_prepend := "${THISDIR}/python-m2crypto:" | ||
8 | |||
9 | SRC_URI += "file://0001-setup.py-link-in-sysroot-not-in-host-directories.patch \ | ||
10 | file://cross-compile-platform.patch \ | ||
11 | file://m2crypto-0.26.4-gcc_macros.patch \ | ||
12 | " | ||
13 | SRC_URI[md5sum] = "7fce3cbf85eb84a669682892b935746b" | ||
14 | SRC_URI[sha256sum] = "a1b2751cdadc6afac3df8a5799676b7b7c67a6ad144bb62d38563062e7cd3fc6" | ||
15 | |||
16 | PYPI_PACKAGE = "M2Crypto" | ||
17 | inherit pypi siteinfo | ||
18 | |||
19 | DEPENDS += "openssl swig-native" | ||
20 | RDEPENDS_${PN} += "python-typing" | ||
21 | |||
22 | DISTUTILS_BUILD_ARGS += "build_ext --openssl=${STAGING_DIR_HOST} -I${STAGING_INCDIR}" | ||
23 | DISTUTILS_INSTALL_ARGS += "build_ext --openssl=${STAGING_DIR_HOST}" | ||
24 | |||
25 | SWIG_FEATURES_x86 = "-D__i386__" | ||
26 | SWIG_FEATURES ?= "-D__${HOST_ARCH}__" | ||
27 | export SWIG_FEATURES | ||
28 | |||
29 | # Get around a problem with swig, but only if the | ||
30 | # multilib header file exists. | ||
31 | # | ||
32 | do_configure_prepend() { | ||
33 | ${CPP} -dM - < /dev/null | grep -v __STDC__ | grep -v __REGISTER_PREFIX__ | grep -v __GNUC__ \ | ||
34 | | sed 's/^\(#define \([^ ]*\) .*\)$/#undef \2\n\1/' > SWIG/gcc_macros.h | ||
35 | if [ "${SITEINFO_BITS}" = "64" ];then | ||
36 | bit="64" | ||
37 | else | ||
38 | bit="32" | ||
39 | fi | ||
40 | |||
41 | if [ -e ${STAGING_INCDIR}/openssl/opensslconf-${bit}.h ] ;then | ||
42 | for i in SWIG/_ec.i SWIG/_evp.i; do | ||
43 | sed -i -e "s/opensslconf.*\./opensslconf-${bit}\./" "$i" | ||
44 | done | ||
45 | elif [ -e ${STAGING_INCDIR}/openssl/opensslconf-n${bit}.h ] ;then | ||
46 | for i in SWIG/_ec.i SWIG/_evp.i; do | ||
47 | sed -i -e "s/opensslconf.*\./opensslconf-n${bit}\./" "$i" | ||
48 | done | ||
49 | fi | ||
50 | } | ||
51 | |||
52 | BBCLASSEXTEND = "native" | ||
53 | |||
54 | # http://errors.yoctoproject.org/Errors/Details/184714/ | ||
55 | # SWIG/_m2crypto.i:10: Error: Unable to find 'gcc_macros.h' | ||
56 | CLEANBROKEN = "1" | ||