Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 753740 - sys-libs/glibc looks for locale-archive in an ABI-specific location
Summary: sys-libs/glibc looks for locale-archive in an ABI-specific location
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
Depends on:
Reported: 2020-11-09 17:10 UTC by Mike Gilbert
Modified: 2020-11-10 19:16 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---

move locale-archive to /usr/lib/locale (0001-sys-libs-glibc-move-local-archive-to-usr-lib-locale.patch,5.83 KB, patch)
2020-11-09 20:17 UTC, Mike Gilbert
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Gilbert gentoo-dev 2020-11-09 17:10:29 UTC
See this systemd issue.

As far as I know, there is nothing arch-specific in locale-archive, so it makes no sense to generate it in /usr/$(get_libdir)/locale. We should move it to /usr/lib/locale instead.

I believe this happens because we pass --libdir to configure explicitly, instead of letting configure auto-detect libdir based on the compiler's config. See this autoconf macro:;a=blob;f=aclocal.m4;h=08fa1ac6d05323fd0bac1f0d8820ba78ba6cf9a0;hb=3de512be7ea6053255afed6154db9ee31d4e557a#l298

A workaround might be to pass libc_cv_complocaledir="${EPREFIX}/usr/lib/locale" to configure.
Comment 1 Mike Gilbert gentoo-dev 2020-11-09 20:17:20 UTC
Created attachment 670646 [details, diff]
move locale-archive to /usr/lib/locale

This revbumps 2.32-r2 and updates 9999.

git detects this as a copy from 9999 to 2.32-r3. Reviewing the 9999 diff is probably simplest.
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2020-11-09 21:32:09 UTC
The change looks good.
Comment 3 Larry the Git Cow gentoo-dev 2020-11-10 19:16:19 UTC
The bug has been closed via the following commit(s):

commit f0d5c947f4d53e8e2ec1762ff20c23328362a943
Author:     Mike Gilbert <>
AuthorDate: 2020-11-09 20:13:29 +0000
Commit:     Mike Gilbert <>
CommitDate: 2020-11-10 19:15:45 +0000

    sys-libs/glibc: move local-archive to /usr/lib/locale
    Signed-off-by: Mike Gilbert <>

 sys-libs/glibc/glibc-2.32-r3.ebuild | 1513 +++++++++++++++++++++++++++++++++++
 sys-libs/glibc/glibc-9999.ebuild    |   32 +-
 2 files changed, 1525 insertions(+), 20 deletions(-)