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

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