Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Removing unwanted language translations during ebuild

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
mokki
n00b
n00b
Posts: 6
Joined: Mon May 24, 2004 6:15 pm

Removing unwanted language translations during ebuild

  • Quote

Post by mokki » Tue Oct 11, 2005 11:26 am

My /usr/share/locale is over 300M large because it contains translations to languages that I will never use. The actual translations that are relevant to me would take only 4.2M.

I have edited /etc/locales.build to include only the locales/languages that I use. This has the effect that glibc will not allow other language translations to be used, even if they were installed.

Now I would like to request that the ebuild system would be modified so that translations for a language will not be installed for other than the languages listed in /etc/locales.build (plus of course the C locale).
Another option would be to create a post-processing script that deletes from /usr/share/locale all directories not mentioned in the /etc/locales.build.

Does the ebuild system already support this, or should I create a bug request about this one?
Top
eelke
Guru
Guru
User avatar
Posts: 406
Joined: Mon May 17, 2004 7:11 pm
Location: Earth, Netherlands, Friesland

  • Quote

Post by eelke » Tue Oct 11, 2005 8:33 pm

Put userlocales in your use flags. Atleast glibc supports this, I do not know about other packages.
Top
CompNerd
Retired Dev
Retired Dev
User avatar
Posts: 311
Joined: Sun Mar 16, 2003 8:02 pm
Location: 127.0.0.1

  • Quote

Post by CompNerd » Tue Oct 11, 2005 9:26 pm

I am not sure how helpful this would be, but you can try to set the LINGUAS variable in /etc/make.conf for the languages you really want.

compnerd
Top
mokki
n00b
n00b
Posts: 6
Joined: Mon May 24, 2004 6:15 pm

  • Quote

Post by mokki » Tue Oct 11, 2005 10:04 pm

eelke, the userlocales really seems to affect only glibc and files installed under /usr/lib64/locale. And it seems I already had it defined.

CompNerd, the LINGUAS trick worked nicely. Thanks.

So the only guestion is that should portage set it automatically for all ebuilds if userlocales is on and the /etc/locales.build exists. That way the same information need not be written to two different places.
Top
CompNerd
Retired Dev
Retired Dev
User avatar
Posts: 311
Joined: Sun Mar 16, 2003 8:02 pm
Location: 127.0.0.1

  • Quote

Post by CompNerd » Thu Oct 13, 2005 10:57 pm

The information stored with userlocales is for libc, not for the general system. It is the list of encodings that libc supports.

HTH.

compnerd
Top
Post Reply

5 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic