]> code.ossystems Code Review - openembedded-core.git/commitdiff
lib/oe/package_manager: Improve locale-archive reproducibility
authorAlex Kiernan <alex.kiernan@gmail.com>
Sun, 19 Jan 2020 18:04:27 +0000 (18:04 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 22 Jan 2020 15:56:02 +0000 (15:56 +0000)
The generation of locale-archive depends on the order of the input
files. Fix the order by sorting the file list.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/package_manager.py

index e96c28b46d0d4d96f520d105493177bba511a6ea..2ea8046332af199a0fcf98e6fc10471fff77a88d 100644 (file)
@@ -132,7 +132,7 @@ def generate_locale_archive(d, rootfs, target_arch, localedir):
     env = dict(os.environ)
     env["LOCALEARCHIVE"] = oe.path.join(localedir, "locale-archive")
 
-    for name in os.listdir(localedir):
+    for name in sorted(os.listdir(localedir)):
         path = os.path.join(localedir, name)
         if os.path.isdir(path):
             cmd = ["cross-localedef", "--verbose"]