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
1 Michael,
2
3 On Thursday, 2020-04-30 16:43:06 +0100, you wrote:
4
5 > ...
6 > https://wiki.gentoo.org/wiki/Localization/Guide#L10N
7 >
8 > Meanwhile, I think the equivalent to debian's localepurge corresponds to a
9 > dual step process in Gentoo. First update your locale as per above page, then
10 > run 'env-update && source /etc/profile', followed by 'localegen'. Then if you
11 > have also setup additional localisations in L10N, you need to run emerge with
12 > option --newuse, or --changeduse to take account per package or global changes
13 > in the L10N USE settings.
14
15 Doesn't seem to work:
16
17 # grep -E '^(LANG|LC_|L10)' /etc/portage/make.conf
18 L10N="en-GB"
19 LANG="en_GB"
20 LC_MESSAGES="C"
21 # env | grep -E '^(LANG|LC_|L10)'
22 LANG=en_GB.utf8
23 LANGUAGE=en_GB:en_US:en
24 LC_ADDRESS=en_GB.UTF-8
25 LC_COLLATE=C
26 LC_IDENTIFICATION=en_GB.UTF-8
27 LC_MEASUREMENT=en_GB.UTF-8
28 LC_MONETARY=en_GB.UTF-8
29 LC_NAME=en_GB.UTF-8
30 LC_NUMERIC=en_GB.UTF-8
31 LC_PAPER=en_GB.UTF-8
32 LC_TELEPHONE=en_GB.UTF-8
33 LC_TIME=en_GB.UTF-8
34 # locale -a
35 C
36 C.utf8
37 POSIX
38 en_GB.utf8
39 # localedef --list-archive
40 C.utf8
41 en_GB.utf8
42 # emerge --ask --changed-deps --deep --newuse --update \
43 --verbose-conflicts --with-bdeps=y @world
44
45 These are the packages that would be merged, in order:
46
47 Calculating dependencies... done!
48 [ebuild rR ~] dev-libs/libjcat-0.1.1
49
50 Would you like to merge these packages? [Yes/No] no
51
52 Quitting.
53
54 Package "dev-libs/libjcat" does in fact have a "man" USE flag, and it
55 provides a single manual page, "/usr/share/man/man1/jcat-tool.1.bz2". I
56 don't know for sure though whether my adding 'LANG="en_GB"' to "/etc/
57 portage/make.conf" and doing all the magic in the Gentoo Locaization
58 Guide caused Portage's desire to re-emerge that package or something
59 totally different.
60
61 But there are other packages installed with the "man" USE flag, which
62 didn't even flinch. In particular there is package "sys-apps/shadow"
63 which among other things provides the "passwd" command and which doesn't
64 honour the "man" USE flag at all, but is quite polyglot:
65
66 # cd /usr/share/man
67 # find . -type f -name 'passwd*'
68 ./ru/man1/passwd.1.bz2
69 ./man1/passwd.1.bz2
70 ./sv/man1/passwd.1.bz2
71 ./man3/passwd2des.3
72 ./ja/man1/passwd.1.bz2
73 ./it/man1/passwd.1.bz2
74 ./fr/man1/passwd.1.bz2
75 ./hu/man1/passwd.1.bz2
76 ./de/man1/passwd.1.bz2
77 ./tr/man1/passwd.1.bz2
78 ./zh_CN/man1/passwd.1.bz2
79 ./man5/passwd.5.bz2
80 #
81
82 So the question how to get rid of all these unnecessary languages is
83 still open.
84
85 Sincerely,
86 Rainer

Replies