diff options
author | Jussi Kukkonen <jussi.kukkonen@intel.com> | 2017-01-19 10:16:34 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-19 22:51:08 +0000 |
commit | 39fb37a5143981ae16e722f4ebbbe1b29cbed5a4 (patch) | |
tree | 5bd72539cdb293f2a58c5839583c42a74dbb71ce /meta/recipes-core/dbus | |
parent | f186b0c59e707b9a3bff8fcf3b51dbcef5573298 (diff) | |
download | openembedded-core-39fb37a5143981ae16e722f4ebbbe1b29cbed5a4.tar.gz openembedded-core-39fb37a5143981ae16e722f4ebbbe1b29cbed5a4.tar.bz2 openembedded-core-39fb37a5143981ae16e722f4ebbbe1b29cbed5a4.zip |
dbus: Add PACKAGE_WRITE_DEPS for postinst
systemctl is needed if both systemd and sysvinit are in distro
features.
Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Diffstat (limited to 'meta/recipes-core/dbus')
-rw-r--r-- | meta/recipes-core/dbus/dbus_1.10.14.bb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-core/dbus/dbus_1.10.14.bb b/meta/recipes-core/dbus/dbus_1.10.14.bb index 2ffd8b06bb..e4f54ec734 100644 --- a/meta/recipes-core/dbus/dbus_1.10.14.bb +++ b/meta/recipes-core/dbus/dbus_1.10.14.bb @@ -76,6 +76,7 @@ FILES_${PN}-lib = "${libdir}/lib*.so.*" RRECOMMENDS_${PN}-lib = "${PN}" FILES_${PN}-dev += "${libdir}/dbus-1.0/include ${bindir}/dbus-test-tool" +PACKAGE_WRITE_DEPS += "${@bb.utils.contains('DISTRO_FEATURES','systemd sysvinit','systemd-systemctl-native','',d)}" pkg_postinst_dbus() { # If both systemd and sysvinit are enabled, mask the dbus-1 init script if ${@bb.utils.contains('DISTRO_FEATURES','systemd sysvinit','true','false',d)}; then |