Skip to contentSkip to conversation

systemd: upgrade from 258.1 to 259.1

PATCH In review [email protected] 3 participants 4 messages Feb 9 – Mar 11

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 systemd: upgrade from 258.1 to 259.1

From: Chen Qi <[email protected]>

Changes with v259:
https://github.com/systemd/systemd/releases/tag/v259

The 'iptc' PACKAGECONFIG is dropped, because:
"""
systemd-networkd and systemd-nspawn no longer support creating NAT rules via iptables/libiptc APIs; only nftables is now supported. """

Add 'empower' group for systemd. See commit below:
https://github.com/systemd/systemd/commit/3150c342705f4ac27f2b3299ac0961e7a70e4451

This new version has big change on musl support.
"""
Incomplete support for musl libc is now available by setting the "libc" meson option to "musl".
...
This support for musl is provided without a promise of continued support in future releases.
"""
See https://github.com/systemd/systemd/blob/main/NEWS#L562 for more details.

Here are some examples:
- The musl specific '-D_LARGEFILE64_SOURCE' could be dropped because:
https://github.com/systemd/systemd/commit/fb33d20c072f2e7c3d500f00f8c04c99271f34c1
- The 0017-Always-include-netinet-if_ether.h-first.patch and '-D__UAPI_DEF_ETHHDR=0 could be dropped because:
https://github.com/systemd/systemd/commit/8324ef421373c84b5034bf47b84fe42d84b1032f
- The 0015-Avoid-sequence-point-error.patch could be dropped because:
https://github.com/systemd/systemd/commit/ebbc0ea7fd764c870bb8689111138b4f73854d42

With the above musl support, here are the changes for this 259.1 recipe:
- Add '-Dlibc=${TCLIBC}' configure option.
- The musl warning, do_warn_musl, is removed.
- *ALL* musl specific patches are dropped.
Any further fix for musl should be sent to systemd upstream.

---
 ..._258.1.bb => systemd-boot-native_259.1.bb} |   0
 ...md-boot_258.1.bb => systemd-boot_259.1.bb} |   0
 ...1.bb => systemd-systemctl-native_259.1.bb} |   0
 meta/recipes-core/systemd/systemd.inc         |   4 +-
 ...ntroduce-header-file-and-add-__THROW.patch |  61 ---
 ...k-parse_printf_format-implementation.patch | 411 ------------------
 ...info-related-contents-glibc-specific.patch | 117 -----
 ...override-sys-prctl.h-to-avoid-redefi.patch |  43 --
 ...compliant-strerror_r-from-GNU-specif.patch |  76 ----
 ...util-Make-STRERROR-portable-for-musl.patch |  44 --
 ...-util.h-define-RLIM_FMT-to-fit-musl-.patch |  40 --
 ...ride-malloc.h-define-dummy-malloc_tr.patch |  41 --
 ...tion.c-avoid-using-glibc-ConditionVe.patch |  47 --
 ....c-avoid-boot-time-segfault-for-musl.patch |  31 --
 ...0014-Handle-missing-gshadow-for-musl.patch | 175 --------
 .../0015-Avoid-sequence-point-error.patch     |  35 --
 ...-for-glob-related-codes-and-define-d.patch | 409 -----------------
 ...ays-include-netinet-if_ether.h-first.patch |  40 --
 .../{systemd_258.1.bb => systemd_259.1.bb}    |  33 +-
 19 files changed, 6 insertions(+), 1601 deletions(-)
 rename meta/recipes-core/systemd/{systemd-boot-native_258.1.bb => systemd-boot-native_259.1.bb} (100%)
 rename meta/recipes-core/systemd/{systemd-boot_258.1.bb => systemd-boot_259.1.bb} (100%)
 rename meta/recipes-core/systemd/{systemd-systemctl-native_258.1.bb => systemd-systemctl-native_259.1.bb} (100%)
 delete mode 100644 meta/recipes-core/systemd/systemd/0004-musl.h-introduce-header-file-and-add-__THROW.patch
 delete mode 100644 meta/recipes-core/systemd/systemd/0005-add-fallback-parse_printf_format-implementation.patch
 delete mode 100644 meta/recipes-core/systemd/systemd/0006-Make-mallinfo-related-contents-glibc-specific.patch
 delete mode 100644 meta/recipes-core/systemd/systemd/0007-add-src-include-override-sys-prctl.h-to-avoid-redefi.patch
 delete mode 100644 meta/recipes-core/systemd/systemd/0008-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch
 delete mode 100644 meta/recipes-core/systemd/systemd/0009-errno-util-Make-STRERROR-portable-for-musl.patch
 delete mode 100644 meta/recipes-core/systemd/systemd/0010-src-basic-format-util.h-define-RLIM_FMT-to-fit-musl-.patch
 delete mode 100644 meta/recipes-core/systemd/systemd/0011-src-include-override-malloc.h-define-dummy-malloc_tr.patch
 delete mode 100644 meta/recipes-core/systemd/systemd/0012-src-shared-condition.c-avoid-using-glibc-ConditionVe.patch
 delete mode 100644 meta/recipes-core/systemd/systemd/0013-build-path.c-avoid-boot-time-segfault-for-musl.patch
 delete mode 100644 meta/recipes-core/systemd/systemd/0014-Handle-missing-gshadow-for-musl.patch
 delete mode 100644 meta/recipes-core/systemd/systemd/0015-Avoid-sequence-point-error.patch
 delete mode 100644 meta/recipes-core/systemd/systemd/0016-Fix-the-segfault-for-glob-related-codes-and-define-d.patch
 delete mode 100644 meta/recipes-core/systemd/systemd/0017-Always-include-netinet-if_ether.h-first.patch
 rename meta/recipes-core/systemd/{systemd_258.1.bb => systemd_259.1.bb} (96%)
