]> code.ossystems Code Review - openembedded-core.git/commit
update-alternatives: Fix determinism issue
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 9 May 2016 13:12:16 +0000 (14:12 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 17 May 2016 20:27:58 +0000 (21:27 +0100)
commit438b140050a9040cdfb150bd53ecfd0647ec7d97
tree11e53c2bb7d56c532f1f81603196854e98d52d58
parent6443cdfc963045ff305779f5d2326b1d588c6efe
update-alternatives: Fix determinism issue

getVarFlags returns a dict and there is therefore no sort order. This
means the order of the X_VARDEPS_X variables can change and hence the
task checksums can change. This can lead to rebuilds of any parts of
the system using update-alternatives and their dependees. This is a
particular issue under python v3.

Add in a sort to make the order of the variables deterministic.

(From OE-Core rev: ecd1bfed5534f83b775a6c79092c04bd13c3af0a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/update-alternatives.bbclass