aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-16 22:53:25 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-16 23:23:58 +0100
commit488f88fc12eea9788e5db1de354f0118e2c58878 (patch)
tree36b8262ffd52da37db064ba8bac2c5c7e1ce222c /meta/classes
parent1181d86e8707c5b8e8d43d5e785d7d9cf01fa491 (diff)
downloadopenembedded-core-contrib-488f88fc12eea9788e5db1de354f0118e2c58878.tar.gz
openembedded-core-contrib-488f88fc12eea9788e5db1de354f0118e2c58878.tar.bz2
openembedded-core-contrib-488f88fc12eea9788e5db1de354f0118e2c58878.zip
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 <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/sstate.bbclass2
1 files changed, 1 insertions, 1 deletions
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 ")