* [PATCH] sstate: Ensure we sort the value used for SSTATETASKS for determinism
@ 2016-05-16 21:53 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2016-05-16 21:53 UTC (permalink / raw)
To: openembedded-core
This avoids 'basehash changed' errors with python 3 but could break
build determinism in general.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 6491bad..5fca0ea 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 ")
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-05-16 21:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-16 21:53 [PATCH] sstate: Ensure we sort the value used for SSTATETASKS for determinism Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox