]> code.ossystems Code Review - openembedded-core.git/commit
image: Fix IMAGE_FEATURES determinism issue
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 9 May 2016 13:09:37 +0000 (14:09 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 17 May 2016 20:27:44 +0000 (21:27 +0100)
commit6443cdfc963045ff305779f5d2326b1d588c6efe
treef700ea9ba5b158f4ce4cab03f2e79cff13a38e93
parent73daaa207754e48efef59b516ad5601129cf4bac
image: Fix IMAGE_FEATURES determinism issue

remain_features uses a dict which means the order is not deterministic. This
can lead to the task hash changing depending on the state of the memory at
parse time. This is particularly noticeable under python v3.

Since the dict is helpful in constructing the data, pass the data through
sort() so the order is always deterministic.

(From OE-Core rev: b08344e28dd33e3af5596007b11185d04fce255e)

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/image.bbclass