Bug 8022

Summary: Rebuilding with older release causes errors
Product: [Build System, Metadata & Runtime] Toaster Reporter: Mihail Stanciu <stanciux.mihail>
Component: toasterAssignee: Alexandru Damian <alexandru.damian>
Status: VERIFIED DUPLICATE QA Contact: Mihail Stanciu <stanciux.mihail>
Severity: normal    
Priority: Undecided CC: alexandru.damian, belen.barros.pena, cristiana.voicu, jessica.zhang
Version: 1.9   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: Unknown (Hard to categorize)
Verified: Documentation change: Yes (doc changes required)

Description Mihail Stanciu 2015-07-16 11:59:39 UTC
Tested on 1.9 M1 RC2: f9ea480e6c26fea46c3011c4e9d0e2de3d5c81b4

Steps to reproduce:
1. Create new 'yocto master' project
2. build 'core-image-minimal'. wait until build completes.
3. switch to 'fido' release
4. build 'core-image-minimal'

Expected result:
Second build should complete successfully.

Observed result:
Build fails with many(40+) errors similar to:
QA Issue: Package version for package libgcc-dbg went backwards which would break package feeds from (0:4.9.3-r0 to 0:4.9.2-r0) [version-going-backwards]

Looking further into this, the errors are valid and expected under this particular use case.

Suggestions:
Either we need to make Toaster recognize this problem in the future and run the "cleanall" command automatically when it is encountered or add a notification clarifying this case in particular and provide an easy way for users to clean the cache - maybe a "Clear cache" button that runs a "cleanall" command in the background?
Comment 1 Mihail Stanciu 2015-07-16 12:50:16 UTC
Found existing bug 7880 that describes the same underlying issue. Marking as duplicate.

*** This bug has been marked as a duplicate of bug 7880 ***
Comment 2 Mihail Stanciu 2015-07-16 12:51:37 UTC
Verified.