]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tests: dbus.service was renamed to dbus-daemon.service in Rawhide
authorFrantisek Sumsal <frantisek@sumsal.cz>
Sun, 11 Nov 2018 11:13:48 +0000 (12:13 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 12 Nov 2018 18:16:55 +0000 (19:16 +0100)
Fedora Rawhide renamed dbus.service to dbus-daemon.service - that
breaks tests which require working DBus (e.g. TEST-03-JOBS)

Excerpt from the dbus.spec:
The 'dbus' package is only retained for compatibility purposes. It will
eventually be removed and then replaced by 'Provides: dbus' in the
dbus-daemon package. It will then exclusively be used for other packages to
describe their dependency on a system and user bus. It does not pull in any
particular dbus *implementation*, nor any libraries. These should be pulled
in, if required, via explicit dependencies.

test/test-functions

index 49c444e52b7265c89c0ce33105edf91811d4f758..37069396b7e019f046be67d3e4003e4c9a664e63 100644 (file)
@@ -590,7 +590,15 @@ install_libnss() {
 
 install_dbus() {
     inst $ROOTLIBDIR/system/dbus.socket
-    inst $ROOTLIBDIR/system/dbus.service
+
+    # Fedora rawhide replaced dbus.service with dbus-daemon.service
+    if [ -f $ROOTLIBDIR/system/dbus-daemon.service ]; then
+        inst $ROOTLIBDIR/system/dbus-daemon.service
+        # Alias symlink
+        inst_symlink /etc/systemd/system/dbus.service
+    else
+        inst $ROOTLIBDIR/system/dbus.service
+    fi
 
     find \
         /etc/dbus-1 /usr/share/dbus-1 -xtype f \