The GTK3 needs to have one of GTK3DISTROFEATURES enabled (x11 or
wayland) for the PACKAGECONFIG to be enable, so we keep support for
distros where those are not included.

Signed-off-by: Otavio Salvador <[email protected]>
---

 meta/recipes-connectivity/avahi/avahi_0.8.bb | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/meta/recipes-connectivity/avahi/avahi_0.8.bb 
b/meta/recipes-connectivity/avahi/avahi_0.8.bb
index f4924fa1cb..ed1147b540 100644
--- a/meta/recipes-connectivity/avahi/avahi_0.8.bb
+++ b/meta/recipes-connectivity/avahi/avahi_0.8.bb
@@ -32,10 +32,8 @@ SRC_URI[sha256sum] = 
"060309d7a333d38d951bc27598c677af1796934dbd98e1024e7ad8de79
 
 DEPENDS = "expat libcap libdaemon glib-2.0 intltool-native"
 
-# For gtk related PACKAGECONFIGs: gtk, gtk3
-AVAHI_GTK ?= "gtk3"
-
-PACKAGECONFIG ??= "dbus ${AVAHI_GTK}"
+PACKAGECONFIG ??= "dbus \
+                   ${@bb.utils.contains_any('DISTRO_FEATURES', 
'${GTK3DISTROFEATURES}', 'gtk3', '', d)}"
 PACKAGECONFIG[dbus] = "--enable-dbus,--disable-dbus,dbus"
 PACKAGECONFIG[gtk] = "--enable-gtk,--disable-gtk,gtk+"
 PACKAGECONFIG[gtk3] = "--enable-gtk3,--disable-gtk3,gtk+3"
-- 
2.26.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#138078): 
https://lists.openembedded.org/g/openembedded-core/message/138078
Mute This Topic: https://lists.openembedded.org/mt/74096560/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to