mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
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. (From OE-Core rev: 488f88fc12eea9788e5db1de354f0118e2c58878) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -95,7 +95,7 @@ python () {
|
|||||||
scan_cmd = "grep -Irl ${STAGING_DIR} ${SSTATE_BUILDDIR}"
|
scan_cmd = "grep -Irl ${STAGING_DIR} ${SSTATE_BUILDDIR}"
|
||||||
d.setVar('SSTATE_SCAN_CMD', scan_cmd)
|
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))
|
d.setVar('SSTATETASKS', " ".join(unique_tasks))
|
||||||
for task in unique_tasks:
|
for task in unique_tasks:
|
||||||
d.prependVarFlag(task, 'prefuncs', "sstate_task_prefunc ")
|
d.prependVarFlag(task, 'prefuncs', "sstate_task_prefunc ")
|
||||||
|
|||||||
Reference in New Issue
Block a user