All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] bitbake error fix
@ 2012-03-06 23:37 Paul Eggleton
  2012-03-06 23:37 ` [PATCH 1/1] bitbake/siggen: output filename on error in finalise Paul Eggleton
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Eggleton @ 2012-03-06 23:37 UTC (permalink / raw)
  To: bitbake-devel

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(-)

-- 
1.7.5.4




^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/1] bitbake/siggen: output filename on error in finalise
  2012-03-06 23:37 [PATCH 0/1] bitbake error fix Paul Eggleton
@ 2012-03-06 23:37 ` Paul Eggleton
  2012-03-12  2:21   ` Richard Purdie
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Eggleton @ 2012-03-06 23:37 UTC (permalink / raw)
  To: bitbake-devel

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 <paul.eggleton@linux.intel.com>
---
 bitbake/lib/bb/siggen.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/bitbake/lib/bb/siggen.py b/bitbake/lib/bb/siggen.py
index 975ae41..eaef4a8 100644
--- a/bitbake/lib/bb/siggen.py
+++ b/bitbake/lib/bb/siggen.py
@@ -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]:
-- 
1.7.5.4




^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] bitbake/siggen: output filename on error in finalise
  2012-03-06 23:37 ` [PATCH 1/1] bitbake/siggen: output filename on error in finalise Paul Eggleton
@ 2012-03-12  2:21   ` Richard Purdie
  0 siblings, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2012-03-12  2:21 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: bitbake-devel

On Tue, 2012-03-06 at 23:37 +0000, Paul Eggleton wrote:
> 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 <paul.eggleton@linux.intel.com>
> ---
>  bitbake/lib/bb/siggen.py |    6 +++++-
>  1 files changed, 5 insertions(+), 1 deletions(-)

Merged to master, thanks.

Richard




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-03-12  2:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-06 23:37 [PATCH 0/1] bitbake error fix Paul Eggleton
2012-03-06 23:37 ` [PATCH 1/1] bitbake/siggen: output filename on error in finalise Paul Eggleton
2012-03-12  2:21   ` Richard Purdie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.