power-profiles-daemon: Fix configure without systemd

The systemdsystemunitdir option defaults to auto, which makes meson look
up systemd.pc. That only worked because systemd ends up in the sysroot
through other dependencies, and it fails on sysvinit distros:

  meson.build:36:18: ERROR: Dependency "systemd" not found

Pass the unit directory explicitly. The unit is installed unconditionally
and systemd.bbclass removes it again on distros without systemd.

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
Khem Raj committed 2026-11-01 16:27:04 -08:00
1 parent 5f86b08e9d
commit 6f74c160b1
1 file changed
+1 -1
@@ -14,7 +14,7 @@ inherit meson pkgconfig systemd features_check
REQUIRED_DISTRO_FEATURES = "polkit"
EXTRA_OEMESON = "-Dtests=false"
EXTRA_OEMESON = "-Dtests=false -Dsystemdsystemunitdir=${systemd_system_unitdir}"
SRCREV = "5b4994c8a91290481bef87a5bae95391d0ec677f"
SRC_URI = "git://gitlab.freedesktop.org/upower/power-profiles-daemon;branch=main;protocol=https"