From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 1/1] libc-package.bbclass: Replace hard coded libdir.
Date: Thu, 23 Jun 2011 13:32:00 +0100 [thread overview]
Message-ID: <1308832320.20015.119.camel@rex> (raw)
In-Reply-To: <8a1cd7c84d12ad10df0de5a84f7d54128e6e38bf.1308827218.git.lianhao.lu@intel.com>
On Thu, 2011-06-23 at 19:33 +0800, Lianhao Lu wrote:
> 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..84bac5d 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,libdir)
I think this should be base_libdir, not libdir.
> 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)
But otherwise this looks like a sensible change to me!
Cheers,
Richard
prev parent reply other threads:[~2011-06-23 12:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-23 11:33 [PATCH 0/1] Removing hard coded libdir for libc locale generating Lianhao Lu
2011-06-23 11:33 ` [PATCH 1/1] libc-package.bbclass: Replace hard coded libdir Lianhao Lu
2011-06-23 12:32 ` Richard Purdie [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1308832320.20015.119.camel@rex \
--to=richard.purdie@linuxfoundation.org \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox