[oe-commits] [openembedded-core] 04/06: lib/classextend: Fix determinism issue

git at git.openembedded.org git at git.openembedded.org
Tue May 17 22:22:51 UTC 2016


rpurdie pushed a commit to branch krogoth
in repository openembedded-core.

commit a89e4e27ba3f4bc3d1c649b3b8ad8ddc4d227d0d
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Mon May 9 14:13:44 2016 +0100

    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 at linuxfoundation.org>
    Signed-off-by: Armin Kuster <akuster808 at gmail.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/lib/oe/classextend.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/lib/oe/classextend.py b/meta/lib/oe/classextend.py
index 5107ecd..4c8a000 100644
--- a/meta/lib/oe/classextend.py
+++ b/meta/lib/oe/classextend.py
@@ -1,3 +1,5 @@
+import collections
+
 class ClassExtender(object):
     def __init__(self, extname, d):
         self.extname = extname
@@ -77,7 +79,7 @@ class ClassExtender(object):
             self.d.setVar("EXTENDPKGV", orig)
             return
         deps = bb.utils.explode_dep_versions2(deps)
-        newdeps = {}
+        newdeps = collections.OrderedDict()
         for dep in deps:
             newdeps[self.map_depends(dep)] = deps[dep]
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list