Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 691378 - =sys-libs/glibc-2.30 does not generate any locales by default
Summary: =sys-libs/glibc-2.30 does not generate any locales by default
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-04 07:43 UTC by Sergei Trofimovich (RETIRED)
Modified: 2019-08-04 12:13 UTC (History)
0 users

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


Attachments
sys-libs:glibc-2.30:20190804-024107.log.bz2 (sys-libs:glibc-2.30:20190804-024107.log.bz2,735.60 KB, application/x-bzip)
2019-08-04 11:57 UTC, Sergei Trofimovich (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Trofimovich (RETIRED) gentoo-dev 2019-08-04 07:43:11 UTC
$ emerge --info sys-libs/glibc

...
=================================================================
                        Package Settings
=================================================================

sys-libs/glibc-2.30::gentoo was built with the following:
USE="caps multiarch (multilib) (split-usr) ssp (static-libs) -audit (-cet) -compile-locales -custom-cflags -doc -gd -headers-only -nscd -profile -selinux -suid -systemtap -test (-vanilla)" ABI_X86="(64)"
CFLAGS="-march=sandybridge -mtune=sandybridge -pipe -fdiagnostics-show-option -Wall -Wextra -Wstack-protector -g -O2"
CXXFLAGS="-march=sandybridge -mtune=sandybridge -pipe -fdiagnostics-show-option -Wall -Wextra -Wstack-protector -g -O2"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache clean-logs config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles installsources ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms sign splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"

$ sudo locale-gen
 * No locales found, keeping locale archive

$ cat /etc/locale.gen
# /etc/locale.gen: list all of the locales you want to have on your system.
# See the locale.gen(5) man page for more details.
#
# The format of each line:
# <locale name> <charset>
#
# Where <locale name> starts with a name as found in /usr/share/i18n/locales/.
# It must be unique in the file as it is used as the key to locale variables.
# For non-default encodings, the <charset> is typically appended.
#
# Where <charset> is a charset located in /usr/share/i18n/charmaps/ (sans any
# suffix like ".gz").
#
# All blank lines and lines starting with # are ignored.
#
# For the default list of supported combinations, see the file:
# /usr/share/i18n/SUPPORTED
#
# Whenever glibc is emerged, the locales listed here will be automatically
# rebuilt for you.  After updating this file, you can simply run `locale-gen`
# yourself instead of re-emerging glibc.

#en_US ISO-8859-1
#en_US.UTF-8 UTF-8
#ja_JP.EUC-JP EUC-JP
#ja_JP.UTF-8 UTF-8
#ja_JP EUC-JP
#en_HK ISO-8859-1
#en_PH ISO-8859-1
#de_DE ISO-8859-1
#de_DE@euro ISO-8859-15
#es_MX ISO-8859-1
#fa_IR UTF-8
#fr_FR ISO-8859-1
#fr_FR@euro ISO-8859-15
#it_IT ISO-8859-1
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2019-08-04 07:43:40 UTC
I believe I have default locale.gen contents. I expect all locales to be generated.
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2019-08-04 11:34:30 UTC
(In reply to Sergei Trofimovich from comment #1)
> I believe I have default locale.gen contents. I expect all locales to be
> generated.

Nope. That is precisely expected behaviour (and has been as long as I remember).

The "all locales generation" is a hack in the *ebuild*, not in locale-gen.
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2019-08-04 11:57:53 UTC
Created attachment 585658 [details]
sys-libs:glibc-2.30:20190804-024107.log.bz2
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2019-08-04 11:59:17 UTC
(In reply to Andreas K. Hüttel from comment #2)
> (In reply to Sergei Trofimovich from comment #1)
> > I believe I have default locale.gen contents. I expect all locales to be
> > generated.
> 
> Nope. That is precisely expected behaviour (and has been as long as I
> remember).
> 
> The "all locales generation" is a hack in the *ebuild*, not in locale-gen.

The "hack" does not in ebuild either:

...
>>> Safely unmerging already-installed instance...
>>> Original instance of package unmerged safely.
/tmp/portage-tmpdir/portage/sys-libs/glibc-2.30/image/lib64 ~
 * Generating 487 locales (this might take a while) with 8 jobs
 *  (  1/487) Generating C.UTF-8 .../usr/sbin/locale-gen: line 316: ./ld-*.so: No such file or directory
                                      [ !! ]
 *  (  2/487) Generating aa_DJ.ISO-8859-1 .../usr/sbin/locale-gen: line 316: ./ld-*.so: No such file or directory
                             [ !! ]
Comment 5 Larry the Git Cow gentoo-dev 2019-08-04 12:13:50 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d81ba30c5565874289366899187f0a8ee255fa2a

commit d81ba30c5565874289366899187f0a8ee255fa2a
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2019-08-04 12:12:46 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2019-08-04 12:13:31 +0000

    sys-libs/glibc: Fix my broken bash code, bug 691378
    
    This is the real fix for bug 691378.
    
    Closes: https://bugs.gentoo.org/691378
    Package-Manager: Portage-2.3.70, Repoman-2.3.16
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 sys-libs/glibc/glibc-2.30.ebuild | 2 +-
 sys-libs/glibc/glibc-9999.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)