power-profiles-daemon: Fix configure without systemd
PATCH 1/2 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.
--- meta-oe/recipes-support/upower/power-profiles-daemon_0.30.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-support/upower/power-profiles-daemon_0.30.bb +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"
PATCH 2/2 accountsservice: Require the systemd distro feature
libaccountsservice uses sd-login for its session tracking and links against libsystemd or libelogind unconditionally. There is no elogind recipe to satisfy the alternative, so on sysvinit distros configure fails:
meson.build:206:2: ERROR: Assert failed: systemd required but not found
Declare the requirement so that the recipe is skipped there.
--- .../recipes-support/accountsservice/accountsservice_26.27.3.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
meta-gnome/recipes-support/accountsservice/accountsservice_26.27.3.bb +2 -1
@@ -13,7 +13,8 @@ DEPENDS = " \ inherit meson gobject-introspection gtk-doc features_check systemd vala pkgconfig -REQUIRED_DISTRO_FEATURES = "polkit" +# libaccountsservice needs libsystemd or libelogind for its session tracking +REQUIRED_DISTRO_FEATURES = "polkit systemd" SRC_URI = "git://gitlab.freedesktop.org/${BPN}/${BPN}.git;protocol=https;branch=main;tag=${PV}" SRCREV = "4e254d9624cc48224c9920b9509df0b144f7be0c"