Gentoo Archives: gentoo-user

From: Peter Humphrey <peter@××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Getting rid of unwanted languages (Was: Re: gimp help not available, even with USE doc)
Date: Thu, 30 Apr 2020 16:43:20
Message-Id: 5374234.DvuYhMxLoT@peak
In Reply to: Re: [gentoo-user] Getting rid of unwanted languages (Was: Re: gimp help not available, even with USE doc) by Michael
1 On Thursday, 30 April 2020 16:43:06 BST Michael wrote:
2 > On Thursday, 30 April 2020 16:15:54 BST Dale wrote:
3 > > Dr Rainer Woitok wrote:
4 > > > On Thursday, 2020-04-30 07:31:51 -0500, Dale wrote:
5 > > >> ...
6 > > >> [ebuild R ] app-doc/gimp-help-2.8.2:2::gentoo 0 KiB
7 > > >
8 > > > Thanks for pointing me to a package I hadn't yet installed, even though
9 > > > I have installed "media-gfx/gimp" (but use it rarely). But installation
10 > > > took surprisingly long because it included tons of messages in unneeded
11 > > > laguages. I have L10N="en-GB" in my "make.conf" file, but this only
12 > > > seems to request additional languages.
13 > > >
14 > > > Is there a way to exclude megabytes of message texts or manual pages in
15 > > > languages I don't understand anyway from being installed, something like
16 > > > "L10N="-* en-GB"? And is there a way to again remove unnecessary lang-
17 > > > uages after they have been installed?
18 > > >
19 > > > Under Ubuntu I used to use a package named "localepurge" which did both.
20 > > >
21 > > > Sincerely,
22 > > >
23 > > > Rainer
24 > >
25 > > These settings are from AGES ago. I think they are still in use tho.
26 > >
27 > >
28 > > root@fireball / # cat /etc/make.conf | grep lang
29 > > LANG="en_US"
30 > > root@fireball / # cat /etc/make.conf | grep L10N
31 > > L10N="en en-US"
32 > > root@fireball / #
33 > >
34 > > You would replace US with GB of course. Oh, I put a link from
35 > > /etc/make.conf to the real one. I'm used to the old location. :/
36 > >
37 > Unless this page is out of date L10N USE expansion variable can be set
38 > either at make.conf, or on a per package basis:
39 >
40 > https://wiki.gentoo.org/wiki/Localization/Guide#L10N
41 >
42 > Meanwhile, I think the equivalent to debian's localepurge corresponds to a
43 > dual step process in Gentoo. First update your locale as per above page,
44 > then run 'env-update && source /etc/profile', followed by 'localegen'.
45 > Then if you have also setup additional localisations in L10N, you need to
46 > run emerge with option --newuse, or --changeduse to take account per
47 > package or global changes in the L10N USE settings.
48
49 I wondered whether gimp would just include all manner of junk regardless, so I
50 checked what's installed here. It seems that setting locales in make.conf does
51 indeed help - no excess languages here; just 2600 icons!
52
53 --
54 Regards,
55 Peter.