Skip to contentSkip to conversation

providers.py: print a debug message for dynamic pacakge

PATCH New Robert Yang 1 participant 2 messages Jul 19, 2013

lore
Share & tools
lore
#0 lore raw

cover providers.py: print a debug message for dynamic pacakge

The following changes since commit 31e6eee860b5f9f4ac9ef0889bcff5648de6e3f9:

poky-tiny.conf: blacklist core-image-weston option (2013-07-18 21:26:58 +0100)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib robert/dynamic
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/dynamic

Robert Yang (1):
providers.py: print a debug message for dynamic pacakge

 bitbake/lib/bb/providers.py |    1 +
 1 file changed, 1 insertion(+)
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/1 providers.py: print a debug message for dynamic pacakge

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]

---
 bitbake/lib/bb/providers.py |    1 +
 1 file changed, 1 insertion(+)
bitbake/lib/bb/providers.py +1 -0
index 3d0fb48..cac13ac 100644
@@ -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
Signature · 1 line
1.7.10.4