Bug 9138

Summary: Append to a recipe is not deterministic
Product: [Build System, Metadata & Runtime] BitBake Reporter: Daniel Istrate <daniel.alexandrux.istrate>
Component: bitbakeAssignee: Richard Purdie <richard.purdie>
Status: VERIFIED FIXED QA Contact: Alexandru Roman <alexandru.costinx.roman>
Severity: normal    
Priority: Medium+ CC: alexandru.c.georgescu, alexandru.costinx.roman, benjamin.esquivel, poky.bs.watcher, poky.watcher
Version: 2.1   
Target Milestone: 2.1 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: New (Never tested)
Verified: Documentation change: Don't know

Description Daniel Istrate 2016-02-18 15:01:55 UTC
Caught on master: 4e5e501155a21fe64a470c626b3afe6d9748308e

When appending to a recipe you can't predict the order the bbappend files will be applied.


[daniel@fedora-ws recipes-test]$ cat ed3/ed_1.9.bbappend 
SUMMARY += "3"
[daniel@fedora-ws recipes-test]$ cat ed2/ed_1.9.bbappend 
SUMMARY += "2"
[daniel@fedora-ws recipes-test]$ cat ed1/ed_1.9.bbappend 
SUMMARY += "1"
[daniel@fedora-ws recipes-test]$ cat ed/ed_1.9.bbappend 
SUMMARY += "0"
[daniel@fedora-ws recipes-test]$ pwd
/home/daniel/poky/meta-selftest/recipes-test

[daniel@fedora-ws poky-build3]$ bitbake -e ed | grep ^BBFILES=
BBFILES="/home/daniel/poky/meta-selftest/recipes-*/*/*.bb /home/daniel/poky/meta-selftest/recipes-*/*/*.bbappend /home/daniel/poky/meta/recipes-*/*/*.bb /home/daniel/poky/meta-yocto/recipes-*/*/*.bb /home/daniel/poky/meta-yocto/recipes-*/*/*.bbappend /home/daniel/poky/meta-yocto-bsp/recipes-*/*/*.bb /home/daniel/poky/meta-yocto-bsp/recipes-*/*/*.bbappend"

[daniel@fedora-ws recipes-test]$ ls /home/daniel/poky/meta-selftest/recipes-*/*/*.bbappend
/home/daniel/poky/meta-selftest/recipes-test/ed1/ed_1.9.bbappend
/home/daniel/poky/meta-selftest/recipes-test/ed2/ed_1.9.bbappend
/home/daniel/poky/meta-selftest/recipes-test/ed3/ed_1.9.bbappend
/home/daniel/poky/meta-selftest/recipes-test/ed/ed_1.9.bbappend

[daniel@fedora-ws poky-build3]$ bitbake -e ed | grep ^SUMMARY=
SUMMARY="Line-oriented text editor 2 0 3 1"
Comment 2 Alexandru Roman 2016-04-08 08:50:18 UTC
Verified.