Bug 9138 - Append to a recipe is not deterministic
Summary: Append to a recipe is not deterministic
Status: VERIFIED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: 2.1
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.1 M4
Assignee: Richard Purdie
QA Contact: Alexandru Roman
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-02-18 15:01 UTC by Daniel Istrate
Modified: 2016-04-08 08:50 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: New (Never tested)
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.