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: 98d356a9f788291c849be7b51fcd8ad07a8a066e)

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-10-04 13:59:30 +01:00
1 parent f282b7a027
commit 5687f68f3e
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)