From 98caf54fa5758228854742ddfb3f2d599f081b15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Mon, 4 Apr 2022 22:31:34 +0200 Subject: [PATCH] upower: fix location of udev-rules with sysvinit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit UPower automatically detects location of udev-rules by asking udev's pkgconfig variable 'udev_dir' and appending 'rules.d'. This does not work for non systemd's udev: | Files/directories were installed but not shipped in any package: | /usr/rules.d | /usr/rules.d/95-upower-hid.rules | /usr/rules.d/95-upower-wup.rules To avoid, set udevrulesdir explicitly for non-systemd builds. Signed-off-by: Andreas Müller Signed-off-by: Khem Raj --- meta-oe/recipes-support/upower/upower_0.99.17.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-oe/recipes-support/upower/upower_0.99.17.bb b/meta-oe/recipes-support/upower/upower_0.99.17.bb index d30fcea871..0572cc801b 100644 --- a/meta-oe/recipes-support/upower/upower_0.99.17.bb +++ b/meta-oe/recipes-support/upower/upower_0.99.17.bb @@ -25,7 +25,7 @@ inherit meson pkgconfig gtk-doc gettext gobject-introspection systemd PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" PACKAGECONFIG[idevice] = "-Didevice=enabled,-Didevice=disabled,libimobiledevice libplist" -PACKAGECONFIG[systemd] = "-Dsystemdsystemunitdir=${systemd_system_unitdir},-Dsystemdsystemunitdir=no,systemd" +PACKAGECONFIG[systemd] = "-Dsystemdsystemunitdir=${systemd_system_unitdir},-Dsystemdsystemunitdir=no -Dudevrulesdir=${base_libdir}/udev/rules.d,systemd" EXTRA_OEMESON = " \ -Dos_backend=linux \