<?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>10584</bug_id>
          
          <creation_ts>2016-11-02 15:01:17 +0000</creation_ts>
          <short_desc>rm_work.bbclass: reduce maximum amount of disk space required for a build</short_desc>
          <delta_ts>2017-01-27 12:18:04 +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>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>2.3</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>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.3</target_milestone>
          
          <blocked>10799</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Patrick Ohly">patrick.ohly</reporter>
          <assigned_to name="Patrick Ohly">patrick.ohly</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>67866</commentid>
    <comment_count>0</comment_count>
    <who name="Patrick Ohly">patrick.ohly</who>
    <bug_when>2016-11-02 15:01:17 +0000</bug_when>
    <thetext>rm_work.bbclass is not as efficient as it could be: because do_rm_work runs only after do_build of the current recipe and all recipes it depends on, recipes do not get cleaned as soon as possible. As a result, building OE-core with just 20GB times of disk space fails because required spaces exceeds that temporarily.

With enhancements it is possible to build OE-core with less than 20GB. Proof-of-concept code is in https://github.com/pohly/poky/commits/rmwork

Open question: a clean way of injecting do_rm_work into recipes is needed, which might depend on bitbake enhancements.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>