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

git at git.openembedded.org git at git.openembedded.org
Mon May 9 22:49:37 UTC 2016


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

commit 159cd9b2b7e6cf931660a0cde5be786db592c88a
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.
    
    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