Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH V2 0/1] Removing hard coded libdir for libc locale generating
@ 2011-06-23 13:43 Lianhao Lu
  2011-06-23 13:43 ` [PATCH V2 1/1] libc-package.bbclass: Replace hard coded libdir Lianhao Lu
  2011-06-28 11:09 ` [PATCH V2 0/1] Removing hard coded libdir for libc locale generating Richard Purdie
  0 siblings, 2 replies; 3+ messages in thread
From: Lianhao Lu @ 2011-06-23 13:43 UTC (permalink / raw)
  To: openembedded-core

V2:

Use base_libdir instead of libdir for ldlibdir.
----------------------------------------------------
V1:
The patch replaces the hard coded libdir in package_do_split_gconvs() in libc-package.bbclass to meet the requirement of multilib.

The following changes since commit b04ee632eb06650dde3e3ee8c4788a45cae0aa5e:
  Richard Purdie (1):
        multilib: First pass from RP

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib llu/ml
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=llu/ml

Lianhao Lu (1):
  libc-package.bbclass: Replace hard coded libdir.

 meta/classes/libc-package.bbclass |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)




^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH V2 1/1] libc-package.bbclass: Replace hard coded libdir.
  2011-06-23 13:43 [PATCH V2 0/1] Removing hard coded libdir for libc locale generating Lianhao Lu
@ 2011-06-23 13:43 ` Lianhao Lu
  2011-06-28 11:09 ` [PATCH V2 0/1] Removing hard coded libdir for libc locale generating Richard Purdie
  1 sibling, 0 replies; 3+ messages in thread
From: Lianhao Lu @ 2011-06-23 13:43 UTC (permalink / raw)
  To: openembedded-core

Replace the hard coded libdir for locale generating to meet the multilib
requirement.

Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
---
 meta/classes/libc-package.bbclass |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/meta/classes/libc-package.bbclass b/meta/classes/libc-package.bbclass
index 55e3d48..5db46ce 100644
--- a/meta/classes/libc-package.bbclass
+++ b/meta/classes/libc-package.bbclass
@@ -277,10 +277,11 @@ python package_do_split_gconvs () {
 
 	def output_locale_binary(name, pkgname, locale, encoding):
 		treedir = base_path_join(bb.data.getVar("WORKDIR", d, 1), "locale-tree")
-		ldlibdir = "%s/lib" % treedir
+		ldlibdir = base_path_join(treedir, bb.data.getVar("base_libdir", d, 1))
 		path = bb.data.getVar("PATH", d, 1)
 		i18npath = base_path_join(treedir, datadir, "i18n")
 		gconvpath = base_path_join(treedir, "iconvdata")
+		outputpath = base_path_join(treedir, libdir, "locale")
 
 		use_cross_localedef = bb.data.getVar("LOCALE_GENERATION_WITH_CROSS-LOCALEDEF", d, 1) or "0"
 		if use_cross_localedef == "1":
@@ -300,8 +301,8 @@ python package_do_split_gconvs () {
 				raise bb.build.FuncFailed("unknown arch:" + target_arch + " for locale_arch_options")
 
 			localedef_opts += " --force --old-style --no-archive --prefix=%s \
-				--inputfile=%s/%s/i18n/locales/%s --charmap=%s %s/usr/lib/locale/%s" \
-				% (treedir, treedir, datadir, locale, encoding, treedir, name)
+				--inputfile=%s/%s/i18n/locales/%s --charmap=%s %s/%s" \
+				% (treedir, treedir, datadir, locale, encoding, outputpath, name)
 
 			cmd = "PATH=\"%s\" I18NPATH=\"%s\" GCONV_PATH=\"%s\" cross-localedef %s" % \
 				(path, i18npath, gconvpath, localedef_opts)
-- 
1.7.0.4




^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH V2 0/1] Removing hard coded libdir for libc locale generating
  2011-06-23 13:43 [PATCH V2 0/1] Removing hard coded libdir for libc locale generating Lianhao Lu
  2011-06-23 13:43 ` [PATCH V2 1/1] libc-package.bbclass: Replace hard coded libdir Lianhao Lu
@ 2011-06-28 11:09 ` Richard Purdie
  1 sibling, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2011-06-28 11:09 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Thu, 2011-06-23 at 21:43 +0800, Lianhao Lu wrote:
> V2:
> 
> Use base_libdir instead of libdir for ldlibdir.
> ----------------------------------------------------
> V1:
> The patch replaces the hard coded libdir in package_do_split_gconvs() in libc-package.bbclass to meet the requirement of multilib.
> 
> The following changes since commit b04ee632eb06650dde3e3ee8c4788a45cae0aa5e:
>   Richard Purdie (1):
>         multilib: First pass from RP
> 
> are available in the git repository at:
> 
>   git://git.pokylinux.org/poky-contrib llu/ml
>   http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=llu/ml
> 
> Lianhao Lu (1):
>   libc-package.bbclass: Replace hard coded libdir.

Merged to master, thanks.

Richard




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-06-28 11:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-23 13:43 [PATCH V2 0/1] Removing hard coded libdir for libc locale generating Lianhao Lu
2011-06-23 13:43 ` [PATCH V2 1/1] libc-package.bbclass: Replace hard coded libdir Lianhao Lu
2011-06-28 11:09 ` [PATCH V2 0/1] Removing hard coded libdir for libc locale generating Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox