[oe] [meta-python2][PATCH 1/2] python-ldap: skip when meta-networking isn't included
Martin Jansa
martin.jansa at gmail.com
Tue Feb 25 19:07:38 UTC 2020
* fixes:
ERROR: Nothing PROVIDES 'cyrus-sasl' (but meta-python2/recipes-devtools/python/python-ldap_3.2.0.bb DEPENDS on or otherwise requires it)
in world builds without meta-networking
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
recipes-devtools/python/python-ldap_3.2.0.bb | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/recipes-devtools/python/python-ldap_3.2.0.bb b/recipes-devtools/python/python-ldap_3.2.0.bb
index af8961e..8e43dee 100644
--- a/recipes-devtools/python/python-ldap_3.2.0.bb
+++ b/recipes-devtools/python/python-ldap_3.2.0.bb
@@ -23,9 +23,15 @@ do_configure_prepend() {
sed -i -e 's:^include_dirs =.*:include_dirs = =/usr/include/sasl/:' setup.cfg
}
+
RDEPENDS_${PN} = " \
${PYTHON_PN}-pprint \
${PYTHON_PN}-threading \
${PYTHON_PN}-pyasn1 \
${PYTHON_PN}-pyasn1-modules \
"
+
+python() {
+ if 'networking-layer' not in d.getVar('BBFILE_COLLECTIONS').split():
+ raise bb.parse.SkipRecipe('Requires networking-layer to be present to provide cyrus-sasl.')
+}
--
2.20.1
More information about the Openembedded-devel
mailing list