upower: fix location of udev-rules with sysvinit

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 <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Andreas Müller
2022-04-04 22:31:34 +02:00
committed by Khem Raj
parent 8253fe2a9c
commit 98caf54fa5
@@ -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 \