<?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>3486</bug_id>
          
          <creation_ts>2012-11-23 16:00:12 +0000</creation_ts>
          <short_desc>&quot;/scripts/cleanup-workdir&quot; needs review</short_desc>
          <delta_ts>2012-11-26 14:27:48 +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>BitBake</product>
          <component>bitbake</component>
          <version>1.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>[patch out for review]</status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexandru Georgescu">alexandru.c.georgescu</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <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>27657</commentid>
    <comment_count>0</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2012-11-23 16:00:12 +0000</bug_when>
    <thetext>&quot;/scripts/cleanup-workdir&quot; is not working properly due to some apparent changes in /build/tmp/work/ filestructure. The folowing test case fails:

Steps to reproduce:

1. Download poky source and prepare the build environment
2. Run “bitbake gzip” . The gzip 1.4 would be built.
3. Run “bitbake -b ../meta/recipes-extended/gzip/gzip_1.3.12.bb”. The gizp 1.3.12 would be built.
4. Run “../scripts/cleanup-workdir”

Expected results: 

The old version of gizp would be cleanup. Only the latest version would be left in WORKDIR.

Actual results:

Both gzip versions are deleted:

&quot;Deleleting /home/me/poky/build/tmp/work/i586-poky-linux/gzip&quot;

Obs: The gzip versions are structured like this:

/build/tmp/work/i586-poky-linux/gzip/1.5-r0/
/build/tmp/work/i586-poky-linux/gzip/1.3.12-r2/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27664</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-11-25 20:08:16 +0000</bug_when>
    <thetext>Fixed in master http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=0c46dad46b35b88a7138fff90e11344eba33e1a3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27690</commentid>
    <comment_count>2</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2012-11-26 14:27:48 +0000</bug_when>
    <thetext>Verified in master: c6dc0b976776b94ba92a7be6d69ac3fe605eff2a</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>