Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96283 - Specific locales/NLS installing based on LINGUAS
Summary: Specific locales/NLS installing based on LINGUAS
Status: VERIFIED LATER
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 97612 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-06-16 07:32 UTC by Stefan de Konink
Modified: 2007-01-12 06:13 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan de Konink 2005-06-16 07:32:29 UTC
When one try to install a minimalistic system with NLS, for example, it is
strange languages not specified in /etc/locales.build still get installed in
/usr/share/locale

I should be normal to only locales what are required get installed.

Reproducible: Always
Steps to Reproduce:
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-06-16 07:43:15 UTC
No, it
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-06-16 07:43:15 UTC
No, it´s not strange at all, USE="userlocales" (and /etc/locales.build) is a
feature for glibc only. 
Comment 3 Stefan de Konink 2005-06-16 08:10:18 UTC
(In reply to comment #1)
> No, it
Comment 4 Stefan de Konink 2005-06-16 08:10:18 UTC
(In reply to comment #1)
> No, it´s not strange at all, USE="userlocales" (and /etc/locales.build) is a
> feature for glibc only. 

Shouldn't this be a feature of auto* suite? Check which NLS support is installed
and only install theses locales? Or isn't there a function call which states
glibc supports X,Y,Z locales?
Comment 5 SpanKY gentoo-dev 2005-06-16 08:29:06 UTC
would be trivial to implement localepurge-like features into portage i think
Comment 6 Marius Mauch (RETIRED) gentoo-dev 2005-06-16 08:50:34 UTC
one more application of post-merge hooks IMO.
Comment 7 Martin von Gagern 2005-07-01 06:52:32 UTC
Isn't this what the LINGUAS variable in make.conf is for?
Together with the strip-linguas helper declared in eutils.eclass, this should
IMHO give the support you want.

I think this approach could be implemented a lot easier than using locales.build
or the actual configuration of the glibc, and it would be easier to change on a
per-packet basis which might be useful in some situations.

I modified the man ebuild to use LINGUAS in bug 97612, Jakub pointed me here.

If there is to be a major discussion about locales.build vs. LINGUAS, the
summary should perhaps be changed to reflect this.
Comment 8 SpanKY gentoo-dev 2005-07-01 08:17:58 UTC
stripping of files in locale dirs should be based on LINGUAS rather than
locales.build

locales.build is highly glibc specific and the values used there are very diff
from LINGUAS
Comment 9 SpanKY gentoo-dev 2005-07-01 10:53:45 UTC
*** Bug 97612 has been marked as a duplicate of this bug. ***
Comment 10 Harald van Dijk (RETIRED) gentoo-dev 2005-07-01 13:59:39 UTC
This came up in bug 9988, where you decided it was a bad idea (though I
disagreed then and still would like to see it now).
Comment 11 Jason Stubbs (RETIRED) gentoo-dev 2005-07-28 07:24:37 UTC
Putting a hold on feature requests for portage as they are drowning out the 
bugs. Most of these features should be available in the next major version of 
portage. But for the time being, they are just drowning out the major bugs and 
delaying the next version's progress. 
 
Any bugs that contain patches and any bugs for etc-update or dispatch-conf can 
be reopened. Sorry, I'm just not good enough with bugzilla. ;) 
Comment 12 Marius Mauch (RETIRED) gentoo-dev 2007-01-12 06:13:04 UTC
Closing due to old age.