All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-python][PATCH] python3-wxgtk4: Require DISTRO_FEATURES as gtk3
@ 2022-04-09  8:54 Robert Yang
  0 siblings, 0 replies; only message in thread
From: Robert Yang @ 2022-04-09  8:54 UTC (permalink / raw)
  To: openembedded-devel; +Cc: raj.khem

It can't be built without gtk3:
No package 'gtk+-3.0' found

So make it have the same DISTRO_FEATURES as gtk3. It may also support gtk2, but
it depends on wxwidgets which doesn't support gtk2, so we don't have to
consider that.

And python3-wxgtk4 doesn't have PACKAGECONFIG, so remove the checking for
PACKAGECONFIG.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
 .../python3-wxgtk4/python3-wxgtk4_4.1.1.bb                | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

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 dcb373a1f..cbe3aedd1 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,10 +4,6 @@ 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"
@@ -20,7 +16,9 @@ SRC_URI[sha256sum] = "00e5e3180ac7f2852f342ad341d57c44e7e4326de0b550b9a5c4a8361b
 
 S = "${WORKDIR}/wxPython-${PV}"
 
-inherit pypi setuptools3 pkgconfig
+inherit pypi setuptools3 pkgconfig features_check
+
+ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
 
 export WX_CONFIG = "'${RECIPE_SYSROOT_NATIVE}${bindir}/wx-config --prefix=${STAGING_EXECPREFIXDIR}'"
 
-- 
2.17.1



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-11 17:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-09  8:54 [meta-python][PATCH] python3-wxgtk4: Require DISTRO_FEATURES as gtk3 Robert Yang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.