Bug 3486 - "/scripts/cleanup-workdir" needs review
Summary: "/scripts/cleanup-workdir" needs review
Status: VERIFIED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: 1.4
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard: [patch out for review]
Depends on:
Blocks:
 
Reported: 2012-11-23 16:00 UTC by Alexandru Georgescu
Modified: 2012-11-26 14:27 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 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