meta/recipes-core/systemd/systemd-boot-native_259.1.bb renamed from meta/recipes-core/systemd/systemd-boot-native_258.1.bb +0 -0
similarity index 100%
rename from meta/recipes-core/systemd/systemd-boot-native_258.1.bb
rename to meta/recipes-core/systemd/systemd-boot-native_259.1.bb
meta/recipes-core/systemd/systemd-boot_259.1.bb renamed from meta/recipes-core/systemd/systemd-boot_258.1.bb +0 -0
similarity index 100%
rename from meta/recipes-core/systemd/systemd-boot_258.1.bb
rename to meta/recipes-core/systemd/systemd-boot_259.1.bb
meta/recipes-core/systemd/systemd-systemctl-native_259.1.bb renamed from meta/recipes-core/systemd/systemd-systemctl-native_258.1.bb +0 -0
similarity index 100%
rename from meta/recipes-core/systemd/systemd-systemctl-native_258.1.bb
rename to meta/recipes-core/systemd/systemd-systemctl-native_259.1.bb
meta/recipes-core/systemd/systemd.inc +2 -2
index daf37060d7..39ef398007 100644
@@ -15,8 +15,8 @@ LICENSE:libsystemd = "LGPL-2.1-or-later"
 LIC_FILES_CHKSUM = "file://LICENSE.GPL2;md5=c09786363500a9acc29b147e6e72d2c6 \
                     file://LICENSE.LGPL2.1;md5=be0aaf4a380f73f7e00b420a007368f2"
 
-SRCREV = "67a1069b7269cc23c3d04a2fb0cf110abe7abf31"
-SRCBRANCH = "v258-stable"
+SRCREV = "6a36f1c7420dcb8e5176796676047f058466fe7a"
+SRCBRANCH = "v259-stable"
 SRC_URI = "git://github.com/systemd/systemd.git;protocol=https;branch=${SRCBRANCH};tag=v${PV}"
 
 CVE_PRODUCT = "systemd"
meta/recipes-core/systemd/systemd/0004-musl.h-introduce-header-file-and-add-__THROW.patch deleted +0 -61

61 lines not on this page · raw message

