mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 13:29:49 +00:00
util-linux: Fix reproducibility
Sort the list of files to ensure the pkgdata output is deterministic. (From OE-Core rev: c6a5c4a72de7590b4ac8f5e1bd4c1e83567ef468) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 3a55194f90e11da5671b24391a4aaf2b86a8e1e6) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
210be5440b
commit
45ef46bb4c
@@ -59,12 +59,13 @@ python util_linux_binpackages () {
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
pkg = os.path.basename(os.readlink(file))
|
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')
|
pn = d.getVar('PN')
|
||||||
for pkg, links in extras.items():
|
for pkg, links in extras.items():
|
||||||
of = d.getVar('FILES_' + pn + '-' + pkg)
|
of = d.getVar('FILES_' + pn + '-' + pkg)
|
||||||
links = of + links
|
links = of + " " + " ".join(sorted(links))
|
||||||
d.setVar('FILES_' + pn + '-' + pkg, links)
|
d.setVar('FILES_' + pn + '-' + pkg, links)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user