diff options
author | Koen Kooi <koen@dominion.thruhere.net> | 2011-08-24 20:32:00 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-08-24 19:23:42 -0700 |
commit | 4c2baa237f925543ae5c87009ca74d75529e51a6 (patch) | |
tree | a61c7ad812ab70b2a34c6511a8490a51acfb317a /meta/classes/libc-package.bbclass | |
parent | a097c26ca06ca345ee37e13e558dca38dadc09ad (diff) | |
download | poky-4c2baa237f925543ae5c87009ca74d75529e51a6.tar.gz |
libc-package bbclass: fix binary localedata dependency code
When using binary locales rootfs generation fails with:
| Unknown package 'locale-base-en-us'.
| Collected errors:
| * opkg_install_cmd: Cannot install package locale-base-en-us.
This is due to:
$ dpkg-deb -I ipk/armv7a/locale-base-en-us_2.12-r16_armv7a.ipk | grep Depends
Depends: eglibc-binary-localedata-en.us
Note the '.' seperator
$ ls ipk/armv7a/ | grep binary-localedata-en | grep us
eglibc-binary-localedata-en-us_2.12-r16_armv7a.ipk
Note the '-' seperator vs the '.' in the locale-base packages.
(From OE-Core rev: 19fb07bf337e1d724798e2eb4479c35fc45b1941)
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/libc-package.bbclass')
-rw-r--r-- | meta/classes/libc-package.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/libc-package.bbclass b/meta/classes/libc-package.bbclass index 0d5ce20fe5..d3b33d6c5c 100644 --- a/meta/classes/libc-package.bbclass +++ b/meta/classes/libc-package.bbclass | |||
@@ -243,7 +243,7 @@ python package_do_split_gconvs () { | |||
243 | def output_locale_binary_rdepends(name, pkgname, locale, encoding): | 243 | def output_locale_binary_rdepends(name, pkgname, locale, encoding): |
244 | m = re.match("(.*)_(.*)", name) | 244 | m = re.match("(.*)_(.*)", name) |
245 | if m: | 245 | if m: |
246 | libc_name = "%s.%s" % (m.group(1), m.group(2).lower().replace("-","")) | 246 | libc_name = "%s-%s" % (m.group(1), m.group(2).lower().replace("-","")) |
247 | else: | 247 | else: |
248 | libc_name = name | 248 | libc_name = name |
249 | bb.data.setVar('RDEPENDS_%s' % pkgname, legitimize_package_name('%s-binary-localedata-%s' \ | 249 | bb.data.setVar('RDEPENDS_%s' % pkgname, legitimize_package_name('%s-binary-localedata-%s' \ |