Bug 1285 - User could not build other package/image after one build finished
Summary: User could not build other package/image after one build finished
Status: RESOLVED FIXED
Alias: None
Product: Hob
Classification: Build System, Metadata & Runtime
Component: hob (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.1
Assignee: Jessica
QA Contact:
URL:
Whiteboard:
: 1312 (view as bug list)
Depends on: 1332
Blocks:
  Show dependency tree
 
Reported: 2011-07-24 08:51 UTC by Jiajun Xu
Modified: 2011-09-06 08:04 UTC (History)
8 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments
Richard's patch to aide debugging of reparseFiles (3.71 KB, patch)
2011-08-04 15:44 UTC, Joshua Lock - Disabled
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jiajun Xu 2011-07-24 08:51:08 UTC
Tree/Branch: 1.1_M2
Commit: a62982ffb6b35acc70bb30a429fc854cf9a8873f

With 1.1 M2 branch, if we select some packages or image and build them finished. There is no chance for user to build some others. User has to exit/re-launch hob to build other task.
Comment 1 Jessica 2011-07-24 20:02:32 UTC
In the build window, it says "Build started" by choosing stop build or even force stop has no effect as well
Comment 2 Jessica 2011-07-26 22:53:52 UTC
From cooker.log,  I found the 2nd build is blocked by:


pseudo: You must set the PSEUDO_PREFIX environment variable to run pseudo.
pseudo: You must set the PSEUDO_PREFIX environment variable to run pseudo.
pseudo: You must set the PSEUDO_PREFIX environment variable to run pseudo.
pseudo: You must set the PSEUDO_PREFIX environment variable to run pseudo.
pseudo: You must set the PSEUDO_PREFIX environment variable to run pseudo.
pseudo: You must set the PSEUDO_PREFIX environment variable to run pseudo.
pseudo: You must set the PSEUDO_PREFIX environment variable to run pseudo.
pseudo: You must set the PSEUDO_PREFIX environment variable to run pseudo.

and as far as cooker and runqueue state, they're both in running state, so that shouldn't be the issue
Comment 3 Jessica 2011-08-01 17:11:37 UTC
*** Bug 1312 has been marked as a duplicate of this bug. ***
Comment 4 Joshua Lock - Disabled 2011-08-04 15:29:04 UTC
Richard help diagnose that at least a part of this is that we need to rewire event handling from runningbuild to hobeventhandler when the build completes. 

joshual@vorpal:~/Projects/Yocto/bitbake[hob☠]
$ git diff
diff --git a/lib/bb/ui/hob.py b/lib/bb/ui/hob.py
index b5c2342..8af7740 100644
--- a/lib/bb/ui/hob.py
+++ b/lib/bb/ui/hob.py
@@ -446,6 +446,7 @@ class MainWindow (gtk.Window):
         self.nb.set_current_page(0)
 
     def build_complete_cb(self, running_build):
+        self.handler.building = None
         self.stopping = False
         self.back.connect("clicked", self.back_button_clicked_cb)
         self.back.set_sensitive(True)
Comment 5 Joshua Lock - Disabled 2011-08-04 15:43:20 UTC
The above patch in comment 4 has been submitted for inclusion.
Comment 6 Joshua Lock - Disabled 2011-08-04 15:44:11 UTC
Created attachment 201 [details]
Richard's patch to aide debugging of reparseFiles

Adding Richard's patch which he used to debug reparseFiles, may be useful as we work on this issue.
Comment 7 Joshua Lock - Disabled 2011-09-06 08:04:20 UTC
Fixed by the patch for bug 1332