Bug 3486

Summary: "/scripts/cleanup-workdir" needs review
Product: [Build System, Metadata & Runtime] BitBake Reporter: Alexandru Georgescu <alexandru.c.georgescu>
Component: bitbakeAssignee: Richard Purdie <richard.purdie>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Undecided CC: poky.bs.watcher, poky.watcher
Version: 1.4   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard: [patch out for review]
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Alexandru Georgescu 2012-11-23 16:00:12 UTC
"/scripts/cleanup-workdir" 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:

"Deleleting /home/me/poky/build/tmp/work/i586-poky-linux/gzip"

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/
Comment 2 Stoicescu Cornel 2012-11-26 14:27:48 UTC
Verified in master: c6dc0b976776b94ba92a7be6d69ac3fe605eff2a