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_0.26.4.bb | |
| 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_0.26.4.bb')
| -rw-r--r-- | meta-python/recipes-devtools/python/python-m2crypto_0.26.4.bb | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/meta-python/recipes-devtools/python/python-m2crypto_0.26.4.bb b/meta-python/recipes-devtools/python/python-m2crypto_0.26.4.bb deleted file mode 100644 index 0da4274d96..0000000000 --- a/meta-python/recipes-devtools/python/python-m2crypto_0.26.4.bb +++ /dev/null | |||
| @@ -1,54 +0,0 @@ | |||
| 1 | SUMMARY = "A Python crypto and SSL toolkit" | ||
| 2 | HOMEPAGE = "https://gitlab.com/m2crypto/m2crypto" | ||
| 3 | |||
| 4 | LICENSE = "BSD" | ||
| 5 | LIC_FILES_CHKSUM = "file://LICENCE;md5=b0e1f0b7d0ce8a62c18b1287b991800e" | ||
| 6 | |||
| 7 | SRC_URI += "file://0001-setup.py-link-in-sysroot-not-in-host-directories.patch \ | ||
| 8 | file://cross-compile-platform.patch \ | ||
| 9 | file://m2crypto-0.26.4-gcc_macros.patch \ | ||
| 10 | " | ||
| 11 | SRC_URI[md5sum] = "5c74c25ba8b45122318a165a3a2059ad" | ||
| 12 | SRC_URI[sha256sum] = "5cae7acc0b34821f8c0ddf6665e482893fe1f198ad6379e61ffa9d8e65f5c199" | ||
| 13 | |||
| 14 | PYPI_PACKAGE = "M2Crypto" | ||
| 15 | inherit pypi setuptools siteinfo | ||
| 16 | |||
| 17 | DEPENDS += "openssl swig-native" | ||
| 18 | RDEPENDS_${PN} += "python-typing" | ||
| 19 | |||
| 20 | DISTUTILS_BUILD_ARGS += "build_ext --openssl=${STAGING_DIR_HOST} -I${STAGING_INCDIR}" | ||
| 21 | DISTUTILS_INSTALL_ARGS += "build_ext --openssl=${STAGING_DIR_HOST}" | ||
| 22 | |||
| 23 | SWIG_FEATURES_x86 = "-D__i386__" | ||
| 24 | SWIG_FEATURES ?= "-D__${HOST_ARCH}__" | ||
| 25 | export SWIG_FEATURES | ||
| 26 | |||
| 27 | # Get around a problem with swig, but only if the | ||
| 28 | # multilib header file exists. | ||
| 29 | # | ||
| 30 | do_configure_prepend() { | ||
| 31 | ${CPP} -dM - < /dev/null | grep -v __STDC__ | grep -v __REGISTER_PREFIX__ | grep -v __GNUC__ \ | ||
| 32 | | sed 's/^\(#define \([^ ]*\) .*\)$/#undef \2\n\1/' > SWIG/gcc_macros.h | ||
| 33 | if [ "${SITEINFO_BITS}" = "64" ];then | ||
| 34 | bit="64" | ||
| 35 | else | ||
| 36 | bit="32" | ||
| 37 | fi | ||
| 38 | |||
| 39 | if [ -e ${STAGING_INCDIR}/openssl/opensslconf-${bit}.h ] ;then | ||
| 40 | for i in SWIG/_ec.i SWIG/_evp.i; do | ||
| 41 | sed -i -e "s/opensslconf.*\./opensslconf-${bit}\./" "$i" | ||
| 42 | done | ||
| 43 | elif [ -e ${STAGING_INCDIR}/openssl/opensslconf-n${bit}.h ] ;then | ||
| 44 | for i in SWIG/_ec.i SWIG/_evp.i; do | ||
| 45 | sed -i -e "s/opensslconf.*\./opensslconf-n${bit}\./" "$i" | ||
| 46 | done | ||
| 47 | fi | ||
| 48 | } | ||
| 49 | |||
| 50 | BBCLASSEXTEND = "native" | ||
| 51 | |||
| 52 | # http://errors.yoctoproject.org/Errors/Details/184714/ | ||
| 53 | # SWIG/_m2crypto.i:10: Error: Unable to find 'gcc_macros.h' | ||
| 54 | CLEANBROKEN = "1" | ||
