Bug 1938

Summary: Detect Host system changes when using sstate
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Richard Purdie <richard.purdie>
Component: meta-yoctoAssignee: Richard Purdie <richard.purdie>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: Medium CC: corneliux.stoicescu, poky.bs.watcher, poky.watcher, song.liu
Version: unspecified   
Target Milestone: 1.3 M3   
Hardware: x86   
OS: Multiple   
Whiteboard: (P1)(Scheduled) Patches out for review
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Richard Purdie 2012-01-27 02:25:59 UTC
If sstate packages are build on a system with a specific glibc version, there should be some way to detect when they're installed on an older system and at least flag the packages as invalid.

Running against newer glibc shouldn't be an issues, its just a question on detecting and invalidating running on older glibc than the package was built for.
Comment 1 Richard Purdie 2012-07-26 13:20:56 UTC
For now, the best approach is going to be to mark sstate packages as being built against a given lsb_release name/version.

There are patches our for review which do this.
Comment 3 Stoicescu Cornel 2012-10-05 11:04:23 UTC
Verified in master, commit: ef5dcad3e3e3c004112cfc00843727a7fda75cd2

Changing distros will cause bitbake to make a new directory in sstate-chache with distro name and version in which to store its native and cross packages.

Example: 
/build/sstate-cache/Ubuntu-12.04/*/sstate-*-native-*.tgz
/build/sstate-cache/Ubuntu-12.04/*/sstate-*-cross-*.tgz