Patchwork [bitbake-devel,1/1] providers.py: print a debug message for dynamic pacakge

login
register
mail settings
Submitter Robert Yang
Date July 19, 2013, 8:11 a.m.
Message ID <2917b6580c7655656d551b185f092042c035e87d.1374204011.git.liezhi.yang@windriver.com>
Download mbox | patch
Permalink /patch/54039/
State New
Headers show

Comments

Robert Yang - July 19, 2013, 8:11 a.m.
We can't know the dynamic pacakge's name exactly, there might be a
problem, for example, when we use:

IMAGE_INSTALL_append += "ncurses-lib12344"

The ncurses-lib12344 matches ncurses' dynamic packages pattern:

PACKAGES_DYNAMIC = "^${PN}-lib.*"

so there is no errors before the rootfs creation though there is no
ncurses-lib12344.

We can warn this, but I think that we'd better not since there are many
dynamic packages, or there would be too many warnings, for example, the
perl and kernel modules, maybe we can print a debug message for it.

[YOCTO #4798]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
 bitbake/lib/bb/providers.py |    1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/bitbake/lib/bb/providers.py b/bitbake/lib/bb/providers.py
index 3d0fb48..cac13ac 100644
--- a/bitbake/lib/bb/providers.py
+++ b/bitbake/lib/bb/providers.py
@@ -376,5 +376,6 @@  def getRuntimeProviders(dataCache, rdepend):
             regexp_cache[pattern] = regexp
         if regexp.match(rdepend):
             rproviders += dataCache.packages_dynamic[pattern]
+            logger.debug(1, "Assuming %s is a dynamic package, but it may not exist" % rdepend)
 
     return rproviders