[oe-commits] [bitbake] 01/01: cache: don't insert PN into PACKAGES

git at git.openembedded.org git at git.openembedded.org
Wed Jun 28 19:57:16 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository bitbake.

commit df31a88786ce5bd7708ff14e1379dc2a58a8c0cf
Author: Ross Burton <ross.burton at intel.com>
AuthorDate: Tue Jun 20 19:47:34 2017 +0100

    cache: don't insert PN into PACKAGES
    
    The cache code currently inserts PN into the package list if it isn't already
    present.  Whilst this ensures that the package list contains something which is
    important for native recipes that don't set PACKAGES, it causes confusing
    behaviour where a normal recipe doesn't have PN in PACKAGES: for example adding
    dhcp to IMAGE_INSTALL will parse successfully but fail at rootfs time as the
    dhcp recipe doesn't generate a dhcp package.
    
    Solve this by only adding PN to the cache's package list if the package list is
    empty.  This results in the package list for recipes such as DHCP being correct,
    but native recipes continue to have just PN in the list as before.
    
    [ YOCTO #5533 ]
    
    Signed-off-by: Ross Burton <ross.burton at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/cache.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/bb/cache.py b/lib/bb/cache.py
index e7eeb4f..5143992 100644
--- a/lib/bb/cache.py
+++ b/lib/bb/cache.py
@@ -107,7 +107,7 @@ class CoreRecipeInfo(RecipeInfoCommon):
 
         self.pn = self.getvar('PN', metadata)
         self.packages = self.listvar('PACKAGES', metadata)
-        if not self.pn in self.packages:
+        if not self.packages:
             self.packages.append(self.pn)
 
         self.basetaskhashes = self.taskvar('BB_BASEHASH', self.tasks, metadata)
@@ -217,7 +217,7 @@ class CoreRecipeInfo(RecipeInfoCommon):
             cachedata.packages_dynamic[package].append(fn)
 
         # Build hash of runtime depends and recommends
-        for package in self.packages + [self.pn]:
+        for package in self.packages:
             cachedata.rundeps[fn][package] = list(self.rdepends) + self.rdepends_pkg[package]
             cachedata.runrecs[fn][package] = list(self.rrecommends) + self.rrecommends_pkg[package]
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list