This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] localedef: Add --localedir and --archive-file options (Bug 19130)
- From: "Carlos O'Donell" <carlos at redhat dot com>
- To: Joseph Myers <joseph at codesourcery dot com>
- Cc: Mike Frysinger <vapier at gentoo dot org>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Tue, 20 Oct 2015 09:29:06 -0400
- Subject: Re: [PATCH] localedef: Add --localedir and --archive-file options (Bug 19130)
- Authentication-results: sourceware.org; auth=none
- References: <561F230E dot 5050801 at redhat dot com> <alpine dot DEB dot 2 dot 10 dot 1510151147210 dot 9529 at digraph dot polyomino dot org dot uk> <56257C9D dot 8090200 at redhat dot com> <alpine dot DEB dot 2 dot 10 dot 1510192344450 dot 3569 at digraph dot polyomino dot org dot uk>
On 10/19/2015 07:45 PM, Joseph Myers wrote:
> On Mon, 19 Oct 2015, Carlos O'Donell wrote:
>
>> The location of the locale archive, and binary compiled locales is localedir.
>>
>> The location of the gettext message catalogs is msgcatdir.
>
> No, localedir is explicitly defined in the GNU Coding Standards. See
> make-stds.texi:
>
> @item localedir
> The directory for installing locale-specific message catalogs for this
> package. By default, it should be @file{/usr/local/share/locale}, but
> it should be written as @file{$(datarootdir)/locale}. (If you are
> using Autoconf, write it as @samp{@@localedir@@}.) This directory
> usually has a subdirectory per locale.
>
I had not looked at the GNU Coding Standards. You are correct.
In which case I think 3 things need to be done:
(1) Make sure --localedir configure option properly changes $(msgcatdir)
to allow the user to select where glibc looks for locale-specific
messages.
(2) Rename the uses of LOCALEDIR and $(localedir) within the glibc configury
to avoid confusion. I suggest LOCARCHDIR and $(locarchdir).
(3) Repost my localedef patches rebased on (1) and (2).
Did I miss anything?
Cheers,
Carlos.