Skip to contentSkip to conversation

bitbake error fix

PATCH Applied Paul Eggleton 2 participants 3 messages Mar 6, 2012 – Mar 12, 2012

lore
Share & tools
lore
#0 lore raw

cover bitbake error fix

A patch to report recipes that cause errors during finalise().

The patch (against Poky, but applies cleanly with -p2 against bitbake master) is available in the git repository at:
git://git.yoctoproject.org/poky-contrib paule/bitbake-errors5
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=paule/bitbake-errors5

Paul Eggleton (1):
bitbake/siggen: output filename on error in finalise

 bitbake/lib/bb/siggen.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
Signature · 1 line
1.7.5.4
#1 lore raw

PATCH 1/1 bitbake/siggen: output filename on error in finalise

If an error occurs during finalise() (when for example we might get an expansion error in SRCPV), log a note which mentions which recipe was being finalised.

Fixes [YOCTO #1782]

---
 bitbake/lib/bb/siggen.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
bitbake/lib/bb/siggen.py +5 -1
index 975ae41..eaef4a8 100644
@@ -126,7 +126,11 @@ class SignatureGeneratorBasic(SignatureGenerator):
         if variant:
             fn = "virtual:" + variant + ":" + fn
 
-        taskdeps = self._build_data(fn, d)
+        try:
+            taskdeps = self._build_data(fn, d)
+        except:
+            bb.note("Error during finalise of %s" % fn)
+            raise
 
         #Slow but can be useful for debugging mismatched basehashes
         #for task in self.taskdeps[fn]:
Signature · 1 line
1.7.5.4
#2 lore raw

Re: [PATCH 1/1] bitbake/siggen: output filename on error in finalise

Quoted 10 lines · Paul Eggleton

If an error occurs during finalise() (when for example we might get an expansion error in SRCPV), log a note which mentions which recipe was being finalised.

Fixes [YOCTO #1782]

---
 bitbake/lib/bb/siggen.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

Merged to master, thanks.

Richard