From ca9a956abc6b9b20bc7616c9e9bb2341be2bf5bb Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Sun, 21 Mar 2010 23:02:56 +0100 Subject: Made '-b' work with BBCLASSEXTEND When BBCLASSEXTEND is set, '-b' builds usually failed with messages like | ERROR: Parsing error data_fn virtual:native:.bb and fn .bb don't match | | File ".../bb/providers.py", line 47, in sortPriorities | priority = dataCache.bbfile_priority[f] | KeyError: 'virtual:native:.bb' This patch fixes it and allows to specify the alternative class in a way like | ./bitbake -b virtual:native:.bb This patch was written to be so minimal as possible; variables should be probably renamed to reflect their new meaning. (Bitbake rev: f1c7fe9fc12161ceb3fe201cde370b929b208729) Signed-off-by: Enrico Scholz Signed-off-by: Richard Purdie --- bitbake/lib/bb/cache.py | 1 + 1 file changed, 1 insertion(+) (limited to 'bitbake/lib/bb/cache.py') diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py index f3ba714d46..30857864dc 100644 --- a/bitbake/lib/bb/cache.py +++ b/bitbake/lib/bb/cache.py @@ -137,6 +137,7 @@ class Cache: # If we're a virtual class we need to make sure all our depends are appended # to the depends of fn. depends = self.getVar("__depends", virtualfn, True) or [] + self.depends_cache.setdefault(fn, {}) if "__depends" not in self.depends_cache[fn] or not self.depends_cache[fn]["__depends"]: self.depends_cache[fn]["__depends"] = depends for dep in depends: -- cgit v1.2.3