meta/recipes-core/systemd/systemd/0005-add-fallback-parse_printf_format-implementation.patch deleted +0 -411

411 lines not on this page · raw message

meta/recipes-core/systemd/systemd/0006-Make-mallinfo-related-contents-glibc-specific.patch deleted +0 -117

117 lines not on this page · raw message

meta/recipes-core/systemd/systemd/0007-add-src-include-override-sys-prctl.h-to-avoid-redefi.patch deleted +0 -43

43 lines not on this page · raw message

meta/recipes-core/systemd/systemd/0008-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch deleted +0 -76

76 lines not on this page · raw message

meta/recipes-core/systemd/systemd/0009-errno-util-Make-STRERROR-portable-for-musl.patch deleted +0 -44

44 lines not on this page · raw message

meta/recipes-core/systemd/systemd/0010-src-basic-format-util.h-define-RLIM_FMT-to-fit-musl-.patch deleted +0 -40
deleted file mode 100644
index d6281b015b..0000000000
@@ -1,40 +0,0 @@
-From adf7bd6cf6305f5454cfb1ad4f1755880e831f7e Mon Sep 17 00:00:00 2001
-From: Chen Qi <[email protected]>
-Date: Mon, 29 Sep 2025 14:41:52 +0800
-Subject: [PATCH 10/16] src/basic/format-util.h: define RLIM_FMT to fit musl's
- rlim_t definition
-
-musl always defines rlim_t to be "unsigned long long".
-
-Upstream-Status: Inappropriate [musl specific]
-
-Signed-off-by: Chen Qi <[email protected]>
----
- src/basic/format-util.h | 4 ++++
- 1 file changed, 4 insertions(+)
-
-diff --git a/src/basic/format-util.h b/src/basic/format-util.h
-index e42f788ce6..9275f9615d 100644
---- a/src/basic/format-util.h
-+++ b/src/basic/format-util.h
-@@ -39,6 +39,7 @@ assert_cc(sizeof(gid_t) == sizeof(uint32_t));
- #  error Unknown timex member size
- #endif
- 
-+#ifdef __GLIBC__
- #if SIZEOF_RLIM_T == 8
- #  define RLIM_FMT "%" PRIu64
- #elif SIZEOF_RLIM_T == 4
-@@ -46,6 +47,9 @@ assert_cc(sizeof(gid_t) == sizeof(uint32_t));
- #else
- #  error Unknown rlim_t size
- #endif
-+#else
-+#define RLIM_FMT "%llu"
-+#endif
- 
- #if SIZEOF_DEV_T == 8
- #  define DEV_FMT "%" PRIu64
--- 
-2.34.1
-
meta/recipes-core/systemd/systemd/0011-src-include-override-malloc.h-define-dummy-malloc_tr.patch deleted +0 -41

41 lines not on this page · raw message

meta/recipes-core/systemd/systemd/0012-src-shared-condition.c-avoid-using-glibc-ConditionVe.patch deleted +0 -47

47 lines not on this page · raw message

