From: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 2/3] systemd: dlopen-deps: only warn for missing required providers
Date: Mon, 21 Sep 2026 12:45:19 +0200 [thread overview]
Message-ID: <20260921104520.47933-3-jaipaul.cheernam@est.tech> (raw)
In-Reply-To: <20260921104520.47933-1-jaipaul.cheernam@est.tech>
package_generate_dlopen_deps() warns whenever it cannot find a provider for
a soname listed in a .note.dlopen segment, regardless of the dependency's
priority. "recommended" and "suggested" entries are optional (they map to
RRECOMMENDS) and legitimately have no provider in some configurations - for
example systemd suggests libintl.so.8, which does not exist on musl, where
the gettext symbols live in libc. This produces spurious warnings on every
musl build.
Only warn for "required" dlopen dependencies; downgrade the missing-provider
message for optional ones to a note.
Signed-off-by: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
---
meta/recipes-core/systemd/dlopen-deps.inc | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-core/systemd/dlopen-deps.inc b/meta/recipes-core/systemd/dlopen-deps.inc
index 2d43f2dcb8e..15f811de126 100644
--- a/meta/recipes-core/systemd/dlopen-deps.inc
+++ b/meta/recipes-core/systemd/dlopen-deps.inc
@@ -77,7 +77,17 @@ python package_generate_dlopen_deps() {
found = True
break
if not found:
- bb.warn(f"cannot find any provider for dlopen dependency: {dep['soname']}")
+ # A missing provider only matters for "required" dlopen
+ # dependencies. "recommended"/"suggested" ones are optional
+ # (they map to RRECOMMENDS) and legitimately have no provider
+ # on some configurations - e.g. systemd suggests libintl.so.8,
+ # which does not exist on musl where the gettext symbols live
+ # in libc. Only warn for required deps; note the rest.
+ msg = f"cannot find any provider for dlopen dependency: {dep['soname']}"
+ if dep["priority"] == "required":
+ bb.warn(msg)
+ else:
+ bb.note(msg)
except oe.qa.NotELFFileError as e:
bb.note(f"Cannot extract ELF notes: {e}")
pass
next prev parent reply other threads:[~2026-09-21 10:45 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-21 10:45 [PATCH 0/3] nfs-utils: musl upgrade to 3.1.1 and prerequisite systemd fixes Jaipaul Cheernam
2026-09-21 10:45 ` [PATCH 1/3] systemd: fix musl build by providing missing POSIX limits Jaipaul Cheernam
2026-09-21 10:45 ` Jaipaul Cheernam [this message]
2026-09-21 10:45 ` [PATCH 3/3] nfs-utils: upgrade 2.9.2 -> 3.1.1 Jaipaul Cheernam
2026-09-21 21:06 ` [PATCH v2 0/3] systemd musl build fixes and nfs-utils upgrade Jaipaul Cheernam
2026-09-21 21:06 ` [PATCH v2 1/3] systemd: fix musl build by fixing limits.h override Jaipaul Cheernam
2026-09-24 10:57 ` [OE-core] " Ross Burton
2026-09-21 21:06 ` [PATCH v2 2/3] systemd: dlopen-deps: only warn for missing required providers Jaipaul Cheernam
2026-09-24 10:59 ` [OE-core] " Ross Burton
2026-09-29 14:55 ` Khem Raj
2026-09-21 21:06 ` [PATCH v2 3/3] nfs-utils: upgrade 2.9.2 -> 3.1.1 Jaipaul Cheernam
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=20260921104520.47933-3-jaipaul.cheernam@est.tech \
--to=jaipaul.cheernam@est.tech \
--cc=openembedded-core@lists.openembedded.org \
/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