public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH] systemd: add usrmerge to REQUIRED_DISTRO_FEATURES
@ 2022-07-11 20:29 luca.boccassi
  2022-07-11 22:06 ` [OE-core] " Richard Purdie
                   ` (2 more replies)
  0 siblings, 3 replies; 28+ messages in thread
From: luca.boccassi @ 2022-07-11 20:29 UTC (permalink / raw)
  To: openembedded-core

From: Luca Boccassi <luca.boccassi@microsoft.com>

Support for unmerged-usr is deprecated upstream, taints the system and will be
removed in the near future.
Enforce building merged-usr images when using systemd.

Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
---
We intend to deprecate unmerged-usr at some point, and we are doing the
rounds ensuring distros are moving along so that there are no surprises
when the time comes.

See:
https://lists.freedesktop.org/archives/systemd-devel/2022-April/047673.html

 meta/recipes-core/systemd/systemd.inc | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta/recipes-core/systemd/systemd.inc b/meta/recipes-core/systemd/systemd.inc
index b8dbe2263a..f9e109bba4 100644
--- a/meta/recipes-core/systemd/systemd.inc
+++ b/meta/recipes-core/systemd/systemd.inc
@@ -21,3 +21,8 @@ SRC_URI = "git://github.com/systemd/systemd-stable.git;protocol=https;branch=${S
 "
 
 S = "${WORKDIR}/git"
+
+# 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.
+inherit features_check
+REQUIRED_DISTRO_FEATURES = "usrmerge"
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 28+ messages in thread
* [PATCH] systemd: add usrmerge to REQUIRED_DISTRO_FEATURES
@ 2023-08-05 11:06 luca.boccassi
  2023-08-05 12:57 ` [OE-core] " Otavio Salvador
  2023-08-05 13:09 ` Richard Purdie
  0 siblings, 2 replies; 28+ messages in thread
From: luca.boccassi @ 2023-08-05 11:06 UTC (permalink / raw)
  To: openembedded-core; +Cc: raj.khem

From: Luca Boccassi <luca.boccassi@microsoft.com>

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>
---
Time to resurrect this. Support for unmerged-usr has been removed and
will no longer be available starting with v255. Better to get started
now with the enforcement, so that things can be worked out while it is
still possible to override it.

 meta/recipes-core/systemd/systemd-compat-units.bb | 2 +-
 meta/recipes-core/systemd/systemd-serialgetty.bb  | 2 +-
 meta/recipes-core/systemd/systemd.inc             | 5 +++++
 meta/recipes-core/systemd/systemd_254.bb          | 2 +-
 4 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-core/systemd/systemd-compat-units.bb b/meta/recipes-core/systemd/systemd-compat-units.bb
index 55ebf99117f..88315780108 100644
--- a/meta/recipes-core/systemd/systemd-compat-units.bb
+++ b/meta/recipes-core/systemd/systemd-compat-units.bb
@@ -14,7 +14,7 @@ INHIBIT_DEFAULT_DEPS = "1"
 
 ALLOW_EMPTY:${PN} = "1"
 
-REQUIRED_DISTRO_FEATURES = "systemd"
+REQUIRED_DISTRO_FEATURES += "systemd"
 
 SYSTEMD_DISABLED_SYSV_SERVICES = " \
   busybox-udhcpc \
diff --git a/meta/recipes-core/systemd/systemd-serialgetty.bb b/meta/recipes-core/systemd/systemd-serialgetty.bb
index fd888bb8340..0987c3f4162 100644
--- a/meta/recipes-core/systemd/systemd-serialgetty.bb
+++ b/meta/recipes-core/systemd/systemd-serialgetty.bb
@@ -14,7 +14,7 @@ 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"
 
 do_install() {
 	if [ ! -z "${SERIAL_CONSOLES}" ] ; then
diff --git a/meta/recipes-core/systemd/systemd.inc b/meta/recipes-core/systemd/systemd.inc
index b00a49884be..f70b420e120 100644
--- a/meta/recipes-core/systemd/systemd.inc
+++ b/meta/recipes-core/systemd/systemd.inc
@@ -20,3 +20,8 @@ SRC_URI = "git://github.com/systemd/systemd-stable.git;protocol=https;branch=${S
            "
 
 S = "${WORKDIR}/git"
+
+# 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.
+inherit features_check
+REQUIRED_DISTRO_FEATURES = "usrmerge"
diff --git a/meta/recipes-core/systemd/systemd_254.bb b/meta/recipes-core/systemd/systemd_254.bb
index 7ba4233f6a2..188151a769c 100644
--- a/meta/recipes-core/systemd/systemd_254.bb
+++ b/meta/recipes-core/systemd/systemd_254.bb
@@ -12,7 +12,7 @@ inherit useradd pkgconfig meson perlnative update-rc.d update-alternatives qemu
 
 # 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 \
-- 
2.39.2



^ permalink raw reply related	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2023-08-05 21:36 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-11 20:29 [PATCH] systemd: add usrmerge to REQUIRED_DISTRO_FEATURES luca.boccassi
2022-07-11 22:06 ` [OE-core] " Richard Purdie
2022-07-12 17:16   ` Luca Boccassi
2022-07-12 21:55     ` Richard Purdie
2022-07-12 23:30       ` Luca Boccassi
2022-07-13 13:19         ` Richard Purdie
2022-07-13 15:52           ` Luca Boccassi
2022-07-13 17:00             ` Alexander Kanavin
2022-10-19 18:10         ` Luca Boccassi
2022-07-13 15:41 ` [PATCH v2 1/2] poky-altcfg: enable usrmerge luca.boccassi
2022-07-13 15:41   ` [PATCH v2 2/2] systemd: add usrmerge to REQUIRED_DISTRO_FEATURES luca.boccassi
2022-07-13 15:57     ` [OE-core] " Martin Jansa
     [not found]     ` <17016EB5AC5A56BC.15323@lists.openembedded.org>
2022-07-13 16:00       ` Martin Jansa
2022-07-13 16:26     ` Richard Purdie
2022-07-13 16:55       ` Luca Boccassi
2022-07-13 20:55         ` Richard Purdie
2022-07-13 16:55 ` [PATCH v3 1/2] poky-altcfg: enable usrmerge luca.boccassi
2022-07-13 16:55   ` [PATCH v3 2/2] systemd: add usrmerge to REQUIRED_DISTRO_FEATURES luca.boccassi
2022-07-13 17:53   ` [OE-core] [PATCH v3 1/2] poky-altcfg: enable usrmerge Richard Purdie
2022-07-13 18:09     ` Luca Boccassi
2022-07-13 18:36       ` Richard Purdie
2022-07-13 19:02         ` Luca Boccassi
2022-07-13 21:17           ` Richard Purdie
2022-07-13 22:56           ` Andre McCurdy
2022-07-14 11:15     ` Jacob Kroon
  -- strict thread matches above, loose matches on Subject: below --
2023-08-05 11:06 [PATCH] systemd: add usrmerge to REQUIRED_DISTRO_FEATURES luca.boccassi
2023-08-05 12:57 ` [OE-core] " Otavio Salvador
2023-08-05 13:09 ` Richard Purdie
2023-08-05 21:36   ` Luca Boccassi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox