From 0060e7595402b70293715119245bbd267455826e Mon Sep 17 00:00:00 2001 From: Andreas Cord-Landwehr Date: Sat, 5 Oct 2024 11:19:38 +0200 Subject: [PATCH] systemd: make PACKAGECONFIG depend on package version --- recipes-support/systemd_%.bbappend | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/recipes-support/systemd_%.bbappend b/recipes-support/systemd_%.bbappend index e0d0271..2ec77cc 100644 --- a/recipes-support/systemd_%.bbappend +++ b/recipes-support/systemd_%.bbappend @@ -13,7 +13,9 @@ # # cgroupv2 # -------- -# Enable cgroupv2 (aka: unified hierarchy). Since task T11914, support -# for systemd and slices was added. +# cgroupv2 (aka: unified hierarchy) is required since https://phabricator.kde.org/T11914 +# enable it explicitly for Yocto < Scarthgap; it is on unconditionally enabled +# in later versions # -PACKAGECONFIG:append = " xdg-autostart cgroupv2" +CONFIG_CGROUPS = "${@bb.utils.contains('PV', '255.4', 'cgroupv2', '', d)}" +PACKAGECONFIG:append = " xdg-autostart ${CONFIG_CGROUPS}"