]> code.ossystems Code Review - openembedded-core.git/commit
opkg-utils: Fix reproducibility issues in opkg-build
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 3 Feb 2020 20:39:14 +0000 (20:39 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 11 Feb 2020 23:04:29 +0000 (23:04 +0000)
commitff31fa7ae18cffb1618c3859c5dff7eb3c587692
tree802bfa51b148f82fd31fd007c2e4f7e50c225fec
parent428c8a3887c86ea882b264fdad606612b9d9eb8e
opkg-utils: Fix reproducibility issues in opkg-build

There is a sorting problem with opkg-build where the ipk generated is depending
upon the order of files on disk. The reason is the --sort option to tar only
influences the orders of files tar reads, not those passed by the -T option.

Add in a sort call to resolve this issue. To ensure consistent sorting we
also need to force to a specific locale (C) else the results are still not
deterministic.

(From OE-Core rev: a9b8287984c63420e10329a69f7ac5125f1687f8)

(From OE-Core rev: b577a6d923042cfc04e67d470e0987488ea61412)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/recipes-devtools/opkg-utils/opkg-utils/fix-reproducibility.patch [new file with mode: 0644]
meta/recipes-devtools/opkg-utils/opkg-utils_0.4.2.bb