| Summary: | app-admin/sysstat ignores LINGUAS | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Arvid Norlander <anmaster> |
| Component: | New packages | Assignee: | Jeroen Roovers (RETIRED) <jer> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | trivial | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Arvid Norlander
2008-01-15 14:16:46 UTC
@Arvid: I assume you are going to provide patches for all those #205* bugs you filed? Perhaps something like this:
iff -u sysstat-8.0.4-r*
--- sysstat-8.0.4-r1.ebuild 2008-01-15 18:28:31.000000000 +0100
+++ sysstat-8.0.4-r2.ebuild 2008-01-15 18:55:18.000000000 +0100
@@ -32,5 +32,19 @@
newdoc sysstat.crond.sample crontab.example
newinitd "${FILESDIR}"/sysstat.init.d sysstat
+ echo
ewarn "The sysstat configuration files have moved from /etc/sysconfig to /etc"
+ echo
+
+ # Remove unwanted locale files using LINGUAS (bug #205963):
+ cd "${D}/usr/share/locale"
+ local directory lingua remove
+ for directory in *; do
+ for lingua in ${LINGUAS}; do
+ hasq ${directory} ${lingua} && directory=""
+ done
+ remove="${remove} ${directory}"
+ done
+
+ rm -r ${remove}
}
(In reply to comment #2) > Perhaps something like this: The patch I proposed is far too generic to apply to each and every ebuild in the tree that installs LC_MESSAGES, so this or similar code should probably be integrated into a kind of locale-purge type tool that users can install separately (and probably adjust to use directories other than /usr/share/locale). Changing resolution. *** This bug has been marked as a duplicate of bug 194567 *** |