summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2013-04-04 18:42:13 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-04-04 23:54:14 +0100
commitf15192a65e02026308253e6723b990b24780be5b (patch)
treeb3d97d7ddf39d473c01b18d2347cd55e0a7bcb94
parentb1dca3a693bb439181a155c5248a2c6a900f729d (diff)
downloadopenembedded-core-f15192a65e02026308253e6723b990b24780be5b.tar.gz
openembedded-core-f15192a65e02026308253e6723b990b24780be5b.tar.bz2
openembedded-core-f15192a65e02026308253e6723b990b24780be5b.zip
dbus: set INHIBIT_UPDATERCD_BBCLASS without sysvinit in features
* fixes udev configure in run-postinsts failing with: update-rc.d: /etc/init.d/dbus-1: file does not exist because dbus-udev is installed only with sysvinit in features but update-rc.d was always called from PN postinst Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-core/dbus/dbus.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/recipes-core/dbus/dbus.inc b/meta/recipes-core/dbus/dbus.inc
index bfd11672cf..2be5bda101 100644
--- a/meta/recipes-core/dbus/dbus.inc
+++ b/meta/recipes-core/dbus/dbus.inc
@@ -24,6 +24,12 @@ inherit useradd autotools pkgconfig gettext update-rc.d
INITSCRIPT_NAME = "dbus-1"
INITSCRIPT_PARAMS = "start 02 5 3 2 . stop 20 0 1 6 ."
+python __anonymous() {
+ features = d.getVar("DISTRO_FEATURES", True).split()
+ if "sysvinit" not in features:
+ d.setVar("INHIBIT_UPDATERCD_BBCLASS", "1")
+}
+
USERADD_PACKAGES = "${PN}"
GROUPADD_PARAM_${PN} = "-r netdev"
USERADD_PARAM_${PN} = "--system --home ${localstatedir}/lib/dbus \