Bug 4044

Summary: Clean obsolete sstate cache files script does not work
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Stoicescu Cornel <corneliux.stoicescu>
Component: meta-yoctoAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Undecided CC: poky.bs.watcher, poky.watcher
Version: 1.4   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Stoicescu Cornel 2013-03-18 11:33:25 UTC
STATUS: FAILED
BUILD: master:4da406cd50cf02a63ed76810a670aba1eb561c79
ENVIRONMENT: Ubuntu 12.04 x86-64
STEPS TO REPRODUCE: Check if the script could clean the obsolete sstate cache files

1. Download poky source and prepare the build environment. 
2. Follow the wiki steps to setup a sstate cache on local machine, 
https://wiki.yoctoproject.org/wiki/Enable_sstate_cache 
3. Run "bitbake core-image-minimal" to build a image. 
4. Set MACHINE to another architecture. Run "bitbake core-image-minimal" to build a image. 
5. Run script ../scripts/sstate-cache-management.sh --cache-dir=sstate-cache --remove-duplicated and check the ouput.


EXPECTED OUTCOME: The obsolete sstate cache files should be removed.

ACTUAL OUTCOME: After building core-image-minimal for qemux86-64 and qemuarm:

[cornel@NODE3 build]$ ../scripts/sstate-cache-management.sh --cache-dir=sstate-cache --remove-duplicated
Figuring out the archs in the layers ... Done
Figuring out the suffixes in the sstate cache dir ... Done
The following suffixes have been found in the cache dir:
deploy deploy-rpm package packagedata populate-lic populate-sysroot
Figuring out the archs in the sstate cache dir ... Done
The following archs have been found in the cache dir:
armv5te qemuarm qemux86_64 x86_64

Figuring out the sstate-xxx_deploy.tgz ... (0 files will be removed)
Figuring out the sstate-xxx_deploy-rpm.tgz ... (0 files will be removed)
Figuring out the sstate-xxx_package.tgz ... (0 files will be removed)
Figuring out the sstate-xxx_packagedata.tgz ... (0 files will be removed)
Figuring out the sstate-xxx_populate-lic.tgz ... (0 files will be removed)
Figuring out the sstate-xxx_populate-sysroot.tgz ... (0 files will be removed)
No files to remove
Comment 1 Stoicescu Cornel 2013-03-18 11:39:20 UTC
According to bug 3635 this bug is invalid. Test case needs update.

Closing as invalid.