mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
lib/classextend: Fix determinism issue
The ordering of dependency variables needs to be deterministic to avoid task checksums changing. Use an OrderedDict to achieve this. (From OE-Core rev: 855a2d21503856af392ab2d54ccfa270505ba142) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
import collections
|
||||||
|
|
||||||
class ClassExtender(object):
|
class ClassExtender(object):
|
||||||
def __init__(self, extname, d):
|
def __init__(self, extname, d):
|
||||||
self.extname = extname
|
self.extname = extname
|
||||||
@@ -77,7 +79,7 @@ class ClassExtender(object):
|
|||||||
self.d.setVar("EXTENDPKGV", orig)
|
self.d.setVar("EXTENDPKGV", orig)
|
||||||
return
|
return
|
||||||
deps = bb.utils.explode_dep_versions2(deps)
|
deps = bb.utils.explode_dep_versions2(deps)
|
||||||
newdeps = {}
|
newdeps = collections.OrderedDict()
|
||||||
for dep in deps:
|
for dep in deps:
|
||||||
newdeps[self.map_depends(dep)] = deps[dep]
|
newdeps[self.map_depends(dep)] = deps[dep]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user