]> code.ossystems Code Review - openembedded-core.git/commitdiff
libc-package: ensure glibc-locale package list is deterministic
authorRoss Burton <ross.burton@intel.com>
Mon, 13 Jun 2016 13:56:08 +0000 (14:56 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 14 Jun 2016 11:56:32 +0000 (12:56 +0100)
If all locales are being generated then the list used is the keys from a
dictionary.  In Python 3.4 onwards the ordering of a dictionary changes for
every instance, so sort the key list.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/libc-package.bbclass

index 70f479bb41c9a00c951a6ce8a69f379971cbf3da..4f321d4865f6df68d3e723eeac9e10b39a96a3cb 100644 (file)
@@ -226,7 +226,7 @@ python package_do_split_gconvs () {
     # GLIBC_GENERATE_LOCALES var specifies which locales to be generated. empty or "all" means all locales
     to_generate = d.getVar('GLIBC_GENERATE_LOCALES', True)
     if not to_generate or to_generate == 'all':
-        to_generate = supported.keys()
+        to_generate = sorted(supported.keys())
     else:
         to_generate = to_generate.split()
         for locale in to_generate:
@@ -391,4 +391,3 @@ python package_do_split_gconvs () {
 python populate_packages_prepend () {
     bb.build.exec_func('package_do_split_gconvs', d)
 }
-