Bug 4044 - Clean obsolete sstate cache files script does not work
Summary: Clean obsolete sstate cache files script does not work
Status: RESOLVED INVALID
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: 1.4
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-03-18 11:33 UTC by Stoicescu Cornel
Modified: 2013-03-18 11:39 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.