All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oe][PATCH][master-next 1/4] python-m2crypto-native: rdepend on python-typing
@ 2017-02-13 21:02 Max Krummenacher
  2017-02-13 21:02 ` [meta-oe][PATCH][master-next 2/4] crda: add rdepends of python-m2crypto-native Max Krummenacher
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Max Krummenacher @ 2017-02-13 21:02 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Max Krummenacher

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@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



^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-02-15 18:56 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-13 21:02 [meta-oe][PATCH][master-next 1/4] python-m2crypto-native: rdepend on python-typing Max Krummenacher
2017-02-13 21:02 ` [meta-oe][PATCH][master-next 2/4] crda: add rdepends of python-m2crypto-native Max Krummenacher
2017-02-15 18:56   ` Andy
2017-02-13 21:02 ` [meta-oe][PATCH][master-next 3/4] pywbem: depend on python-m2crypto-native and its rdepends Max Krummenacher
2017-02-13 21:39   ` Martin Jansa
2017-02-13 21:40     ` Martin Jansa
2017-02-13 22:05       ` Max Krummenacher
2017-02-13 22:58         ` Martin Jansa
2017-02-14 12:22           ` Max Krummenacher
2017-02-13 21:02 ` [meta-oe][PATCH][master-next 4/4] openlmi-tools: remove blacklist Max Krummenacher

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.