This is the mail archive of the glibc-bugs@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]

[Bug build/14259] --localedir arg to configure is ignored


http://sourceware.org/bugzilla/show_bug.cgi?id=14259

--- Comment #3 from Etienne Le Sueur <elesueur at vmware dot com> 2012-06-21 04:44:48 UTC ---
Hi Carlos,

The explanation is complex due to the nature of the build infrastructure, but
here goes:

I want to change the location of the locale-archive in the installation. By
default it is installed as /usr/lib(64)/locale/locale-archive. I thought I
would be able to do this with the --localedir argument to configure. But it
turns out that doesn't work.

The locale archive is placed in LOCALEDIR/locale-archive, and LOCALEDIR is
defined using -D in CFLAGS from a configure variable called $localedir.
$localedir is sourced from $libc_cv_localedir in config.make.in:14

On 32-bit builds, $libc_cv_localedir is never set, hence $localedir is always
empty and it defaults to ${libdir}/locale (from Makeconfig:222) and can't be
changed with --localedir.

On 64-bit builds, $libc_cv_localedir is set to ${exec_dir}/lib64/locale (see
sysdeps/gnu/configure:20) only if --prefix=/usr is specified, otherwise it is
left empty, and $localedir again defaults to ${libdir}/locale.

The glibc build infrastructure has some special case scripting for the case
where --prefix=/usr, which is where I decided to make the fix.

I am not an expert in locales at all, but it seems to me that something is
broken if I can't change the location of the locale-archive with --localedir.

Does anyone own the locale code?

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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