From: Richard Purdie Date: Mon, 16 May 2016 21:53:25 +0000 (+0100) Subject: sstate: Ensure we sort the value used for SSTATETASKS for determinism X-Git-Tag: uninative-1.3~1124 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=488f88fc12eea9788e5db1de354f0118e2c58878;p=openembedded-core.git sstate: Ensure we sort the value used for SSTATETASKS for determinism This avoids 'basehash changed' errors with python 3 but could break build determinism in general. Signed-off-by: Richard Purdie --- diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass index 8c623271ad..22ce1ee9ef 100644 --- a/meta/classes/sstate.bbclass +++ b/meta/classes/sstate.bbclass @@ -95,7 +95,7 @@ python () { scan_cmd = "grep -Irl ${STAGING_DIR} ${SSTATE_BUILDDIR}" d.setVar('SSTATE_SCAN_CMD', scan_cmd) - unique_tasks = set((d.getVar('SSTATETASKS', True) or "").split()) + unique_tasks = sorted(set((d.getVar('SSTATETASKS', True) or "").split())) d.setVar('SSTATETASKS', " ".join(unique_tasks)) for task in unique_tasks: d.prependVarFlag(task, 'prefuncs', "sstate_task_prefunc ")