neil / rpms / udisks2

Forked from rpms/udisks2 a year ago
Clone

Blame SOURCES/0001-tests-Reflect-new-location-of-D-Bus-service-files.patch

b28802
From ffa52f4c674477795a756bbe5983b5a20929ce94 Mon Sep 17 00:00:00 2001
b28802
From: Tomas Bzatek <tbzatek@redhat.com>
b28802
Date: Fri, 14 Jun 2019 16:03:49 +0200
b28802
Subject: [PATCH 1/2] tests: Reflect new location of D-Bus service files
b28802
b28802
Related to the following change:
b28802
b28802
  commit f9d9b4e89915fdc87f8d9b56269def24f709b2da
b28802
  Author: Michael Biebl <biebl@debian.org>
b28802
  Date:   Tue Nov 27 00:48:15 2018 +0100
b28802
b28802
      Move D-Bus policy file to /usr/share/dbus-1/system.d/
b28802
b28802
      To better support stateless systems with an empty /etc, the old location
b28802
      in /etc/dbus-1/system.d/ should only be used for local admin changes.
b28802
      Package provided D-Bus policy files are supposed to be installed in
b28802
      /usr/share/dbus-1/system.d/.
b28802
b28802
      This is supported since dbus 1.9.18.
b28802
b28802
      https://lists.freedesktop.org/archives/dbus/2015-July/016746.html
b28802
---
b28802
 README.md                           | 2 +-
b28802
 src/tests/dbus-tests/run_tests.py   | 2 +-
b28802
 src/tests/install-udisks/runtest.sh | 2 +-
b28802
 src/tests/integration-test          | 2 +-
b28802
 4 files changed, 4 insertions(+), 4 deletions(-)
b28802
b28802
diff --git a/README.md b/README.md
b28802
index b4fa385c..cf2207cf 100644
b28802
--- a/README.md
b28802
+++ b/README.md
b28802
@@ -88,7 +88,7 @@ Please report bugs via the GitHub's issues tracker at
b28802
      sudo cp data/*.policy /usr/share/polkit-1/actions/
b28802
      sudo cp modules/*/data/*.policy /usr/share/polkit-1/actions/
b28802
      
b28802
-     sudo cp data/org.freedesktop.UDisks2.conf /etc/dbus-1/system.d/
b28802
+     sudo cp data/org.freedesktop.UDisks2.conf /usr/share/dbus-1/system.d/
b28802
      
b28802
      sudo cp data/80-udisks2.rules /usr/lib/udev/rules.d/
b28802
      ```
b28802
diff --git a/src/tests/dbus-tests/run_tests.py b/src/tests/dbus-tests/run_tests.py
b28802
index e730346a..3dc3c631 100755
b28802
--- a/src/tests/dbus-tests/run_tests.py
b28802
+++ b/src/tests/dbus-tests/run_tests.py
b28802
@@ -96,7 +96,7 @@ def install_config_files(projdir, tmpdir):
b28802
 
b28802
     # dbus config files
b28802
     copied.extend(_copy_files((os.path.join(projdir, 'data/org.freedesktop.UDisks2.conf'),),
b28802
-                              '/etc/dbus-1/system.d/', tmpdir))
b28802
+                              '/usr/share/dbus-1/system.d/', tmpdir))
b28802
 
b28802
     # polkit policies
b28802
     policies = glob.glob(projdir + '/data/*.policy') + glob.glob(projdir + '/modules/*/data/*.policy')
b28802
diff --git a/src/tests/integration-test b/src/tests/integration-test
b28802
index 19087bbc..2bc78a2b 100755
b28802
--- a/src/tests/integration-test
b28802
+++ b/src/tests/integration-test
b28802
@@ -1866,7 +1866,7 @@ def install_config_files(projdir, tmpdir):
b28802
 
b28802
     # dbus config files
b28802
     copied.extend(_copy_files((os.path.join(projdir, 'data/org.freedesktop.UDisks2.conf'),),
b28802
-                              '/etc/dbus-1/system.d/', tmpdir))
b28802
+                              '/usr/share/dbus-1/system.d/', tmpdir))
b28802
 
b28802
     # polkit policies
b28802
     policies = glob(projdir + '/data/*.policy') + glob(projdir + '/modules/*/data/*.policy')
b28802
-- 
b28802
2.21.0
b28802