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 <[email protected]>
---
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 --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
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#246360): 
https://lists.openembedded.org/g/openembedded-core/message/246360
Mute This Topic: https://lists.openembedded.org/mt/121364963/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to