Openembedded Bitbake Development
 help / color / mirror / Atom feed
* [PATCH 0/2] Hob v1 related fixes
@ 2011-12-13 22:45 Joshua Lock
  2011-12-13 22:45 ` [PATCH 1/2] ui/crumbs/runningbuild: handle InvalidTask events Joshua Lock
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Joshua Lock @ 2011-12-13 22:45 UTC (permalink / raw)
  To: bitbake-devel

This series works around a couple of issues which I'd like to address for the
Yocto Edison 1.1.1 release.

Regards,
Joshua

The following changes since commit 71b53a3f0766ca464560a1f6a449f9424fbdf7ae:

  siggen.py: If both sigs have a variable in it's whitelist then don't say it's changed (2011-12-05 16:17:38 +0000)

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

Joshua Lock (2):
  ui/crumbs/runningbuild: handle InvalidTask events
  ui/crumbs/hobprefs: trigger a reparse after changing IMAGE_FSTYPES

 lib/bb/ui/crumbs/hobprefs.py     |    1 +
 lib/bb/ui/crumbs/runningbuild.py |    4 ++++
 2 files changed, 5 insertions(+), 0 deletions(-)

-- 
1.7.7.4




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

* [PATCH 1/2] ui/crumbs/runningbuild: handle InvalidTask events
  2011-12-13 22:45 [PATCH 0/2] Hob v1 related fixes Joshua Lock
@ 2011-12-13 22:45 ` Joshua Lock
  2011-12-13 22:45 ` [PATCH 2/2] ui/crumbs/hobprefs: trigger a reparse after changing IMAGE_FSTYPES Joshua Lock
  2011-12-20 13:15 ` [PATCH 0/2] Hob v1 related fixes Richard Purdie
  2 siblings, 0 replies; 4+ messages in thread
From: Joshua Lock @ 2011-12-13 22:45 UTC (permalink / raw)
  To: bitbake-devel

The knotty UI just ignores these and so should RunningBuild, if these events
aren't handled the UI appears to hang.

Fixes [YOCTO #1665]

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

diff --git a/lib/bb/ui/crumbs/runningbuild.py b/lib/bb/ui/crumbs/runningbuild.py
index 509590a..4f609fc 100644
--- a/lib/bb/ui/crumbs/runningbuild.py
+++ b/lib/bb/ui/crumbs/runningbuild.py
@@ -179,6 +179,10 @@ class RunningBuild (gobject.GObject):
             # that we need to attach to a task.
             self.tasks_to_iter[(package, task)] = i
 
+        # If we don't handle these the GUI does not proceed
+        elif isinstance(event, bb.build.TaskInvalid):
+            return
+
         elif isinstance(event, bb.build.TaskBase):
             current = self.tasks_to_iter[(package, task)]
             parent = self.tasks_to_iter[(package, None)]
-- 
1.7.7.4




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

* [PATCH 2/2] ui/crumbs/hobprefs: trigger a reparse after changing IMAGE_FSTYPES
  2011-12-13 22:45 [PATCH 0/2] Hob v1 related fixes Joshua Lock
  2011-12-13 22:45 ` [PATCH 1/2] ui/crumbs/runningbuild: handle InvalidTask events Joshua Lock
@ 2011-12-13 22:45 ` Joshua Lock
  2011-12-20 13:15 ` [PATCH 0/2] Hob v1 related fixes Richard Purdie
  2 siblings, 0 replies; 4+ messages in thread
From: Joshua Lock @ 2011-12-13 22:45 UTC (permalink / raw)
  To: bitbake-devel

As reported on the mailing list[1] when changing IMAGE_FSTYPES through the
hob preferences a reparse is required before the changes will be picked up
by the system. This patch sets the reload_required property of the class to
true when the image types have been modified to ensure the reparse is
triggered.

1. https://lists.yoctoproject.org/pipermail/yocto/2011-December/006002.html

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

diff --git a/lib/bb/ui/crumbs/hobprefs.py b/lib/bb/ui/crumbs/hobprefs.py
index 5dfb0e6..3f6f128 100644
--- a/lib/bb/ui/crumbs/hobprefs.py
+++ b/lib/bb/ui/crumbs/hobprefs.py
@@ -39,6 +39,7 @@ class HobPrefs(gtk.Dialog):
             self.selected_image_types = handler.remove_image_output_type(ot)
 
         self.configurator.setConfVar('IMAGE_FSTYPES', "%s" % " ".join(self.selected_image_types).lstrip(" "))
+        self.reload_required = True
 
     def sdk_machine_combo_changed_cb(self, combo, handler):
         sdk_mach = combo.get_active_text()
-- 
1.7.7.4




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

* Re: [PATCH 0/2] Hob v1 related fixes
  2011-12-13 22:45 [PATCH 0/2] Hob v1 related fixes Joshua Lock
  2011-12-13 22:45 ` [PATCH 1/2] ui/crumbs/runningbuild: handle InvalidTask events Joshua Lock
  2011-12-13 22:45 ` [PATCH 2/2] ui/crumbs/hobprefs: trigger a reparse after changing IMAGE_FSTYPES Joshua Lock
@ 2011-12-20 13:15 ` Richard Purdie
  2 siblings, 0 replies; 4+ messages in thread
From: Richard Purdie @ 2011-12-20 13:15 UTC (permalink / raw)
  To: Joshua Lock; +Cc: bitbake-devel

On Tue, 2011-12-13 at 14:45 -0800, Joshua Lock wrote:
> This series works around a couple of issues which I'd like to address for the
> Yocto Edison 1.1.1 release.
> 
> Regards,
> Joshua
> 
> The following changes since commit 71b53a3f0766ca464560a1f6a449f9424fbdf7ae:
> 
>   siggen.py: If both sigs have a variable in it's whitelist then don't say it's changed (2011-12-05 16:17:38 +0000)
> 
> are available in the git repository at:
>   git://github.com/incandescant/bitbake hob
>   https://github.com/incandescant/bitbake/tree/hob
> 
> Joshua Lock (2):
>   ui/crumbs/runningbuild: handle InvalidTask events
>   ui/crumbs/hobprefs: trigger a reparse after changing IMAGE_FSTYPES

Merged to master, thanks.

Richard




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

end of thread, other threads:[~2011-12-20 13:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-13 22:45 [PATCH 0/2] Hob v1 related fixes Joshua Lock
2011-12-13 22:45 ` [PATCH 1/2] ui/crumbs/runningbuild: handle InvalidTask events Joshua Lock
2011-12-13 22:45 ` [PATCH 2/2] ui/crumbs/hobprefs: trigger a reparse after changing IMAGE_FSTYPES Joshua Lock
2011-12-20 13:15 ` [PATCH 0/2] Hob v1 related fixes Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox