]> 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>
Wed, 11 May 2016 09:08:30 +0000 (10:08 +0100)
commitecd1bfed5534f83b775a6c79092c04bd13c3af0a
tree7deff86d03ba49440c3d59314bd14d73bae86ce8
parentb08344e28dd33e3af5596007b11185d04fce255e
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.

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