libc-package.bbclass: add MLPREFIX when set values to PACKAGES

There are some places that PACKAGES are dynamically set. To support
multilib, we need to add MLPREFIX before the package name in those
settings.

(From OE-Core rev: 693a4c31c9c071e5af21570107698ec79f709246)

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Dongxiao Xu authored and Richard Purdie committed 2011-09-28 14:58:54 +01:00
1 parent fae0e6c29d
commit 0b4ef8aaf8
1 file changed
+1 -1
+1 -1
View File
@@ -311,7 +311,7 @@ python package_do_split_gconvs () {
raise bb.build.FuncFailed("localedef returned an error")
def output_locale(name, locale, encoding):
pkgname = 'locale-base-' + legitimize_package_name(name)
pkgname = bb.data.getVar('MLPREFIX', d) + 'locale-base-' + legitimize_package_name(name)
bb.data.setVar('ALLOW_EMPTY_%s' % pkgname, '1', d)
bb.data.setVar('PACKAGES', '%s %s' % (pkgname, bb.data.getVar('PACKAGES', d, 1)), d)
rprovides = ' virtual-locale-%s' % legitimize_package_name(name)