]> code.ossystems Code Review - openembedded-core.git/commitdiff
package: Improve determinism
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 29 Jul 2019 11:37:02 +0000 (13:37 +0200)
committerArmin Kuster <akuster808@gmail.com>
Wed, 4 Sep 2019 15:21:39 +0000 (08:21 -0700)
Its possible in cases with multiple shlib providers we were not being
deterministic. Add in a couple of sorted() calls to fix the shlibs and
pkgconfig cases with this potential issue.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/classes/package.bbclass
meta/lib/oe/package.py

index eef1f7b945dcd16aca266ebb21081ba5cf89425a..2c44fc1f0d4a802ef0613f09c3b80388c625c51e 100644 (file)
@@ -1918,7 +1918,7 @@ python package_do_pkgconfig () {
     for dir in reversed(shlibs_dirs):
         if not os.path.exists(dir):
             continue
-        for file in os.listdir(dir):
+        for file in sorted(os.listdir(dir)):
             m = re.match(r'^(.*)\.pclist$', file)
             if m:
                 pkg = m.group(1)
index b59513227baa0ea6a12ffabe9352469718e38244..b8585d4253fe72823f24e5416144a9c48c595755 100644 (file)
@@ -265,7 +265,7 @@ def read_shlib_providers(d):
         bb.debug(2, "Reading shlib providers in %s" % (dir))
         if not os.path.exists(dir):
             continue
-        for file in os.listdir(dir):
+        for file in sorted(os.listdir(dir)):
             m = list_re.match(file)
             if m:
                 dep_pkg = m.group(1)