From: Lennart Poettering Date: Mon, 29 Apr 2019 14:09:36 +0000 (+0200) Subject: test-functions: follow fedora dbus-daemon/dbus-broker rearrangements X-Git-Tag: v243-rc1~392^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=908665f4e93126bdd8f9ba08935394de26e7966f;p=thirdparty%2Fsystemd.git test-functions: follow fedora dbus-daemon/dbus-broker rearrangements Apparently dbus.service is now a symlink to either dbus-broker.service or dbus-daemon.service. Copy in the right target service in each case. --- diff --git a/test/test-functions b/test/test-functions index 50c6e969025..206b0270ea6 100644 --- a/test/test-functions +++ b/test/test-functions @@ -684,17 +684,20 @@ install_libnss() { install_dbus() { inst $ROOTLIBDIR/system/dbus.socket - # Fedora rawhide replaced dbus.service with dbus-daemon.service - if [ -f $ROOTLIBDIR/system/dbus-daemon.service ]; then + # Newer Fedora versions use dbus-broker by default. Let's install it is available. + if [ -f $ROOTLIBDIR/system/dbus-broker.service ]; then + inst $ROOTLIBDIR/system/dbus-broker.service + inst_symlink /etc/systemd/system/dbus.service + inst /usr/bin/dbus-broker + inst /usr/bin/dbus-broker-launch + elif [ -f $ROOTLIBDIR/system/dbus-daemon.service ]; then + # Fedora rawhide replaced dbus.service with dbus-daemon.service inst $ROOTLIBDIR/system/dbus-daemon.service # Alias symlink inst_symlink /etc/systemd/system/dbus.service else inst $ROOTLIBDIR/system/dbus.service fi - # Newer Fedora versions use dbus-broker by default. Let's install it is available. - [ -f /usr/bin/dbus-broker ] && inst /usr/bin/dbus-broker - [ -f /usr/bin/dbus-broker-launch ] && inst /usr/bin/dbus-broker-launch find \ /etc/dbus-1 /usr/share/dbus-1 -xtype f \