[oe-commits] [meta-openembedded] 04/04: guider: Build only when meta-py2 is in mix
git at git.openembedded.org
git at git.openembedded.org
Wed Jan 22 19:12:11 UTC 2020
This is an automated email from the git hooks/post-receive script.
khem pushed a commit to branch master-next
in repository meta-openembedded.
commit 82eef4ef6297805db1a25bef5ea9d26f8f87b4b4
Author: Khem Raj <raj.khem at gmail.com>
AuthorDate: Wed Jan 22 11:07:06 2020 -0800
guider: Build only when meta-py2 is in mix
Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
meta-oe/recipes-devtools/guider/guider_3.9.6.bb | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/meta-oe/recipes-devtools/guider/guider_3.9.6.bb b/meta-oe/recipes-devtools/guider/guider_3.9.6.bb
index c8ddb15..397e0cb 100644
--- a/meta-oe/recipes-devtools/guider/guider_3.9.6.bb
+++ b/meta-oe/recipes-devtools/guider/guider_3.9.6.bb
@@ -16,7 +16,7 @@ SRCREV = "fef25c41efb9bde0614ea477d0b90bd9565ae0b4"
S = "${WORKDIR}/git"
R = "${RECIPE_SYSROOT}"
-inherit distutils3
+inherit distutils
GUIDER_OBJ = "guider.pyc"
GUIDER_SCRIPT = "guider"
@@ -31,5 +31,9 @@ do_install() {
install -v -m 0755 ${STAGING_LIBDIR_NATIVE}/python${PYTHON_BASEVERSION}/site-packages/${BPN}/${GUIDER_OBJ} ${D}${datadir}/${BPN}/${GUIDER_OBJ}
}
-RDEPENDS_${PN} = "python3-ctypes python3-shell \
- python3-json python3-subprocess"
+RDEPENDS_${PN} = "python-ctypes python-shell \
+ python-json python-subprocess"
+python() {
+ if 'meta-python2' not in d.getVar('BBFILE_COLLECTIONS').split():
+ raise bb.parse.SkipRecipe('Requires meta-python2 to be present.')
+}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list