summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorJussi Kukkonen <jussi.kukkonen@intel.com>2017-01-19 10:16:34 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-20 11:53:50 +0000
commitf7e642da23d7e67697bd00e9be665a08a2a19d56 (patch)
treedf469eb540aef2d24489ea998b2ff30e43d57fa2 /meta/recipes-core
parent0c37833e6286cf7f1b9178bbad8d707f0716a4bc (diff)
downloadpoky-f7e642da23d7e67697bd00e9be665a08a2a19d56.tar.gz
dbus: Add PACKAGE_WRITE_DEPS for postinst
systemctl is needed if both systemd and sysvinit are in distro features. (From OE-Core rev: 39fb37a5143981ae16e722f4ebbbe1b29cbed5a4) Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/dbus/dbus_1.10.14.bb1
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.*"
76RRECOMMENDS_${PN}-lib = "${PN}" 76RRECOMMENDS_${PN}-lib = "${PN}"
77FILES_${PN}-dev += "${libdir}/dbus-1.0/include ${bindir}/dbus-test-tool" 77FILES_${PN}-dev += "${libdir}/dbus-1.0/include ${bindir}/dbus-test-tool"
78 78
79PACKAGE_WRITE_DEPS += "${@bb.utils.contains('DISTRO_FEATURES','systemd sysvinit','systemd-systemctl-native','',d)}"
79pkg_postinst_dbus() { 80pkg_postinst_dbus() {
80 # If both systemd and sysvinit are enabled, mask the dbus-1 init script 81 # If both systemd and sysvinit are enabled, mask the dbus-1 init script
81 if ${@bb.utils.contains('DISTRO_FEATURES','systemd sysvinit','true','false',d)}; then 82 if ${@bb.utils.contains('DISTRO_FEATURES','systemd sysvinit','true','false',d)}; then