PKGBUILDs/extra/upower/0001-build-Fix-default-udevrulesdir.patch
2022-02-06 21:47:46 +00:00

23 lines
791 B
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org>
Date: Sat, 5 Feb 2022 02:26:48 +0000
Subject: [PATCH] build: Fix default udevrulesdir
We need to append 'rules.d' to the udev_dir.
---
meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meson.build b/meson.build
index f87de19b98cf..3858cbe0afdf 100644
--- a/meson.build
+++ b/meson.build
@@ -90,7 +90,7 @@ endif
udevrulesdir = get_option('udevrulesdir')
if udevrulesdir == 'auto'
udev_dep = dependency('udev', required: true)
- udevrulesdir = udev_dep.get_pkgconfig_variable('udev_dir')
+ udevrulesdir = udev_dep.get_pkgconfig_variable('udev_dir') / 'rules.d'
endif
dbusdir = get_option('datadir') / 'dbus-1'