From abb423512d10d7554e0d62b3a593ce5e436f2756 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 17 Feb 2020 22:34:30 -0800 Subject: qtwebview: Skip if meta-python is not present It needs qtwebengine which needs python2 so skip it when python2 is not present Signed-off-by: Khem Raj --- recipes-qt/qt5/qtwebview_git.bb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'recipes-qt/qt5/qtwebview_git.bb') diff --git a/recipes-qt/qt5/qtwebview_git.bb b/recipes-qt/qt5/qtwebview_git.bb index 5d102629..c0ca6118 100644 --- a/recipes-qt/qt5/qtwebview_git.bb +++ b/recipes-qt/qt5/qtwebview_git.bb @@ -20,3 +20,8 @@ COMPATIBLE_MACHINE_armv7ve = "(.*)" COMPATIBLE_MACHINE_aarch64 = "(.*)" SRCREV = "94c697c37945dedb37a55c1a9669d868f8c97f41" + +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