Skip to contentSkip to conversation

avahi: Make GTK3 support conditional based on DISTRO_FEATURES

PATCH New Otavio Salvador 1 participant 1 message May 9, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 avahi: Make GTK3 support conditional based on DISTRO_FEATURES

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.

---

 meta/recipes-connectivity/avahi/avahi_0.8.bb | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
meta/recipes-connectivity/avahi/avahi_0.8.bb +2 -4
index f4924fa1cb..ed1147b540 100644
@@ -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"
Signature · 1 line
2.26.2