diff mbox series

[meta-oe,1/2] power-profiles-daemon: Fix configure without systemd

Message ID 20261101185655.1459673-1-khem.raj@oss.qualcomm.com
State New
Headers show
Series [meta-oe,1/2] power-profiles-daemon: Fix configure without systemd | expand

Commit Message

Khem Raj Nov. 1, 2026, 6:56 p.m. UTC
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>
---
 meta-oe/recipes-support/upower/power-profiles-daemon_0.30.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-oe/recipes-support/upower/power-profiles-daemon_0.30.bb b/meta-oe/recipes-support/upower/power-profiles-daemon_0.30.bb
index f9f7e86990..5750ee33ee 100644
--- a/meta-oe/recipes-support/upower/power-profiles-daemon_0.30.bb
+++ b/meta-oe/recipes-support/upower/power-profiles-daemon_0.30.bb
@@ -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"