From: Eric Le Bihan Date: Thu, 3 Jul 2014 16:57:34 +0000 (+0200) Subject: dbus: enable systemd support X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=95c914fae8ff20dac278aea9ae0d74595bf03b88;p=buildroot.git dbus: enable systemd support Enable systemd support if systemd is selected as init system (require systemd compatibility libraries). Signed-off-by: Eric Le Bihan Signed-off-by: Thomas Petazzoni --- diff --git a/package/dbus/Config.in b/package/dbus/Config.in index 653f7482f6..7d49ce5047 100644 --- a/package/dbus/Config.in +++ b/package/dbus/Config.in @@ -4,6 +4,7 @@ config BR2_PACKAGE_DBUS # uses fork() depends on BR2_USE_MMU select BR2_PACKAGE_EXPAT + select BR2_PACKAGE_SYSTEMD_COMPAT if BR2_INIT_SYSTEMD help The D-Bus message bus system. diff --git a/package/dbus/dbus.mk b/package/dbus/dbus.mk index 429c9230c0..63cec6e469 100644 --- a/package/dbus/dbus.mk +++ b/package/dbus/dbus.mk @@ -50,8 +50,13 @@ else DBUS_CONF_OPT += --without-x endif -ifeq ($(BR2_PACKAGE_SYSTEMD),y) -DBUS_CONF_OPT += --with-systemdsystemunitdir=/lib/systemd/system +ifeq ($(BR2_INIT_SYSTEMD),y) +DBUS_CONF_OPT += \ + --enable-systemd \ + --with-systemdsystemunitdir=/lib/systemd/system +DBUS_DEPENDENCIES += systemd +else +DBUS_CONF_OPT += --disable-systemd endif # fix rebuild (dbus makefile errors out if /var/lib/dbus is a symlink)