]> code.ossystems Code Review - openembedded-core.git/commitdiff
package.bbclass: Fix regression in -dbg packages introduced by explode_dep_versions...
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 3 Oct 2012 08:58:24 +0000 (09:58 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 3 Oct 2012 09:02:00 +0000 (10:02 +0100)
We need to iterate over the dictionary pulling out the values, not take the top
level keys. If we don't do this, we end up with dependencies on the values of
PACKAGES, not library dependencies.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package.bbclass

index a14561d5acff7ef9c1871f6a8b3ab8d29e1656f1..73c4358aff81fba1ebf96fe524e6254b8f7ff654 100644 (file)
@@ -1763,7 +1763,10 @@ python package_depchains() {
 
     if "-dbg" in pkgs:
         pkglibdeps = read_libdep_files(d)
-        pkglibdeplist = pkglibdeps.keys()
+        pkglibdeplist = []
+        for pkg in pkglibdeps:
+            for k in pkglibdeps[pkg]:
+                add_dep(pkglibdeplist, k)
         # FIXME this should not look at PN once all task recipes inherit from task.bbclass
         dbgdefaultdeps = ((d.getVar('DEPCHAIN_DBGDEFAULTDEPS', True) == '1') or (d.getVar('PN', True) or '').startswith('packagegroup-'))