All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] More hob bug fixes
@ 2011-08-04 22:45 Joshua Lock
  2011-08-04 22:46 ` [PATCH 1/2] bb/ui/hob: reset event handler once build complete Joshua Lock
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Joshua Lock @ 2011-08-04 22:45 UTC (permalink / raw)
  To: bitbake-devel

The first patch is a glaring omission in my code, apologies for that. The
second, aiui, should fix cache invalidation to work as expected.

Please review.

Thanks,
Joshua

The following changes since commit 5f079f11ca626a4a11ad728c56bde21009ddd7c8:

  bb/ui/hob: be clear that the image contents are an estimate (2011-08-03 18:19:54 -0700)

are available in the git repository at:
  git://github.com/incandescant/bitbake hob
  https://github.com/incandescant/bitbake/tree/hob

Joshua Lock (2):
  bb/ui/hob: reset event handler once build complete
  bb/cooker: mark parsed conf files as potential cache invalidators

 lib/bb/cooker.py |    2 +-
 lib/bb/ui/hob.py |    2 ++
 2 files changed, 3 insertions(+), 1 deletions(-)

-- 
1.7.6




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

* [PATCH 1/2] bb/ui/hob: reset event handler once build complete
  2011-08-04 22:45 [PATCH 0/2] More hob bug fixes Joshua Lock
@ 2011-08-04 22:46 ` Joshua Lock
  2011-08-04 22:46 ` [PATCH 2/2] bb/cooker: mark parsed conf files as potential cache invalidators Joshua Lock
  2011-08-05 16:47 ` [PATCH 0/2] More hob bug fixes Richard Purdie
  2 siblings, 0 replies; 4+ messages in thread
From: Joshua Lock @ 2011-08-04 22:46 UTC (permalink / raw)
  To: bitbake-devel

The HobEventHandler passes events on to RunningBuild when a build is in
progress. This patch resets the HobEventHandler to handle events when the
build is complete.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
---
 lib/bb/ui/hob.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lib/bb/ui/hob.py b/lib/bb/ui/hob.py
index a38868f..5906251 100644
--- a/lib/bb/ui/hob.py
+++ b/lib/bb/ui/hob.py
@@ -450,6 +450,8 @@ class MainWindow (gtk.Window):
         self.nb.set_current_page(0)
 
     def build_complete_cb(self, running_build):
+        # Have the handler process BB events again
+        self.handler.building = None
         self.stopping = False
         self.back.connect("clicked", self.back_button_clicked_cb)
         self.back.set_sensitive(True)
-- 
1.7.6




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

* [PATCH 2/2] bb/cooker: mark parsed conf files as potential cache invalidators
  2011-08-04 22:45 [PATCH 0/2] More hob bug fixes Joshua Lock
  2011-08-04 22:46 ` [PATCH 1/2] bb/ui/hob: reset event handler once build complete Joshua Lock
@ 2011-08-04 22:46 ` Joshua Lock
  2011-08-05 16:47 ` [PATCH 0/2] More hob bug fixes Richard Purdie
  2 siblings, 0 replies; 4+ messages in thread
From: Joshua Lock @ 2011-08-04 22:46 UTC (permalink / raw)
  To: bitbake-devel

The include parameter to _parse() tells the parser whether to include the
file in __base_depends, the contents of which have their mtime tested to
invalidate the cache when they have changed.

As I understand it we would want all of the configuration files that are
currently handled with the _parse() method to invalidate the cache to set the
default value of the include parameter to True.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
---
 lib/bb/cooker.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 025dfe4..6022192 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -1317,7 +1317,7 @@ def catch_parse_error(func):
     return wrapped
 
 @catch_parse_error
-def _parse(fn, data, include=False):
+def _parse(fn, data, include=True):
     return bb.parse.handle(fn, data, include)
 
 @catch_parse_error
-- 
1.7.6




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

* Re: [PATCH 0/2] More hob bug fixes
  2011-08-04 22:45 [PATCH 0/2] More hob bug fixes Joshua Lock
  2011-08-04 22:46 ` [PATCH 1/2] bb/ui/hob: reset event handler once build complete Joshua Lock
  2011-08-04 22:46 ` [PATCH 2/2] bb/cooker: mark parsed conf files as potential cache invalidators Joshua Lock
@ 2011-08-05 16:47 ` Richard Purdie
  2 siblings, 0 replies; 4+ messages in thread
From: Richard Purdie @ 2011-08-05 16:47 UTC (permalink / raw)
  To: Joshua Lock; +Cc: bitbake-devel

On Thu, 2011-08-04 at 15:45 -0700, Joshua Lock wrote:
> The first patch is a glaring omission in my code, apologies for that. The
> second, aiui, should fix cache invalidation to work as expected.
> 
> Please review.
> 
> Thanks,
> Joshua
> 
> The following changes since commit 5f079f11ca626a4a11ad728c56bde21009ddd7c8:
> 
>   bb/ui/hob: be clear that the image contents are an estimate (2011-08-03 18:19:54 -0700)
> 
> are available in the git repository at:
>   git://github.com/incandescant/bitbake hob
>   https://github.com/incandescant/bitbake/tree/hob
> 
> Joshua Lock (2):
>   bb/ui/hob: reset event handler once build complete
>   bb/cooker: mark parsed conf files as potential cache invalidators

Merged to master, thanks.

Richard




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

end of thread, other threads:[~2011-08-05 16:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-04 22:45 [PATCH 0/2] More hob bug fixes Joshua Lock
2011-08-04 22:46 ` [PATCH 1/2] bb/ui/hob: reset event handler once build complete Joshua Lock
2011-08-04 22:46 ` [PATCH 2/2] bb/cooker: mark parsed conf files as potential cache invalidators Joshua Lock
2011-08-05 16:47 ` [PATCH 0/2] More hob bug fixes 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.