Gentoo Archives: gentoo-user

From: Dr Rainer Woitok <rainer.woitok@×××××.com>
To: gentoo-user@l.g.o, Michael <confabulate@××××××××.com>
Subject: Re: [gentoo-user] Getting rid of unwanted languages (Was: Re: gimp help not available, even with USE doc)
Date: Mon, 04 May 2020 14:08:26
Message-Id: 24240.8652.979792.885624@tux.local
Michael,

On Thursday, 2020-04-30 16:43:06 +0100, you wrote:

> ... > https://wiki.gentoo.org/wiki/Localization/Guide#L10N > > Meanwhile, I think the equivalent to debian's localepurge corresponds to a > dual step process in Gentoo. First update your locale as per above page, then > run 'env-update && source /etc/profile', followed by 'localegen'. Then if you > have also setup additional localisations in L10N, you need to run emerge with > option --newuse, or --changeduse to take account per package or global changes > in the L10N USE settings.
Doesn't seem to work: # grep -E '^(LANG|LC_|L10)' /etc/portage/make.conf L10N="en-GB" LANG="en_GB" LC_MESSAGES="C" # env | grep -E '^(LANG|LC_|L10)' LANG=en_GB.utf8 LANGUAGE=en_GB:en_US:en LC_ADDRESS=en_GB.UTF-8 LC_COLLATE=C LC_IDENTIFICATION=en_GB.UTF-8 LC_MEASUREMENT=en_GB.UTF-8 LC_MONETARY=en_GB.UTF-8 LC_NAME=en_GB.UTF-8 LC_NUMERIC=en_GB.UTF-8 LC_PAPER=en_GB.UTF-8 LC_TELEPHONE=en_GB.UTF-8 LC_TIME=en_GB.UTF-8 # locale -a C C.utf8 POSIX en_GB.utf8 # localedef --list-archive C.utf8 en_GB.utf8 # emerge --ask --changed-deps --deep --newuse --update \ --verbose-conflicts --with-bdeps=y @world These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild rR ~] dev-libs/libjcat-0.1.1 Would you like to merge these packages? [Yes/No] no Quitting. Package "dev-libs/libjcat" does in fact have a "man" USE flag, and it provides a single manual page, "/usr/share/man/man1/jcat-tool.1.bz2". I don't know for sure though whether my adding 'LANG="en_GB"' to "/etc/ portage/make.conf" and doing all the magic in the Gentoo Locaization Guide caused Portage's desire to re-emerge that package or something totally different. But there are other packages installed with the "man" USE flag, which didn't even flinch. In particular there is package "sys-apps/shadow" which among other things provides the "passwd" command and which doesn't honour the "man" USE flag at all, but is quite polyglot: # cd /usr/share/man # find . -type f -name 'passwd*' ./ru/man1/passwd.1.bz2 ./man1/passwd.1.bz2 ./sv/man1/passwd.1.bz2 ./man3/passwd2des.3 ./ja/man1/passwd.1.bz2 ./it/man1/passwd.1.bz2 ./fr/man1/passwd.1.bz2 ./hu/man1/passwd.1.bz2 ./de/man1/passwd.1.bz2 ./tr/man1/passwd.1.bz2 ./zh_CN/man1/passwd.1.bz2 ./man5/passwd.5.bz2 # So the question how to get rid of all these unnecessary languages is still open. Sincerely, Rainer

Replies