This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] localedef: Add --localedir and --archive-file options (Bug 19130)


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]