summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>2024-09-10 17:09:03 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-09-13 07:15:49 +0100
commit462b0c114af1a1650b90d8d20458669d15cda3a0 (patch)
treee30c118fb6b0de8cd11803868e0f0d17f2174111
parentde29354e8410c07905a8d129d260cd52536aaa30 (diff)
downloadpoky-462b0c114af1a1650b90d8d20458669d15cda3a0.tar.gz
systemd: include sysvinit in default PACKAGECONFIG only if in DISTRO_FEATURES
The sysvinit PACKAGECONFIG knob enables various legacy/compatibility code that may not be needed or even desired. If DISTRO_FEATURES includes systemd (as it must for this recipe to build) but not sysvinit, there is no point building and installing that legacy support. As most other changes, this can cause breakage, but given that sysvinit not being in DISTRO_FEATURES requires explicit opt-out (due to backfill), I think the risk is low. Moreover, it is generally easier to add to than to remove from PACKAGECONFIG. (From OE-Core rev: 3668235fd60a9027608f37251c4b453ed21b3687) Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-core/systemd/systemd_256.5.bb3
1 files changed, 1 insertions, 2 deletions
diff --git a/meta/recipes-core/systemd/systemd_256.5.bb b/meta/recipes-core/systemd/systemd_256.5.bb
index db053b4542..85c7fc743d 100644
--- a/meta/recipes-core/systemd/systemd_256.5.bb
+++ b/meta/recipes-core/systemd/systemd_256.5.bb
@@ -73,7 +73,7 @@ PACKAGECONFIG ??= " \
73 ${@bb.utils.contains('DISTRO_FEATURES', 'minidebuginfo', 'coredump elfutils', '', d)} \ 73 ${@bb.utils.contains('DISTRO_FEATURES', 'minidebuginfo', 'coredump elfutils', '', d)} \
74 ${@bb.utils.contains('DISTRO_FEATURES', 'wifi', 'rfkill', '', d)} \ 74 ${@bb.utils.contains('DISTRO_FEATURES', 'wifi', 'rfkill', '', d)} \
75 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xkbcommon', '', d)} \ 75 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xkbcommon', '', d)} \
76 ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', '', 'link-udev-shared', d)} \ 76 ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'sysvinit', 'link-udev-shared', d)} \
77 backlight \ 77 backlight \
78 binfmt \ 78 binfmt \
79 gshadow \ 79 gshadow \
@@ -95,7 +95,6 @@ PACKAGECONFIG ??= " \
95 resolved \ 95 resolved \
96 set-time-epoch \ 96 set-time-epoch \
97 sysusers \ 97 sysusers \
98 sysvinit \
99 timedated \ 98 timedated \
100 timesyncd \ 99 timesyncd \
101 userdb \ 100 userdb \