Comments
Patch
@@ -221,11 +221,13 @@ python package_do_split_gconvs () {
supported = []
full_bin_path = d.getVar('PKGD', True) + binary_locales_dir
for dir in os.listdir(full_bin_path):
- dbase = dir.split(".")
- d2 = " "
- if len(dbase) > 1:
- d2 = "." + dbase[1].upper() + " "
- supported.append(dbase[0] + d2)
+ elements = dir.split('.', 1)
+ locale = elements[0]
+ if len(elements) > 1:
+ charset = elements[1]
+ else:
+ charset = ''
+ supported.append('%s %s\n' % (locale, charset))
# Collate the locales by base and encoding
utf8_only = int(d.getVar('LOCALE_UTF8_ONLY', True) or 0)
Due to how the 'supported' locales were being generated (added ' ' twice for locales with '.' in them), one could end up with the locale-base packages in your PACKAGES twice, causing packaging problems with eglibc-locale. Signed-off-by: Christopher Larson <kergoth@gmail.com> --- meta/classes/libc-package.bbclass | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-)