<?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>2283</bug_id>
          
          <creation_ts>2012-04-12 06:31:32 +0000</creation_ts>
          <short_desc>HOB: Hob doesn&apos;t work with rm_work</short_desc>
          <delta_ts>2012-04-18 09:23:12 +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>1.2</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>1.2 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dexuan Cui">dexuan.cui</reporter>
          <assigned_to name="Dongxiao Xu">dongxiao.xu</assigned_to>
          <cc>dexuan.cui</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>jiajun.xu</cc>
    
    <cc>lianhao.lu</cc>
    
    <cc>meta.layer.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
    
    <cc>shane.wang</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>20221</commentid>
    <comment_count>0</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2012-04-12 06:31:32 +0000</bug_when>
    <thetext>In the self-hosted-image case, rm_work itself works when we run bitbake from the command line directly, but it doesn&apos;t work in hob.
This can explain why building a sato image with rm_work enabled in hob still needs 30GB disk space!

I think it&apos;s caused by: INHERIT is not respected in hob.

I can reproduce this bug every time when I run hob. e.g., when I use hob to build  the package acl, we can see: in its WORKDIR, everything is kept there, unremoved.

----

I believe in the normal case,(non-build-appliance case), we have the issue, too.
In this case, I&apos;ll try to give more detailed instructions about how to reproduce the issue later.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20228</commentid>
    <comment_count>1</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2012-04-12 09:53:48 +0000</bug_when>
    <thetext>Below is the way to reproduce the bug on my Ubuntu host:

1) add
INHERIT += &quot;rm_work&quot;
into conf/local.conf

2) bitbake acl -c cleansstate;  bitbake acl; ls  tmp/work/i586-poky-linux/acl-2.2.51-r3/
we see in there are only the following:
acl-2.2.51  package  packages-split  pseudo  temp


3) bitbake acl -c cleansstate; 

4) in hob, choose &quot;Create your own image&quot; , &quot;View recipes&quot; -- choose acl and build the package.

5) now run &quot;ls tmp/work/i586-poky-linux/acl-2.2.51-r3/&quot; and we see
acl-2.2.51  debugsources.list  deploy-ipks  image  license-destdir  package  packages-split  pkgdata  pseudo  relative-libdir.patch  shlibs  sysroot-destdir  temp

This shows rm_work doesn&apos;t work at all in the case of hob.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20253</commentid>
    <comment_count>2</comment_count>
    <who name="Lianhao Lu">lianhao.lu</who>
    <bug_when>2012-04-12 16:58:21 +0000</bug_when>
    <thetext>Dongxiao confirms that INHERIT is respected by hob as long as it is set in the &quot;bitbake.conf configuration file chains&quot;. 

The reason for this bug is that task do_rm_work is added after do_build. But hob only runs do_build task when building packages, so do_rm_work never gets the chance to be executed. 

Hob needs to run the task defined in BB_DEFAULT_TASK to build the packages.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20300</commentid>
    <comment_count>3</comment_count>
    <who name="Shane Wang">shane.wang</who>
    <bug_when>2012-04-13 10:18:31 +0000</bug_when>
    <thetext>Correct its category!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20301</commentid>
    <comment_count>4</comment_count>
    <who name="Shane Wang">shane.wang</who>
    <bug_when>2012-04-13 10:27:30 +0000</bug_when>
    <thetext>Ready at: http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=dxu4/hob-bugfix-temp&amp;id=16c6add2870b9165fe2d25641479cffb8994b2af</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20329</commentid>
    <comment_count>5</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2012-04-13 17:25:37 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; Ready at:
&gt; http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=dxu4/hob-bugfix-temp&amp;id=16c6add2870b9165fe2d25641479cffb8994b2af

We&apos;ll need to fix the MAGE_ROOTFS_EXTRA_SPACE variable(20G is probably enough, but we need to TEST) in meta/recipes-core/images/self-hosted-image.bb once this bug is fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20375</commentid>
    <comment_count>6</comment_count>
    <who name="Dongxiao Xu">dongxiao.xu</who>
    <bug_when>2012-04-14 13:54:50 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=276b86509ba29046828d283f15ae44ae0850d1d0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20630</commentid>
    <comment_count>7</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2012-04-18 09:23:12 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=276b86509ba29046828d283f15ae44ae0850d1d0

By testing building in the guest with the patch applied, I can verify the bug was fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>