meta/recipes-core/systemd/systemd/0013-build-path.c-avoid-boot-time-segfault-for-musl.patch deleted +0 -31
deleted file mode 100644
index e4d2c198f9..0000000000
@@ -1,31 +0,0 @@
-From a4b921b8d408e0f1c9d035a3ec93c3da3fe42352 Mon Sep 17 00:00:00 2001
-From: Chen Qi <[email protected]>
-Date: Wed, 3 Jul 2024 07:18:42 -0700
-Subject: [PATCH 13/16] build-path.c: avoid boot time segfault for musl
-
-This function, at runtime, should return -ENOEXEC. For musl, it
-somehow segfaults. I think it's related to getauxval, but it's
-really does not matter, just return -ENOEXEC.
-
-Upstream-Status: Inappropriate [musl specific]
-
-Signed-off-by: Chen Qi <[email protected]>
----
- src/basic/build-path.c | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/src/basic/build-path.c b/src/basic/build-path.c
-index 577ff72bce..3a7876798c 100644
---- a/src/basic/build-path.c
-+++ b/src/basic/build-path.c
-@@ -152,6 +152,7 @@ int get_build_exec_dir(char **ret) {
-          */
- 
-         static int runpath_cached = -ERRNO_MAX-1;
-+        return -ENOEXEC;
-         if (runpath_cached == -ERRNO_MAX-1) {
-                 const char *runpath = NULL;
- 
--- 
-2.34.1
-
meta/recipes-core/systemd/systemd/0014-Handle-missing-gshadow-for-musl.patch deleted +0 -175

175 lines not on this page · raw message

meta/recipes-core/systemd/systemd/0015-Avoid-sequence-point-error.patch deleted +0 -35
deleted file mode 100644
index c3401068cb..0000000000
@@ -1,35 +0,0 @@
-From 5dbeaee2085d3edcf20983fce4208eb174e46422 Mon Sep 17 00:00:00 2001
-From: Chen Qi <[email protected]>
-Date: Thu, 9 Oct 2025 15:19:09 +0800
-Subject: [PATCH 15/16] Avoid sequence-point error
-
-See https://www.openwall.com/lists/musl/2025/09/30/4
-
-Upstream-Status: Inappropriate [musl specific]
-
-Signed-off-by: Chen Qi <[email protected]>
----
- src/shared/cpu-set-util.c | 6 ++++--
- 1 file changed, 4 insertions(+), 2 deletions(-)
-
-diff --git a/src/shared/cpu-set-util.c b/src/shared/cpu-set-util.c
-index 7a155c12d4..a9c57fc31c 100644
---- a/src/shared/cpu-set-util.c
-+++ b/src/shared/cpu-set-util.c
-@@ -97,9 +97,11 @@ char* cpu_set_to_mask_string(const CPUSet *c) {
-         for (size_t i = c->allocated * 8; i > 0; ) {
-                 uint32_t m = 0;
- 
--                for (int j = (i % 32 ?: 32) - 1; j >= 0; j--)
--                        if (CPU_ISSET_S(--i, c->allocated, c->set))
-+                for (int j = (i % 32 ?: 32) - 1; j >= 0; j--) {
-+                        --i;
-+                        if (CPU_ISSET_S(i, c->allocated, c->set))
-                                 SET_BIT(m, j);
-+                }
- 
-                 if (!found_nonzero) {
-                         if (m == 0)
--- 
-2.34.1
-
meta/recipes-core/systemd/systemd/0016-Fix-the-segfault-for-glob-related-codes-and-define-d.patch deleted +0 -409

409 lines not on this page · raw message

meta/recipes-core/systemd/systemd/0017-Always-include-netinet-if_ether.h-first.patch deleted +0 -40
deleted file mode 100644
index 1cd9622540..0000000000
@@ -1,40 +0,0 @@
-From 675460e529f7373d042db581da3fdc3c9c25bf63 Mon Sep 17 00:00:00 2001
-From: Chen Qi <[email protected]>
-Date: Wed, 15 Oct 2025 15:48:09 +0800
-Subject: [PATCH 17/17] Always include netinet/if_ether.h first
-
-When compiling systemd with musl, we get many ethhdr redinition
-errors. This is because netinet/if_ether.h in musl does not check
-__UAPI_DEF_ETHHDR and expects programs to include it before other
-kernel headers.
-See https://www.openwall.com/lists/musl/2025/10/14/2
-
-To avoid this redefinition error, and to avoid resolving conflicts
-every time we upgrade systemd, use '-include netinet/if_ether.h' to
-make sure this file header is included first.
-
-The major consideration behind such method is maintenance.
-
-Upstream-Status: Inappropriate [musl specific]
-
-Signed-off-by: Chen Qi <[email protected]>
----
- meson.build | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/meson.build b/meson.build
-index 0df7ecbe67..842f058f04 100644
---- a/meson.build
-+++ b/meson.build
-@@ -2006,7 +2006,7 @@ config_h = configure_file(
-         output : 'config.h',
-         configuration : conf)
- 
--userspace_c_args += ['-include', 'config.h']
-+userspace_c_args += ['-include', 'config.h', '-include', 'netinet/if_ether.h']
- 
- jinja2_cmdline = [meson_render_jinja2, config_h]
- 
--- 
-2.34.1
-
meta/recipes-core/systemd/systemd_259.1.bb renamed from meta/recipes-core/systemd/systemd_258.1.bb +4 -29
similarity index 96%
rename from meta/recipes-core/systemd/systemd_258.1.bb
rename to meta/recipes-core/systemd/systemd_259.1.bb
index 41f1e756cb..bbec7c9af5 100644
@@ -31,25 +31,6 @@ SRC_URI += " \
            file://0003-Do-not-create-var-log-README.patch \
            "
 
-# patches needed by musl
-SRC_URI:append:libc-musl = " ${SRC_URI_MUSL}"
-SRC_URI_MUSL = "\
-               file://0004-musl.h-introduce-header-file-and-add-__THROW.patch \
-               file://0005-add-fallback-parse_printf_format-implementation.patch \
-               file://0006-Make-mallinfo-related-contents-glibc-specific.patch \
-               file://0007-add-src-include-override-sys-prctl.h-to-avoid-redefi.patch \
-               file://0008-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch \
-               file://0009-errno-util-Make-STRERROR-portable-for-musl.patch \
-               file://0010-src-basic-format-util.h-define-RLIM_FMT-to-fit-musl-.patch \
-               file://0011-src-include-override-malloc.h-define-dummy-malloc_tr.patch \
-               file://0012-src-shared-condition.c-avoid-using-glibc-ConditionVe.patch \
-               file://0013-build-path.c-avoid-boot-time-segfault-for-musl.patch \
-               file://0014-Handle-missing-gshadow-for-musl.patch \
-               file://0015-Avoid-sequence-point-error.patch \
-               file://0016-Fix-the-segfault-for-glob-related-codes-and-define-d.patch \
-               file://0017-Always-include-netinet-if_ether.h-first.patch \
-               "
-
 PAM_PLUGINS = " \
     pam-plugin-unix \
     pam-plugin-loginuid \
@@ -110,8 +91,6 @@ PACKAGECONFIG:remove:libc-musl = " \
 # https://github.com/seccomp/libseccomp/issues/347
 PACKAGECONFIG:remove:mipsarch = "seccomp"
 
-TARGET_CC_ARCH:append:libc-musl = " -D__UAPI_DEF_ETHHDR=0 -D_LARGEFILE64_SOURCE"
-
 # Some of the dependencies are weak-style recommends - if not available at runtime,
 # systemd won't fail but the library-related feature will be skipped with a warning.
 
@@ -151,8 +130,6 @@ PACKAGECONFIG[idn] = "-Didn=true,-Didn=false"
 PACKAGECONFIG[ima] = "-Dima=true,-Dima=false"
 # importd requires journal-upload/xz/zlib/bzip2/gcrypt
 PACKAGECONFIG[importd] = "-Dimportd=enabled,-Dimportd=disabled,glib-2.0"
-# Update NAT firewall rules
-PACKAGECONFIG[iptc] = "-Dlibiptc=enabled,-Dlibiptc=disabled,iptables"
 PACKAGECONFIG[journal-color] = ",,,less"
 PACKAGECONFIG[journal-upload] = "-Dlibcurl=enabled,-Dlibcurl=disabled,curl"
 PACKAGECONFIG[kmod] = "-Dkmod=enabled,-Dkmod=disabled,kmod,libkmod"
@@ -241,6 +218,7 @@ EXTRA_OEMESON += "-Dnobody-user=nobody \
                   ${@bb.utils.contains('DISTRO_FEATURES', 'zeroconf', '-Ddefault-mdns=no -Ddefault-llmnr=no', '', d)} \
                   -Ddbus=disabled \
                   -Dtests=false \
+                  -Dlibc=${TCLIBC} \
                   "
 
 # Hardcode target binary paths to avoid using paths from sysroot or worse
@@ -447,6 +425,7 @@ USERADD_PACKAGES = "${PN} \
                     ${@bb.utils.contains('PACKAGECONFIG', 'networkd', '${PN}-networkd', '', d)} \
 "
 GROUPADD_PARAM:${PN} = "-r systemd-journal;"
+GROUPADD_PARAM:${PN} += "-r empower;"
 GROUPADD_PARAM:udev = "-r render"
 GROUPADD_PARAM:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'polkit_hostnamed_fallback', '-r systemd-hostname;', '', d)}"
 USERADD_PARAM:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'coredump', '--system -d / -M --shell /sbin/nologin systemd-coredump;', '', d)}"
@@ -784,6 +763,7 @@ FILES:udev += "${base_sbindir}/udevd \
                ${nonarch_libdir}/udev/rules.d/60-drm.rules \
                ${nonarch_libdir}/udev/rules.d/60-evdev.rules \
                ${nonarch_libdir}/udev/rules.d/60-fido-id.rules \
+               ${nonarch_libdir}/udev/rules.d/60-gpiochip.rules \
                ${nonarch_libdir}/udev/rules.d/60-infiniband.rules \
                ${nonarch_libdir}/udev/rules.d/60-input-id.rules \
                ${nonarch_libdir}/udev/rules.d/60-persistent-alsa.rules \
@@ -810,6 +790,7 @@ FILES:udev += "${base_sbindir}/udevd \
                ${nonarch_libdir}/udev/rules.d/80-net-setup-link.rules \
                ${nonarch_libdir}/udev/rules.d/81-net-bridge.rules \
                ${nonarch_libdir}/udev/rules.d/81-net-dhcp.rules \
+               ${nonarch_libdir}/udev/rules.d/82-net-auto-link-local.rules \
                ${nonarch_libdir}/udev/rules.d/90-image-dissect.rules \
                ${nonarch_libdir}/udev/rules.d/90-vconsole.rules \
                ${nonarch_libdir}/udev/rules.d/90-iocost.rules \
@@ -848,12 +829,6 @@ python __anonymous() {
         bb.error("PACKAGECONFIG[homed] requires PACKAGECONFIG[userdb], PACKAGECONFIG[openssl] and PACKAGECONFIG[cryptsetup]")
 }
 
-python do_warn_musl() {
-    if d.getVar('TCLIBC') == "musl":
-        bb.warn("Using systemd with musl is not recommended since it is not supported upstream and some patches are known to be problematic.")
-}
-addtask warn_musl before do_configure
-
 ALTERNATIVE:${PN} = "halt reboot shutdown poweroff \
                      ${@bb.utils.contains('PACKAGECONFIG', 'resolved', 'resolv-conf', '', d)}"
 
Signature · 1 line
2.43.0
#1 lore raw
Quoted 33 lines · Chen Qi via lists.openembedded.org

From: Chen Qi <[email protected]>

Changes with v259:
https://github.com/systemd/systemd/releases/tag/v259

The 'iptc' PACKAGECONFIG is dropped, because:
"""
systemd-networkd and systemd-nspawn no longer support creating NAT rules via iptables/libiptc APIs; only nftables is now supported. """

Add 'empower' group for systemd. See commit below:
https://github.com/systemd/systemd/commit/3150c342705f4ac27f2b3299ac0961e7a70e4451

This new version has big change on musl support.
"""
Incomplete support for musl libc is now available by setting the "libc" meson option to "musl".
...
This support for musl is provided without a promise of continued support in future releases.
"""
See https://github.com/systemd/systemd/blob/main/NEWS#L562 for more details.

Here are some examples:
- The musl specific '-D_LARGEFILE64_SOURCE' could be dropped because:
https://github.com/systemd/systemd/commit/fb33d20c072f2e7c3d500f00f8c04c99271f34c1
- The 0017-Always-include-netinet-if_ether.h-first.patch and '-D__UAPI_DEF_ETHHDR=0 could be dropped because:
https://github.com/systemd/systemd/commit/8324ef421373c84b5034bf47b84fe42d84b1032f
- The 0015-Avoid-sequence-point-error.patch could be dropped because:
https://github.com/systemd/systemd/commit/ebbc0ea7fd764c870bb8689111138b4f73854d42

Quoted 8 lines

With the above musl support, here are the changes for this 259.1 recipe:
- Add '-Dlibc=${TCLIBC}' configure option.
- The musl warning, do_warn_musl, is removed.
- *ALL* musl specific patches are dropped.
Any further fix for musl should be sent to systemd upstream.

---

Hi Jan-Simon,

Please note this commit will break meta-agl, as iptc PACKAGECONFIG is being dropped:

ERROR: systemd-1_259.1-r0 do_recipe_qa: QA Issue: systemd: invalid PACKAGECONFIG(s): iptc [invalid-packageconfig]

https://autobuilder.yoctoproject.org/valkyrie/#/builders/55/builds/2997

Thanks,
Mathieu

Signature · 3 lines
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw

No blocker. We can/will adapt.

Best regards,
Jan-Simon

------
Jan-Simon Möller
AGL Release Manager
The Linux Foundation

Visit us at:
www.automotivegradelinux.org
lists.automotivelinux.org
www.linuxfoundation.org

Mathieu Dubois-Briand <[email protected]> schrieb am Mi.,
11. Feb. 2026, 12:55:

Quoted 69 lines
Quoted 5 lines · Chen Qi via lists.openembedded.org

From: Chen Qi <[email protected]>

Changes with v259:
https://github.com/systemd/systemd/releases/tag/v259

Quoted 8 lines

The 'iptc' PACKAGECONFIG is dropped, because:
"""
systemd-networkd and systemd-nspawn no longer support creating NAT rules via iptables/libiptc APIs; only nftables is now supported. """

Add 'empower' group for systemd. See commit below:

https://github.com/systemd/systemd/commit/3150c342705f4ac27f2b3299ac0961e7a70e4451

Quoted 10 lines

This new version has big change on musl support.
"""
Incomplete support for musl libc is now available by setting the "libc" meson option to "musl".
...
This support for musl is provided without a promise of continued support in future releases.
"""
See https://github.com/systemd/systemd/blob/main/NEWS#L562 for more

details.

Quoted 4 lines

Here are some examples:
- The musl specific '-D_LARGEFILE64_SOURCE' could be dropped because:

https://github.com/systemd/systemd/commit/fb33d20c072f2e7c3d500f00f8c04c99271f34c1

Quoted 1 line

- The 0017-Always-include-netinet-if_ether.h-first.patch and

'-D__UAPI_DEF_ETHHDR=0

Quoted 2 lines

could be dropped because:

https://github.com/systemd/systemd/commit/8324ef421373c84b5034bf47b84fe42d84b1032f

Quoted 2 lines

- The 0015-Avoid-sequence-point-error.patch could be dropped because:

https://github.com/systemd/systemd/commit/ebbc0ea7fd764c870bb8689111138b4f73854d42

Quoted 9 lines

With the above musl support, here are the changes for this 259.1 recipe:
- Add '-Dlibc=${TCLIBC}' configure option.
- The musl warning, do_warn_musl, is removed.
- *ALL* musl specific patches are dropped.
Any further fix for musl should be sent to systemd upstream.

---

Hi Jan-Simon,

Please note this commit will break meta-agl, as iptc PACKAGECONFIG is being dropped:

ERROR: systemd-1_259.1-r0 do_recipe_qa: QA Issue: systemd: invalid PACKAGECONFIG(s): iptc [invalid-packageconfig]

https://autobuilder.yoctoproject.org/valkyrie/#/builders/55/builds/2997

Thanks,
Mathieu

--
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

#3 lore raw
Quoted 2 lines · Jan-Simon Moeller

No blocker. We can/will adapt.

Hi Jan-Simon,

This patch is now merged, so you can see build failures with meta-agl on master.

Thanks,
Mathieu

Signature · 3 lines
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com