diff options
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-m2crypto_0.47.0.bb')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-m2crypto_0.47.0.bb | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-m2crypto_0.47.0.bb b/meta-python/recipes-devtools/python/python3-m2crypto_0.47.0.bb new file mode 100644 index 0000000000..ba7bd9b8e3 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-m2crypto_0.47.0.bb | |||
| @@ -0,0 +1,55 @@ | |||
| 1 | SUMMARY = "A Python crypto and SSL toolkit" | ||
| 2 | HOMEPAGE = "https://gitlab.com/m2crypto/m2crypto" | ||
| 3 | |||
| 4 | LICENSE = "BSD-2-Clause" | ||
| 5 | LIC_FILES_CHKSUM = "file://LICENSES/BSD-2-Clause.txt;md5=8099b0e569f862ece05740aef06c82a2" | ||
| 6 | |||
| 7 | SRC_URI[sha256sum] = "9256300be1e0412be802aa1f827e0ce7f94deb1099b8ccdcfd9867a7f0f975bf" | ||
| 8 | |||
| 9 | SRC_URI += "file://0001-setup.py-Make-the-cmd-available.patch" | ||
| 10 | |||
| 11 | CVE_STATUS[CVE-2009-0127] = "disputed: upstream claims there is no bug" | ||
| 12 | CVE_STATUS[CVE-2020-25657] = "fixed-version: the used version (0.46.2) contains the fix already" | ||
| 13 | |||
| 14 | inherit pypi siteinfo python_setuptools_build_meta | ||
| 15 | |||
| 16 | DEPENDS += "openssl swig-native" | ||
| 17 | RDEPENDS:${PN} += "\ | ||
| 18 | python3-datetime \ | ||
| 19 | python3-setuptools \ | ||
| 20 | python3-logging \ | ||
| 21 | python3-netclient \ | ||
| 22 | python3-netserver \ | ||
| 23 | python3-numbers \ | ||
| 24 | python3-xmlrpc \ | ||
| 25 | " | ||
| 26 | |||
| 27 | DISTUTILS_BUILD_ARGS += "build_ext --openssl=${STAGING_EXECPREFIXDIR} -I${STAGING_INCDIR}" | ||
| 28 | DISTUTILS_INSTALL_ARGS += "build_ext --openssl=${STAGING_EXECPREFIXDIR}" | ||
| 29 | |||
| 30 | SWIG_FEATURES ?= "-D__${HOST_ARCH}__ ${@['-D__ILP32__','-D__LP64__'][d.getVar('SITEINFO_BITS') != '32']} -DOPENSSL_NO_FILENAMES" | ||
| 31 | |||
| 32 | SWIG_FEATURES:append:riscv64 = " -D__SIZEOF_POINTER__=${SITEINFO_BITS}/8 -D__riscv_xlen=${SITEINFO_BITS}" | ||
| 33 | SWIG_FEATURES:append:riscv32 = " -D__SIZEOF_POINTER__=${SITEINFO_BITS}/8 -D__riscv_xlen=${SITEINFO_BITS}" | ||
| 34 | SWIG_FEATURES:append:mipsarch = " -D_MIPS_SZPTR=${SITEINFO_BITS}" | ||
| 35 | SWIG_FEATURES:append:powerpc64le = " -D__powerpc64__" | ||
| 36 | SWIG_FEATURES:append:x86 = " -D__i386__" | ||
| 37 | SWIG_FEATURES:append:x32 = " -D__ILP32__" | ||
| 38 | |||
| 39 | export SWIG_FEATURES | ||
| 40 | |||
| 41 | export STAGING_DIR | ||
| 42 | |||
| 43 | do_configure:prepend:class-target() { | ||
| 44 | # workaround for https://github.com/swiftlang/swift/issues/69311 | ||
| 45 | sed -i "/sys\/types.h/d" ${RECIPE_SYSROOT}${includedir}/openssl/e_os2.h | ||
| 46 | } | ||
| 47 | |||
| 48 | do_install:append() { | ||
| 49 | rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/M2Crypto/SSL/__pycache__/*.cpython-*.pyc | ||
| 50 | rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/M2Crypto/__pycache__/*.cpython-*.pyc | ||
| 51 | } | ||
| 52 | |||
| 53 | CVE_PRODUCT = "m2crypto" | ||
| 54 | |||
| 55 | BBCLASSEXTEND = "native" | ||
