All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Radzykewycz, T (Radzy)" <radzy@windriver.com>
To: "Hatle, Mark" <mark.hatle@windriver.com>, Khem Raj <raj.khem@gmail.com>
Cc: OE-core <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 1/1] bitbake.conf: change localedir
Date: Fri, 12 Aug 2016 14:30:44 +0000	[thread overview]
Message-ID: <33006C99F5A5194A9B7A7715DFA3E3830110038191@ALA-MBA.corp.ad.wrs.com> (raw)
In-Reply-To: <72a12581-2f16-eb5b-185e-adc82ae5d262@windriver.com>


________________________________________
> From: openembedded-core-bounces@lists.openembedded.org [openembedded-core-bounces@lists.openembedded.org] on behalf of Mark Hatle [mark.hatle@windriver.com]
> Sent: Friday, August 12, 2016 6:50 AM
> To: Khem Raj
> Cc: OE-core
> Subject: Re: [OE-core] [PATCH 1/1] bitbake.conf: change localedir
> 
> On 8/11/16 2:47 PM, Khem Raj wrote:
> >
> >> On Aug 11, 2016, at 10:11 AM, Mark Hatle <mark.hatle@windriver.com> wrote:
> >>
> >> On 8/11/16 11:26 AM, Burton, Ross wrote:
> >>>
> >>> On 8 August 2016 at 07:04, Chen Qi <Qi.Chen@windriver.com
> >>> <mailto:Qi.Chen@windriver.com>> wrote:
> >>>
> >>>    Previously, localedir is set to "${libdir}/locale". This would result
> >>>    in locale database installed in '/usr/lib64/locale' in some multilib case.
> >>>    For example, if we build out a multilib x86-64 self-hosted image and we try
> >>>    to build projects on this host, things broke and the following error appears.
> >>>
> >>>      Please use a locale setting which supports utf-8.
> >>>      Python can't change the filesystem locale after loading so we need a utf-8
> >>>    when python starts or things won't work.
> >>>
> >>>    This is because '/usr/lib/locale' is the default one. And actually the
> >>>    nativesdk-glibc is now set to use '/usr/lib/locale'.
> >>>
> >>>
> >>> This is irrelevant as nativesdk-glibc is configured to read the *hosts* locale
> >>> directory.
> >>>
> >>>
> >>>    Thus, we change the setting of 'localedir' to '${nonarch_libdir}/locale' to
> >>>    fix the above problem.
> >>>
> >>>
> >>> I see two issues here:
> >>> 1) should binary locales be considered shared in multilib environments? (libdir
> >>> vs nonarch_libdir)
> >>> 2) what packages are not respecting this variable and hard-coding /usr/lib/locale?
> >>>
> >>> I'm guessing WR think yes to (1), and is the glibc patch you also sent the
> >>> fundamental fix to (2)?
> >>
> >> Binary locales have an endian and alignment setting to them.  If a platform
> >> supports both big and little endian, this common locale would not work.  (That
> >> is extremely rare....)  Also if a platform supports different alignments in
> >> different libraries that could cause an impact as well.  (This is also extremely
> >> unlikely.)
> >
> > Are there any practical existing usecases ?
> 
> At one point there was talk about running little endian and big endian power on
> the same machine.  Same with ARM.  I've never actually seen this implemented.

I have seen it implemented, but it was an odd situation.

IIRC: on Android, an app used a native library in one endian
when the system was running the other.  The context was a bug
report, where the comment (and what brought it to my attention)
was disgust that this was being done.

Not sure this is relevant to this discussion, but it's one data
point to indicate that it was actually done, though not for a
normal Linux system.

Enjoy!

				-- radzy

> The alignment was an issue between different S/390 multilibs at one point.  But
> I've not followed it to see if that is still true.  (Not that S/390 is a target
> for what we're doing.)
> 
> So to my knowledge I'm not aware of any use cases we regularly use in the Yocto
> Project -- but I'm also not aware of -all- use-cases.
> 
> I think the best compromise may be to ensure the value is configurable.  Set it
> to the combined location -- with a note that if the multilibs have a different
> endian or alignment setting, to use the older setting breaking them into the
> multilibs.  (I don't know what, if any changes this would require in glibc to
> know when to use which dir...)
> 
> Plan for the optimized case, support the unusual case.
> 
> --Mark
> 
> >>
> >> The not-binary locales have no such issues BTW.
> >>
> >> --Mark
> >>
> >>> Ross
> >>>
> >>>
> >>
> >> --
> >> _______________________________________________
> >> Openembedded-core mailing list
> >> Openembedded-core@lists.openembedded.org
> >> http://lists.openembedded.org/mailman/listinfo/openembedded-core
> >
> 
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


  reply	other threads:[~2016-08-12 14:30 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-08  6:04 [PATCH 0/1] bitbake.conf: change localedir Chen Qi
2016-08-08  6:04 ` [PATCH 1/1] " Chen Qi
2016-08-10  5:49   ` [PATCH] glibc: apply complocaledir while localedir changed Hongxu Jia
2016-08-10  5:55     ` Hongxu Jia
2016-08-10  7:31   ` [PATCH V2] " Hongxu Jia
2016-08-10  8:12   ` [PATCH V3] " Hongxu Jia
2016-08-11 16:26   ` [PATCH 1/1] bitbake.conf: change localedir Burton, Ross
2016-08-11 17:11     ` Mark Hatle
2016-08-11 19:14       ` Burton, Ross
2016-08-11 19:32         ` Mark Hatle
2016-08-11 19:47       ` Khem Raj
2016-08-12 13:50         ` Mark Hatle
2016-08-12 14:30           ` Radzykewycz, T (Radzy) [this message]
2016-08-12  3:28     ` ChenQi

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=33006C99F5A5194A9B7A7715DFA3E3830110038191@ALA-MBA.corp.ad.wrs.com \
    --to=radzy@windriver.com \
    --cc=mark.hatle@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=raj.khem@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.