Skip to contentSkip to conversation

package.bbclass: Sort shlib2 output for hash equivalency

PATCH New Mark Hatle 1 participant 1 message Aug 19, 2020

lore
Share & tools
lore

Mark Hatle

author
#0 lore raw

PATCH 1/1 package.bbclass: Sort shlib2 output for hash equivalency

The output was unsorted, so different versions of python, different input ordering could have have changed the files, and thus changed the hashes making the system think the output was different, even when unmodified.

---
 meta/classes/package.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/package.bbclass +1 -1
index f8dc1bb468..7a36262eb6 100644
@@ -1936,7 +1936,7 @@ python package_do_shlibs() {
         shlibs_file = os.path.join(shlibswork_dir, pkg + ".list")
         if len(sonames):
             with open(shlibs_file, 'w') as fd:
-                for s in sonames:
+                for s in sorted(sonames):
                     if s[0] in shlib_provider and s[1] in shlib_provider[s[0]]:
                         (old_pkg, old_pkgver) = shlib_provider[s[0]][s[1]]
                         if old_pkg != pkg:
Signature · 1 line
2.17.1