diff mbox series

[v2,2/3] systemd: dlopen-deps: only warn for missing required providers

Message ID 20260921210644.85026-3-jaipaul.cheernam@est.tech
State New
Headers show
Series systemd musl build fixes and nfs-utils upgrade | expand

Commit Message

Jaipaul Cheernam Sept. 21, 2026, 9:06 p.m. UTC
Optional recommended/suggested dlopen deps often have no provider, so musl
builds print warnings like:

  WARNING: cannot find any provider for dlopen dependency: libintl.so.8

Only warn for required deps, note the rest.

Signed-off-by: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
---
Changes in v2:
 - Reword the commit message and shorten the inline comment.

 meta/recipes-core/systemd/dlopen-deps.inc | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/recipes-core/systemd/dlopen-deps.inc b/meta/recipes-core/systemd/dlopen-deps.inc
index 2d43f2dcb8e..50ea862df06 100644
--- a/meta/recipes-core/systemd/dlopen-deps.inc
+++ b/meta/recipes-core/systemd/dlopen-deps.inc
@@ -77,7 +77,13 @@  python package_generate_dlopen_deps() {
                                 found = True
                                 break
                         if not found:
-                            bb.warn(f"cannot find any provider for dlopen dependency: {dep['soname']}")
+                            # Optional (recommended/suggested) dlopen deps may have
+                            # no provider on some configs, so only warn for required ones.
+                            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