From: <daniel.turull@ericsson.com>
To: <Openembedded-core@lists.openembedded.org>
Cc: <Ross.Burton@arm.com>, Daniel Turull <daniel.turull@ericsson.com>
Subject: [PATCH] systemd: restore libdw/libelf to elfutils PACKAGECONFIG RRECOMMENDS
Date: Thu, 6 Aug 2026 13:17:17 +0200 [thread overview]
Message-ID: <20260806111717.4060900-1-daniel.turull@ericsson.com> (raw)
From: Daniel Turull <daniel.turull@ericsson.com>
systemd-coredump dlopen()s libdw to symbolicate backtraces. These
libraries are marked as "suggested" in libsystemd-shared's .note.dlopen
metadata, causing them to land in RSUGGESTS rather than RRECOMMENDS.
RSUGGESTS packages are not installed into the rootfs, breaking
symbolication and causing test_systemd_coredump_minidebuginfo to fail.
Restore explicit RRECOMMENDS for libdw and libelf when elfutils
PACKAGECONFIG is enabled to ensure backtrace symbolication works.
Fixes regression from bb9c619174 ("systemd: drop redundant runtime
dependencies").
To recreate the issue in qemux86-64:
DISTRO_FEATURES:append = "minidebuginfo"
TEST_SUITES = "ping ssh systemd"
bitbake core-image-minimal
bitbake core-image-minimal -c testimage
Before:
RESULTS - systemd.SystemdServiceTests.test_systemd_coredump_minidebuginfo: FAILED (2.71s)
After:
RESULTS - systemd.SystemdServiceTests.test_systemd_coredump_minidebuginfo: PASSED (2.71s)
AI-Generated: Kiro with Claude Opus 5
Signed-off-by: Daniel Turull <daniel.turull@ericsson.com>
---
builds on top of the systemd: update to 261.2
---
meta/recipes-core/systemd/systemd_261.2.bb | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-core/systemd/systemd_261.2.bb b/meta/recipes-core/systemd/systemd_261.2.bb
index b295a69548..56c33ef157 100644
--- a/meta/recipes-core/systemd/systemd_261.2.bb
+++ b/meta/recipes-core/systemd/systemd_261.2.bb
@@ -126,7 +126,11 @@ PACKAGECONFIG[default-compression-lz4] = "-Dlz4=true -Ddefault-compression=lz4,,
PACKAGECONFIG[default-compression-xz] = "-Dxz=true -Ddefault-compression=xz,,xz"
PACKAGECONFIG[default-compression-zstd] = "-Dzstd=true -Ddefault-compression=zstd,,zstd"
PACKAGECONFIG[efi] = "-Defi=true -Dbootloader=enabled,-Defi=false -Dbootloader=disabled,python3-pyelftools-native"
-PACKAGECONFIG[elfutils] = "-Delfutils=enabled,-Delfutils=disabled,elfutils"
+# libdw/libelf are dlopen()ed, but upstream marks them as "suggested" in the
+# .note.dlopen metadata so they end up in RSUGGESTS, which is not installed.
+# systemd-coredump cannot symbolicate backtraces without libdw, so promote
+# these to RRECOMMENDS explicitly.
+PACKAGECONFIG[elfutils] = "-Delfutils=enabled,-Delfutils=disabled,elfutils,,libdw libelf"
PACKAGECONFIG[fido] = "-Dlibfido2=enabled,-Dlibfido2=disabled,libfido2-initial"
PACKAGECONFIG[firstboot] = "-Dfirstboot=true,-Dfirstboot=false"
PACKAGECONFIG[repart] = "-Drepart=enabled,-Drepart=disabled"
next reply other threads:[~2026-08-06 11:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-06 11:17 daniel.turull [this message]
2026-08-06 11:22 ` [PATCH] systemd: restore libdw/libelf to elfutils PACKAGECONFIG RRECOMMENDS Ross Burton
2026-08-06 11:32 ` Daniel Turull
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260806111717.4060900-1-daniel.turull@ericsson.com \
--to=daniel.turull@ericsson.com \
--cc=Openembedded-core@lists.openembedded.org \
--cc=Ross.Burton@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox