<?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>964</bug_id>
          
          <creation_ts>2011-04-08 02:08:32 +0000</creation_ts>
          <short_desc>&quot;bitbake -c cleanall&quot; doesn&apos;t really remove the populated files in sysroot</short_desc>
          <delta_ts>2011-05-13 10:57:42 +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>core</component>
          <version>unspecified</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></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dexuan Cui">dexuan.cui</reporter>
          <assigned_to name="Dexuan Cui">dexuan.cui</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</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>13176</commentid>
    <comment_count>0</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2011-04-08 02:08:32 +0000</bug_when>
    <thetext>I&apos;m using the latest git master commit e5a40cd6f8c6a8c3d40cbaf29bffe5e201056dad and found the issue:

After &quot;bitbake file-native&quot;, we can see the list of the populated files in
tmp/sstate-control/manifest-i686-file-native.populate-sysroot
e.g., a populated file is
tmp/sysroots/i686-linux/usr/lib/libmagic.so

Later, after doing &quot;bitbake -c cleanall file-native&quot;, I found the file
tmp/sysroots/i686-linux/usr/lib/libmagic.so
was not really removed!

This looks be caused by a recent commit that breaks an assumption of the order between SSTATETASKS and SSTATETASKNAMES.

commit 25a6e5f98cea5ee3f79ad0e444572997ae736e8f
Author: Martin Jansa &lt;martin.jansa@gmail.com&gt;
Date:   Thu Mar 24 00:05:40 2011 +0100

    sstate: use only unique set of SSTATETASK

    * otherwise strange error like this:
      ERROR: Logfile of failure stored in: /OE/shr-core/tmp/work/armv7a-oe-linux-gnueabi/libtool-cross-2.4-r1/temp/log.do_package_write_ipk.25551
      Log data follows:
      | ERROR: Package already staged (/OE/shr-core/tmp/sstate-control/manifest-nokia900-libtool-cross.deploy-ipk)?!
      | ERROR: Function &apos;sstate_task_postfunc&apos; failed
      NOTE: package libtool-cross-2.4-r1: task do_package_write_ipk: Failed
      ERROR: Task 11 (/OE/shr-core/openembedded-core/meta/recipes-devtools/libtool/libtool-cross_2.4.bb, do_package_write_ipk) failed with exit code &apos;1&apos;

      is shown in this case with package_ipk twice in INHERIT

    * Thanks to Richard for fix

    (From OE-Core rev: f2fe5e840b8aa0558b5462ef2c7517b2f14ec2ea)

    Signed-off-by: Martin Jansa &lt;Martin.Jansa@gmail.com&gt;
    Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13178</commentid>
    <comment_count>1</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2011-04-08 02:40:32 +0000</bug_when>
    <thetext>I made a fix and will push it out:
http://git.pokylinux.org/cgit/cgit.cgi/poky-contrib/commit/?h=dcui/master&amp;id=b6d33e1f27bd58e28ff710ca0cabdc02d7a28eb5</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13183</commentid>
    <comment_count>2</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-04-08 14:45:24 +0000</bug_when>
    <thetext>http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=7ddc746e5af70b4a96e7f49e82cb7520cf89d331</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13189</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-04-08 15:09:07 +0000</bug_when>
    <thetext>See previous comment</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13193</commentid>
    <comment_count>4</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2011-04-10 22:30:16 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=7ddc746e5af70b4a96e7f49e82cb7520cf89d331

VERIFY the bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13805</commentid>
    <comment_count>5</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-05-13 10:57:42 +0000</bug_when>
    <thetext>Bernard:

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

    </bug>

</bugzilla>