[oe] [meta-oe][PATCH][master-next 1/4] python-m2crypto-native: rdepend on python-typing

Max Krummenacher max.oss.09 at gmail.com
Mon Feb 13 21:02:05 UTC 2017


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 <max.krummenacher at toradex.com>
---
 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




More information about the Openembedded-devel mailing list