Bug 1285

Summary: User could not build other package/image after one build finished
Product: [Build System, Metadata & Runtime] Hob Reporter: Jiajun Xu <jiajun.xu>
Component: hobAssignee: Jessica <jessica.zhang>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: david.c.stewart, jessica.zhang, jiajun.xu, josh, lianhao.lu, liping.ke, poky.bs.watcher, poky.watcher
Version: unspecified   
Target Milestone: 1.1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Bug Depends on: 1332    
Bug Blocks:    
Attachments:
Description Flags
Richard's patch to aide debugging of reparseFiles none

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