From patchwork Wed Nov 23 06:47:51 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [2/9] gconf: Disable dbus-x11 when x11 isn't in DISTRO_FEATURES Date: Wed, 23 Nov 2011 06:47:51 -0000 From: Xiaofeng Yan X-Patchwork-Id: 15305 Message-Id: To: From: Xiaofeng Yan 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 --- meta/recipes-gnome/gnome/gconf_3.2.3.bb | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) 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* \