From 6f74c160b1a3dfcc5d68754b9ee00173d89463ac Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 1 Nov 2026 16:46:04 +0000 Subject: [PATCH] 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 --- meta-oe/recipes-support/upower/power-profiles-daemon_0.30.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"