From fb83b5d110616cb09332ec8be6e4c6209f64d85e Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 21 Jan 2020 18:23:47 -0800 Subject: lio-utils: Make it visible only with meta-py2 in BBFILE_COLLECTIONS Signed-off-by: Khem Raj --- meta-oe/recipes-support/lio-utils/lio-utils_4.1.bb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'meta-oe/recipes-support') diff --git a/meta-oe/recipes-support/lio-utils/lio-utils_4.1.bb b/meta-oe/recipes-support/lio-utils/lio-utils_4.1.bb index 058117ed83..8e5986bd9e 100644 --- a/meta-oe/recipes-support/lio-utils/lio-utils_4.1.bb +++ b/meta-oe/recipes-support/lio-utils/lio-utils_4.1.bb @@ -12,7 +12,7 @@ SRC_URI = "git://github.com/Datera/lio-utils.git \ SRCREV = "0ac9091c1ff7a52d5435a4f4449e82637142e06e" S = "${WORKDIR}/git" -inherit distutils3 +inherit distutils EXTRA_OEMAKE += "DESTDIR=${D}" @@ -64,3 +64,9 @@ FILES_${PN} += "${sbindir}/* /etc/init.d/* /etc/target/*" # http://errors.yoctoproject.org/Errors/Details/184712/ # python-native/python: can't open file 'setup.py': [Errno 2] No such file or directory CLEANBROKEN = "1" + +python() { + if 'meta-python2' not in d.getVar('BBFILE_COLLECTIONS').split(): + raise bb.parse.SkipRecipe('Requires meta-python2 to be present.') +} + -- cgit v1.2.3-54-g00ecf