Patchwork [CONSOLIDATED,PULL,25/29] libc-package.bbclass: add MLPREFIX when set values to PACKAGES

login
register
mail settings
Submitter Saul Wold
Date Sept. 28, 2011, 7:06 a.m.
Message ID <3025516f871e23f353f095b75408b0f057ad7a1e.1317193251.git.sgw@linux.intel.com>
Download mbox | patch
Permalink /patch/12293/
State New, archived
Headers show

Comments

Saul Wold - Sept. 28, 2011, 7:06 a.m.
From: Dongxiao Xu <dongxiao.xu@intel.com>

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

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
---
 meta/classes/libc-package.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/meta/classes/libc-package.bbclass b/meta/classes/libc-package.bbclass
index 9d32844..71a577b 100644
--- a/meta/classes/libc-package.bbclass
+++ b/meta/classes/libc-package.bbclass
@@ -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)