Patchwork [2/4] distcc: honor x11 DISTRO_FEATURE

login
register
mail settings
Submitter Enrico Scholz
Date Jan. 12, 2012, 4:38 p.m.
Message ID <1326386296-1526-3-git-send-email-enrico.scholz@sigma-chemnitz.de>
Download mbox | patch
Permalink /patch/19191/
State New
Headers show

Comments

Enrico Scholz - Jan. 12, 2012, 4:38 p.m.
'distcc' can be used on headless system and it is desirable to avoid
building of the gnome/gtk+ stacks.

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
---
 meta/recipes-devtools/distcc/distcc_2.18.3.bb |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

Patch

diff --git a/meta/recipes-devtools/distcc/distcc_2.18.3.bb b/meta/recipes-devtools/distcc/distcc_2.18.3.bb
index ec6ffb3..8ceff9d 100644
--- a/meta/recipes-devtools/distcc/distcc_2.18.3.bb
+++ b/meta/recipes-devtools/distcc/distcc_2.18.3.bb
@@ -8,7 +8,7 @@  PR = "r7"
 
 DEPENDS = "avahi ${GTKDEP}"
 GTKDEP_libc-uclibc = ""
-GTKDEP = "gtk+"
+GTKDEP = "${@base_contains('DISTRO_FEATURES', 'x11', 'gtk+', '', d)}"
 
 RRECOMMENDS_${PN} = "avahi-daemon"
 
@@ -28,7 +28,8 @@  inherit autotools pkgconfig update-rc.d
 
 INITSCRIPT_NAME = "distcc"
 
-EXTRA_OECONF = "--with-gtk"
+EXTRA_OECONF = "${@base_contains('DISTRO_FEATURES', 'x11', \
+  '--with-gtk', '--without-gtk --without-gnome', d)}"
 EXTRA_OECONF_libc-uclibc = "--without-gtk --without-gnome"
 do_install_append() {
     install -d ${D}${sysconfdir}/init.d/