diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-09-30 01:46:45 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-10-02 23:09:22 +0100 |
commit | 3539c214dd657dce97eb32a1536b051c7cfbe3e2 (patch) | |
tree | 061b45567b95f19b9d8c93bdb0cfef413fcd27d8 /meta | |
parent | 86125379b2a348f5eff1b9731ab1906c466cf0c6 (diff) | |
download | poky-3539c214dd657dce97eb32a1536b051c7cfbe3e2.tar.gz |
util-linux: Fix reproducibility
Sort the list of files to ensure the pkgdata output is deterministic.
(From OE-Core rev: 82e683f8f9ae630dea46ec6be6e636e498579835)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/util-linux/util-linux_2.37.2.bb | 5 |
1 files changed, 3 insertions, 2 deletions
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 () { | |||
37 | continue | 37 | continue |
38 | 38 | ||
39 | pkg = os.path.basename(os.readlink(file)) | 39 | pkg = os.path.basename(os.readlink(file)) |
40 | extras[pkg] = extras.get(pkg, '') + ' ' + file.replace(dvar, '', 1) | 40 | extras.setdefault(pkg, []) |
41 | extras[pkg].append(file.replace(dvar, '', 1)) | ||
41 | 42 | ||
42 | pn = d.getVar('PN') | 43 | pn = d.getVar('PN') |
43 | for pkg, links in extras.items(): | 44 | for pkg, links in extras.items(): |
44 | of = d.getVar('FILES:' + pn + '-' + pkg) | 45 | of = d.getVar('FILES:' + pn + '-' + pkg) |
45 | links = of + links | 46 | links = of + " " + " ".join(sorted(links)) |
46 | d.setVar('FILES:' + pn + '-' + pkg, links) | 47 | d.setVar('FILES:' + pn + '-' + pkg, links) |
47 | } | 48 | } |
48 | 49 | ||