<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>1468</bug_id>
          
          <creation_ts>2011-09-09 13:39:01 +0000</creation_ts>
          <short_desc>Various kinds of hob errors reported on command line when using hob build multi-times/interact with customized .bb file</short_desc>
          <delta_ts>2011-09-13 14:04:56 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Hob</product>
          <component>hob</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>1.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jessica">jessica.zhang</reporter>
          <assigned_to name="Joshua Lock - Disabled">josh</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>jiajun.xu</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>16127</commentid>
    <comment_count>0</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2011-09-09 13:39:01 +0000</bug_when>
    <thetext>.  In a nutshell, it involved try using HOB to rebuild many times and add a package, save the customized .bb file, reload it and rebuild.  You can play with the following scenarios:

1. pick core-minimal-image, bake, then back bake again, after repeating several times, I&apos;m seeing the following print from the command line:

Traceback (most recent call last):
  File &quot;/home/jzhang/YBC/bitbake/lib/bb/ui/hob.py&quot;, line 468, in bake_clicked_cb
    self.handler.build_image(image_name, self.configurator)
  File &quot;/home/jzhang/YBC/bitbake/lib/bb/ui/crumbs/hobeventhandler.py&quot;, line 259, in build_image
    if self.image_dir in bbpath.split(&quot;:&quot;):
AttributeError: &apos;bool&apos; object has no attribute &apos;split&apos;

I put print statement, seems somewhere along the way BBPATH value will be changed to &quot;True&quot;.  But once you hit this error, if you keep click on &quot;Bake&quot; eventually the correct BBPATH will be restored and you can do another build...

2. I add acl-dbg into my core-image-minimal, save the customization, then restart hob, I see following 2 issues:
a.  Even though after reload the customized .bb file, I see core-image-minimal is selected, when I hit bake, it&apos;ll complain empty image
b.  After I do reset then build, I&apos;m starting to see the following from cml:
Traceback (most recent call last):
  File &quot;/home/jzhang/YBC/bitbake/lib/bb/ui/hob.py&quot;, line 498, in build_complete_cb
    os.remove(f)
OSError: [Errno 2] No such file or directory: &apos;/tmp/hob-images/hob-core-image-minimal-variant-2011-09-08.bb&apos;

3. After seeing the above issues, when I start hob, it&apos;ll complain on the cml that parser can&apos;t parse BBFILES value since there&apos;re self reference, and I&apos;ve noticed this is due to more following entries got into hob-post file:
BBFILES := &quot;${BBFILES} /tmp/hob-images/*.bb&quot;
And with following patch :

diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/cru
index 66dffac..de5fea0 100644
--- a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
+++ b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
@@ -277,7 +277,7 @@ class HobHandler(gobject.GObject):
         else:
             nbbf = None
 
-        if not bbfiles_ok or not bbpath_ok:
+        if not bbfiles_ok and not bbpath_ok:
             configurator.insertTempBBPath(nbbp, nbbf)

Again, all the problem will start showing after you use hob for several iterations</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16147</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2011-09-13 14:04:56 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=3d09687196ec8596afad6b04bc5ff7efb594eaa7

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=58570ec6a57b7e50e72066dc8f459ba9279d1752

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=684a7c655ba002bb657f93b4976625adde6ba3f7

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=826a53adf65aaf709383b8b8caed7b99d20f8909</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>