diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-09 14:13:44 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-17 21:29:30 +0100 |
| commit | 22f8a46d2dcbeaaa4e93bb5ba97acf8c9c3f9524 (patch) | |
| tree | 09cf572fc0472c9c8853d688e9e7a0f92812ff99 /meta/lib | |
| parent | cc2522771e39d57e3b773c0d91b41a797044aa79 (diff) | |
| download | poky-22f8a46d2dcbeaaa4e93bb5ba97acf8c9c3f9524.tar.gz | |
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)
(From OE-Core rev: a89e4e27ba3f4bc3d1c649b3b8ad8ddc4d227d0d)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
| -rw-r--r-- | meta/lib/oe/classextend.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/lib/oe/classextend.py b/meta/lib/oe/classextend.py index 5107ecde26..4c8a00070c 100644 --- a/meta/lib/oe/classextend.py +++ b/meta/lib/oe/classextend.py | |||
| @@ -1,3 +1,5 @@ | |||
| 1 | import collections | ||
| 2 | |||
| 1 | class ClassExtender(object): | 3 | class ClassExtender(object): |
| 2 | def __init__(self, extname, d): | 4 | def __init__(self, extname, d): |
| 3 | self.extname = extname | 5 | self.extname = extname |
| @@ -77,7 +79,7 @@ class ClassExtender(object): | |||
| 77 | self.d.setVar("EXTENDPKGV", orig) | 79 | self.d.setVar("EXTENDPKGV", orig) |
| 78 | return | 80 | return |
| 79 | deps = bb.utils.explode_dep_versions2(deps) | 81 | deps = bb.utils.explode_dep_versions2(deps) |
| 80 | newdeps = {} | 82 | newdeps = collections.OrderedDict() |
| 81 | for dep in deps: | 83 | for dep in deps: |
| 82 | newdeps[self.map_depends(dep)] = deps[dep] | 84 | newdeps[self.map_depends(dep)] = deps[dep] |
| 83 | 85 | ||
