From: Richard Purdie Date: Thu, 30 Sep 2021 00:46:45 +0000 (+0100) Subject: util-linux: Fix reproducibility X-Git-Tag: yocto-3.4~35 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=82e683f8f9ae630dea46ec6be6e636e498579835;p=openembedded-core.git util-linux: Fix reproducibility Sort the list of files to ensure the pkgdata output is deterministic. Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-core/util-linux/util-linux_2.37.2.bb b/meta/recipes-core/util-linux/util-linux_2.37.2.bb index 6f2808cc44..d609c30067 100644 --- a/meta/recipes-core/util-linux/util-linux_2.37.2.bb +++ b/meta/recipes-core/util-linux/util-linux_2.37.2.bb @@ -37,12 +37,13 @@ python util_linux_binpackages () { continue pkg = os.path.basename(os.readlink(file)) - extras[pkg] = extras.get(pkg, '') + ' ' + file.replace(dvar, '', 1) + extras.setdefault(pkg, []) + extras[pkg].append(file.replace(dvar, '', 1)) pn = d.getVar('PN') for pkg, links in extras.items(): of = d.getVar('FILES:' + pn + '-' + pkg) - links = of + links + links = of + " " + " ".join(sorted(links)) d.setVar('FILES:' + pn + '-' + pkg, links) }