From b1645981ffd9915bea7836734c9aec74786a0c8e Mon Sep 17 00:00:00 2001 From: Davide Gardenal Date: Mon, 4 Apr 2022 14:44:25 +0200 Subject: python3-wxgtk4: add distro feature check to match dependency Add REQUIRED_DISTRO_FEATURE to match wxwidgets, this fix build error (not buildable target) when x11 is not supported Signed-off-by: Davide Gardenal Signed-off-by: Khem Raj Signed-off-by: Trevor Gamblin --- meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.1.1.bb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meta-python/recipes-devtools/python3-wxgtk4') diff --git a/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.1.1.bb b/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.1.1.bb index e61b00efa4..dcb373a1f3 100644 --- a/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.1.1.bb +++ b/meta-python/recipes-devtools/python3-wxgtk4/python3-wxgtk4_4.1.1.bb @@ -4,6 +4,10 @@ HOMEPAGE = "http://www.wxpython.org" LICENSE = "WXwindows" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=fce1d18e2d633d41786c0a8dfbc80917" +inherit features_check + +REQUIRED_DISTRO_FEATURES = "${@bb.utils.contains('PACKAGECONFIG', 'no_gui', '', 'x11', d)}" + DEPENDS = "wxwidgets-native wxwidgets" PYPI_PACKAGE = "wxPython" -- cgit 1.2.3-korg