From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Yu Ke <ke.yu@intel.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH 3/8] libc-package.bbclass: fix for non /usr/lib libdir case
Date: Fri, 08 Jul 2011 18:15:38 +0100 [thread overview]
Message-ID: <1310145338.20015.913.camel@rex> (raw)
In-Reply-To: <1dce46eed7c322d8ada691bc2a61417ea6ffe928.1310047266.git.ke.yu@intel.com>
On Thu, 2011-07-07 at 22:10 +0800, Yu Ke wrote:
> if libdir is not /usr/lib, e.g. libdir=/usr/lib64, eglibc will
> have build failure:
> "
> cross-localedef --uint32-align=4 --little-endian --force --old-style --no-archive --prefix=/home/kyu3/sdb/lib64/tmp/work/x86_64-poky-linux/eglibc-2.13-r2+svnr14157/locale-tree --inputfile=/home/kyu3/sdb/lib64/tmp/work/x86_64-poky-linux/eglibc-2.13-r2+svnr14157/locale-tree//usr/share/i18n/locales/es_NI --charmap=UTF-8 /home/kyu3/sdb/lib64/tmp/work/x86_64-poky-linux/eglibc-2.13-r2+svnr14157/locale-tree/usr/lib/locale/es_NI
> NOTE: stdout:
> NOTE:
> NOTE: stderr:
> NOTE: cannot write output files to `(null)': No such file or directory
> ERROR: Function 'localedef returned an error' failed
> "
>
> the reason is that libc-package.bbclass has hard code "/usr/lib". This patch
> fix it by using libdir variable.
>
> Signed-off-by: Yu Ke <ke.yu@intel.com>
> ---
> meta/classes/libc-package.bbclass | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta/classes/libc-package.bbclass b/meta/classes/libc-package.bbclass
> index 55e3d48..2ece9ae 100644
> --- a/meta/classes/libc-package.bbclass
> +++ b/meta/classes/libc-package.bbclass
> @@ -300,8 +300,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/locale/%s" \
> + % (treedir, treedir, datadir, locale, encoding, treedir, libdir, name)
>
> cmd = "PATH=\"%s\" I18NPATH=\"%s\" GCONV_PATH=\"%s\" cross-localedef %s" % \
> (path, i18npath, gconvpath, localedef_opts)
This must be against an older tree since Lianhao sent a patch for this
already?
Cheers,
Richard
next prev parent reply other threads:[~2011-07-08 17:20 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-07 14:10 [PATCH 0/8] [RFC] patch for non /usr/lib libdir Yu Ke
2011-07-07 14:10 ` [PATCH 1/8] native.bbclass: generate libdir from libdir_native Yu Ke
2011-07-07 14:10 ` [PATCH 2/8] openssl: fix for non /usr/lib libdir case Yu Ke
2011-07-07 14:10 ` [PATCH 3/8] libc-package.bbclass: " Yu Ke
2011-07-08 17:15 ` Richard Purdie [this message]
2011-07-07 14:10 ` [PATCH 4/8] python: fix for libdir=/usr/lib64 case Yu Ke
2011-07-07 19:22 ` Richard Purdie
2011-07-08 0:52 ` Yu Ke
2011-07-07 14:10 ` [PATCH 5/8] python-native: fix for non /usr/lib libdir case Yu Ke
2011-07-07 14:10 ` [PATCH 6/8] perl: " Yu Ke
2011-07-07 16:14 ` Kamble, Nitin A
2011-07-07 19:21 ` Richard Purdie
2011-07-07 14:10 ` [PATCH 7/8] libcap: " Yu Ke
2011-07-07 14:10 ` [PATCH 8/8] rpm: " Yu Ke
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=1310145338.20015.913.camel@rex \
--to=richard.purdie@linuxfoundation.org \
--cc=ke.yu@intel.com \
--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