aboutsummaryrefslogtreecommitdiffstats
path: root/community/libwacom/0001-udevadm.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/libwacom/0001-udevadm.patch')
-rw-r--r--community/libwacom/0001-udevadm.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/community/libwacom/0001-udevadm.patch b/community/libwacom/0001-udevadm.patch
new file mode 100644
index 00000000000..f51bf361692
--- /dev/null
+++ b/community/libwacom/0001-udevadm.patch
@@ -0,0 +1,40 @@
+Author: Patrycja Rosa <alpine@ptrcnull.me>
+
+ Replace systemctl-hwdb with udevadm
+
+diff --git a/test/test_udev_rules.py b/test/test_udev_rules.py
+index 0418905..aba5964 100644
+--- a/test/test_udev_rules.py
++++ b/test/test_udev_rules.py
+@@ -20,16 +20,10 @@ import sys
+
+
+ @pytest.fixture(scope='session', autouse=True)
+-def systemd_reload():
++def udevadm_reload():
+ '''Make sure our hwdb and udev rules are up-to-date'''
+ import subprocess
+- try:
+- subprocess.run(['systemd-hwdb', 'update'])
+- subprocess.run(['systemctl', 'daemon-reload'])
+- except FileNotFoundError:
+- # If any of the commands above are not found (most likely the system
+- # simply does not use systemd), just skip.
+- raise pytest.skip()
++ subprocess.run(['udevadm', 'hwdb', '-u'])
+
+
+ def pytest_generate_tests(metafunc):
+diff --git a/tools/libwacom-update-db.py b/tools/libwacom-update-db.py
+index 63c4093..38c7cec 100755
+--- a/tools/libwacom-update-db.py
++++ b/tools/libwacom-update-db.py
+@@ -245,7 +245,7 @@ if __name__ == "__main__":
+
+ if not ns.skip_systemd_hwdb_update:
+ subprocess.run(
+- ["systemd-hwdb", "update"],
++ ["udevadm", "hwdb", "-u"],
+ capture_output=True,
+ check=True,
+ text=True,