Patchwork [2/9] gconf: Disable dbus-x11 when x11 isn't in DISTRO_FEATURES

login
register
mail settings
Submitter Xiaofeng Yan
Date Nov. 23, 2011, 6:47 a.m.
Message ID <fd1c2d559731b3ae223631f14d53c6d3846e6a1c.1322028165.git.xiaofeng.yan@windriver.com>
Download mbox | patch
Permalink /patch/15305/
State New
Headers show

Comments

Xiaofeng Yan - Nov. 23, 2011, 6:47 a.m.
From: Xiaofeng Yan <xiaofeng.yan@windriver.com>

If x11 isn't defined in DISTRO_FEATURES, then an error information "no providers ..." will \
arise. I modified this bb file to disable "dbus-x11" when x11 isn't in DISTRO_FEATURES.

[YOCTO #1674]

Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
---
 meta/recipes-gnome/gnome/gconf_3.2.3.bb |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

Patch

diff --git a/meta/recipes-gnome/gnome/gconf_3.2.3.bb b/meta/recipes-gnome/gnome/gconf_3.2.3.bb
index 3d3e65f..7feafea 100644
--- a/meta/recipes-gnome/gnome/gconf_3.2.3.bb
+++ b/meta/recipes-gnome/gnome/gconf_3.2.3.bb
@@ -30,7 +30,9 @@  do_install_append() {
 	rm ${D}${libdir}/gio/*/*.*a
 }
 
-RDEPENDS_${PN} += "dbus-x11"
+# disable dbus-x11 without x11 feature in DISTRO_FEATURES
+RDEPENDS_${PN} += "${@base_contains('DISTRO_FEATURES', 'x11', 'dbus-x11', '', d)}"
+
 FILES_${PN} += "${libdir}/GConf/* \
 	        ${libdir}/gio/*/*.so \
 		${datadir}/polkit* \