mirror of
https://git.yoctoproject.org/poky
synced 2026-05-02 00:32:12 +02:00
native/nativesdk: Ensure DISTRO_FEATURES is determistic
set() order is random and hence the filtered native/nativesdk DISTRO_FEATURES could be set to random ordering. We've been lucky so far this tended not to cause issues but some queued changes highedlighted this. Thrown in a sorted() so the order is deterministic and we get consistent hash checksums between runs and between machines. (From OE-Core rev: 76391673754cf6a01d68eedbd4181e543fa2f427) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -129,7 +129,7 @@ python native_virtclass_handler () {
|
||||
# from modifying native distro features
|
||||
features = set(d.getVar("DISTRO_FEATURES_NATIVE").split())
|
||||
filtered = set(bb.utils.filter("DISTRO_FEATURES", d.getVar("DISTRO_FEATURES_FILTER_NATIVE"), d).split())
|
||||
d.setVar("DISTRO_FEATURES", " ".join(features | filtered))
|
||||
d.setVar("DISTRO_FEATURES", " ".join(sorted(features | filtered)))
|
||||
|
||||
classextend = e.data.getVar('BBCLASSEXTEND') or ""
|
||||
if "native" not in classextend:
|
||||
|
||||
Reference in New Issue
Block a user