Because of a bitbake limitation add python-m2crypto-native.bbclass which can be inherited by users of python-m2crypto-native to get the required dependencies into their recipe specific sysroot.
Signed-off-by: Max Krummenacher <[email protected]> --- meta-python/classes/python-m2crypto-native.bbclass | 6 ++++++ meta-python/recipes-devtools/python/python-m2crypto_0.25.1.bb | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 meta-python/classes/python-m2crypto-native.bbclass diff --git a/meta-python/classes/python-m2crypto-native.bbclass b/meta-python/classes/python-m2crypto-native.bbclass new file mode 100644 index 0000000..afaeca8 --- /dev/null +++ b/meta-python/classes/python-m2crypto-native.bbclass @@ -0,0 +1,6 @@ +# Inherit this class if you need python-m2crypto-native in your +# sysroot. This works around RDEPENDS of native packages pulled in via +# DEPENDS not being installed otherwise. + +DEPENDS_append = " python-m2crypto-native python-typing-native" +inherit pythonnative diff --git a/meta-python/recipes-devtools/python/python-m2crypto_0.25.1.bb b/meta-python/recipes-devtools/python/python-m2crypto_0.25.1.bb index ca46222..7c41828 100644 --- a/meta-python/recipes-devtools/python/python-m2crypto_0.25.1.bb +++ b/meta-python/recipes-devtools/python/python-m2crypto_0.25.1.bb @@ -12,7 +12,9 @@ SRC_URI += "file://0001-setup.py-link-in-sysroot-not-in-host-directories.patch " PYPI_PACKAGE = "M2Crypto" inherit pypi setuptools siteinfo -DEPENDS += "openssl swig-native python-typing" +DEPENDS += "openssl swig-native" +# any change to RDEPENDS should also go into python-m2crypto-native.bbclass +RDEPENDS_${PN} += "python-typing" DISTUTILS_BUILD_ARGS += "build_ext --openssl=${STAGING_DIR_HOST} -I${STAGING_INCDIR}" DISTUTILS_INSTALL_ARGS += "build_ext --openssl=${STAGING_DIR_HOST}" -- 2.6.6 -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
