[2/2] dbus: set INHIBIT_UPDATERCD_BBCLASS without sysvinit in features
Submitted by Martin Jansa on April 4, 2013, 4:42 p.m.
|
Patch ID: 47425
Details
Commit Message
@@ -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 \
* 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> --- meta/recipes-core/dbus/dbus.inc | 6 ++++++ 1 file changed, 6 insertions(+)