bitbake error fix
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
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
@@ -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
Richard Purdie
AppliedRe: [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]
Signed-off-by Paul Eggleton <[email protected]>--- bitbake/lib/bb/siggen.py | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
Merged to master, thanks.
Richard