Summary: | app-text/po4a-0.41 doesn't honor LINGUAS for locale files | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Piotr Szymaniak <bugzie> |
Component: | Current packages | Assignee: | Fat-Zer <fatzer2> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | leio, proxy-maint |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 405485 | ||
Attachments: | po4a-0.45-r1.ebuild.patch |
Description
Piotr Szymaniak
2012-02-08 13:32:00 UTC
Um, this is taking it a bit too far. If you made it your project to go through the entire tree to look for packages that do not honour LINGUAS, you're going about it the wrong way. Stop filing these bugs now or only file them for packages you show a clear personal interest for. Created attachment 390588 [details, diff]
po4a-0.45-r1.ebuild.patch
Put together a patch that fixes LINGUAS not being honoured. I've only tried with LINGUAS=fr and it solely installs the fr.po locale file. It's in the tree as well. Please reopen and assign it to me if you encounter issues with this patch.
1) I still get all .mo files installed after this revbump that includes the USE_EXPAND for them. 2) Using USE_EXPAND is wrong for LINGUAS for when it simply controls stuff like whether a translation .mo is installed or not; it is a standard gettext/intltool honored environment variable that does reach gettext/intltool on its own, without spamming USE flags; USE_EXPAND on LINGUAS is useful when it needs to control something like extra download, e.g language packs 3) More importantly, USE_EXPAND doesn't seem to allow to cleanly support a very important feature of gettext LINGUAS: Install ALL translations when LINGUAS is unset (as opposed to set to an empty variable). This should be fixed in po4a-0.45-r3 Thanks for feedback |