Bug 406

Summary: SRCREV should work properly from .bb files
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Richard Purdie <richard.purdie>
Component: meta-yoctoAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: Medium CC: jessica.zhang, kevin.tian, poky.bs.watcher, poky.watcher, richard.purdie, sgw
Version: 0.9   
Target Milestone: 1.1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Richard Purdie 2010-10-07 13:58:04 UTC
Currently SRCREV is not safe for use in .bb files and needs to be specified in the global .conf files other wise when bitbake decides which versions to build, the information can be inconsistent. This should be fixed to allow users to set a default revision in the .bb recipe where the information should belong (still allowing the core configuration to override).

As for the technical implementation, when a .bb file is processed by cache.py and the apprpriate data stored, SRCREV should be saved, then when taskdata evaluated providers, this data should be injected into the core dictionary.
Comment 1 Richard Purdie 2011-06-07 07:28:24 UTC
SRCREV is now being correctly handled from .bb files.