]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
systemd: add usrmerge to REQUIRED_DISTRO_FEATURES
authorLuca Boccassi <luca.boccassi@microsoft.com>
Sat, 5 Aug 2023 21:35:51 +0000 (22:35 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 11 Aug 2023 12:21:31 +0000 (13:21 +0100)
Support for unmerged-usr is deprecated upstream, taints the system and
has been removed for v255 (next release).
Enforce building merged-usr images when using systemd. This allows one
release cycle where it can be tested for any remaining issue, and can
still be overridden, before it stops working completely.

Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/systemd/systemd-compat-units.bb
meta/recipes-core/systemd/systemd-conf_1.0.bb
meta/recipes-core/systemd/systemd-machine-units_1.0.bb
meta/recipes-core/systemd/systemd-serialgetty.bb
meta/recipes-core/systemd/systemd_254.bb

index 55ebf99117fd49980f4d55db405c0187bc42ca08..75b1045728ac57c86ccad56c5a081094093e8799 100644 (file)
@@ -14,7 +14,8 @@ INHIBIT_DEFAULT_DEPS = "1"
 
 ALLOW_EMPTY:${PN} = "1"
 
-REQUIRED_DISTRO_FEATURES = "systemd"
+REQUIRED_DISTRO_FEATURES += "systemd"
+REQUIRED_DISTRO_FEATURES += "usrmerge"
 
 SYSTEMD_DISABLED_SYSV_SERVICES = " \
   busybox-udhcpc \
index 61ce7939d3a8f17eaa8386905f069fc849c16992..2355936631edee51d5ddf98a876a0c8fd90c6db9 100644 (file)
@@ -5,6 +5,9 @@ DefaultTimeoutStartSec setting."
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
 
+inherit features_check
+REQUIRED_DISTRO_FEATURES += "usrmerge"
+
 PE = "1"
 
 PACKAGECONFIG ??= "dhcp-ethernet"
index 12f27d6ae308d8d2689ba30dd2e18ade0c11b572..7e59e86f9be14e3a3a63297c4180b3ce8b9ba166 100644 (file)
@@ -7,7 +7,8 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
 
 PR = "r19"
 
-inherit systemd
+inherit systemd features_check
+REQUIRED_DISTRO_FEATURES += "usrmerge"
 SYSTEMD_SERVICE:${PN} = ""
 
 ALLOW_EMPTY:${PN} = "1"
index fd888bb83409177b3f6911f678845b47f7dfd9a4..c2c67e6fe0839168b5bee8aebf482b0be31767f8 100644 (file)
@@ -14,7 +14,8 @@ S = "${WORKDIR}"
 
 # As this package is tied to systemd, only build it when we're also building systemd.
 inherit features_check
-REQUIRED_DISTRO_FEATURES = "systemd"
+REQUIRED_DISTRO_FEATURES += "systemd"
+REQUIRED_DISTRO_FEATURES += "usrmerge"
 
 do_install() {
        if [ ! -z "${SERIAL_CONSOLES}" ] ; then
index d2ff157e44bb99502c3a26d42b07942127649340..f48f8c0b18eadeef8b4cf801446fd2f6f9ccc125 100644 (file)
@@ -10,9 +10,13 @@ SECTION = "base/shell"
 
 inherit useradd pkgconfig meson perlnative update-rc.d update-alternatives qemu systemd gettext bash-completion manpages features_check
 
+# unmerged-usr support is deprecated upstream, taints the system and will be
+# removed in the near future. Fail the build if it is not enabled.
+REQUIRED_DISTRO_FEATURES += "usrmerge"
+
 # As this recipe builds udev, respect systemd being in DISTRO_FEATURES so
 # that we don't build both udev and systemd in world builds.
-REQUIRED_DISTRO_FEATURES = "systemd"
+REQUIRED_DISTRO_FEATURES += "systemd"
 
 SRC_URI += " \
            file://touchscreen.rules \