Bug 964

Summary: "bitbake -c cleanall" doesn't really remove the populated files in sysroot
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Dexuan Cui <dexuan.cui>
Component: coreAssignee: Dexuan Cui <dexuan.cui>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: meta.mr.watcher, meta.watcher, sgw
Version: unspecified   
Target Milestone: 1.1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Dexuan Cui 2011-04-08 02:08:32 UTC
I'm using the latest git master commit e5a40cd6f8c6a8c3d40cbaf29bffe5e201056dad and found the issue:

After "bitbake file-native", 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 "bitbake -c cleanall file-native", 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 <martin.jansa@gmail.com>
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 'sstate_task_postfunc' 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 '1'

      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 <Martin.Jansa@gmail.com>
    Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Comment 3 Saul Wold 2011-04-08 15:09:07 UTC
See previous comment