Skip to contentSkip to conversation

avahi: only use gtk if DISTRO_FEATURES includes x11

PATCH Applied Phil Blundell 2 participants 2 messages Sep 7, 2011 – Sep 8, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 avahi: only use gtk if DISTRO_FEATURES includes x11

Otherwise avahi isn't buildable for an x11-less DISTRO.

---
 meta/recipes-connectivity/avahi/avahi.inc |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
meta/recipes-connectivity/avahi/avahi.inc +3 -1
index dc7a5ae..24ea458 100644
@@ -14,7 +14,8 @@ SECTION = "network"
 # python scripts are under GPLv2+
 LICENSE = "GPLv2+ & LGPLv2.1+"
 
-DEPENDS = "expat libcap libdaemon dbus glib-2.0 gtk+ libglade"
+X11DEPENDS = "gtk+ libglade"
+DEPENDS = "expat libcap libdaemon dbus glib-2.0 ${@base_contains('DISTRO_FEATURES', 'x11', '${X11DEPENDS}', '', d)}"
 
 SRC_URI = "http://avahi.org/download/avahi-${PV}.tar.gz \
           file://00avahi-autoipd \
@@ -30,6 +31,7 @@ EXTRA_OECONF = "--with-distro=debian \
              --disable-mono \
              --disable-monodoc \
              --disable-gtk3 \
+	     ${@base_contains('DISTRO_FEATURES', 'x11', '--enable-gtk', '--disable-gtk', d)} \
              --disable-qt3 \
              --disable-qt4 \
              --disable-python \
Signature · 1 line
1.7.4.1
Applied
#1 lore raw
Quoted 22 lines · Phil Blundell

Otherwise avahi isn't buildable for an x11-less DISTRO.

---
  meta/recipes-connectivity/avahi/avahi.inc |    4 +++-
  1 files changed, 3 insertions(+), 1 deletions(-)
meta/recipes-connectivity/avahi/avahi.inc +2 -1
index dc7a5ae..24ea458 100644
@@ -14,7 +14,8 @@ SECTION = "network"
  # python scripts are under GPLv2+
  LICENSE = "GPLv2+&  LGPLv2.1+"
 
-DEPENDS = "expat libcap libdaemon dbus glib-2.0 gtk+ libglade"
+X11DEPENDS = "gtk+ libglade"
+DEPENDS = "expat libcap libdaemon dbus glib-2.0 ${@base_contains('DISTRO_FEATURES', 'x11', '${X11DEPENDS}', '', d)}"
 
  SRC_URI = "http://avahi.org/download/avahi-${PV}.tar.gz \
            file://00avahi-autoipd \

meta/recipes-connectivity/avahi/avahi.inc EXTRA_OECONF = "--with-distro=debian \ · line 37

Quoted 7 lines
meta/recipes-connectivity/avahi/avahi.inc +1 -0
@@ -30,6 +31,7 @@ EXTRA_OECONF = "--with-distro=debian \
               --disable-mono \
               --disable-monodoc \
               --disable-gtk3 \
+	     ${@base_contains('DISTRO_FEATURES', 'x11', '--enable-gtk', '--disable-gtk', d)} \
               --disable-qt3 \
               --disable-qt4 \
               --disable-python \

Merged into OE-Core

Thanks
Sau!