I have in /etc/profile.env export LANGUAGE='en_GB.utf8' (from /etc/env.d/*) This causes emerge openoffice-ximian to fail with * Unknown LANGUAGE setting! * * Known LANGUAGE settings are: ... This cannot be overridden in the environment or in /etc/make.conf as the /etc/profile.env setting takes priority. I need this profile.env setting and will not remove or alter it for the duration of the ebuild. Up till now I have worked around this by editing the ebuild into my overlay. This is not sustainable. Searching forums indicates that international users have been forced to resort to similar or worse hacks: http://forums.gentoo.org/viewtopic.php?t=142525 It is my opinion that the openoffice-ximian ebuild use of LANGUAGE to set localisation is not defensible when the accepted values are so restrictive and idiosyncratic. If LANGUAGE is to be used, at the very least all $(locale -a) settings corresponding to an openoffice-ximian localised language should be accepted. (As a en_GB user, I would prefer a more general matching style.) Alternatively, a different environment variable should be used that does not have meaning outside the context of the ebuild and so can be set in /etc/make.conf without fear of side effects. I present the latter solution in a revised ebuild, using the variable OO_LANGUAGE to override LANGUAGE.
Created attachment 27132 [details] Revised ebuild Proposed changes reproduced below for convenience. --- /srv/gentoo/trees/rsync.gentoo.org/app-office/openoffice-ximian/openoffice-ximian-1.1.51.ebuild 2004-03-10 04:01:06.125774464 +0000 +++ /srv/gentoo/trees/capella.catmur.co.uk/app-office/openoffice-ximian/openoffice-ximian-1.1.51.ebuild 2004-03-10 04:15:31.940150672 +0000 @@ -116,6 +116,9 @@ if [ -z "$LANGUAGE" ]; then LANGUAGE=01 fi + if [ "$OO_LANGUAGE" ]; then + LANGUAGE=$OO_LANGUAGE + fi case "$LANGUAGE" in 01 | ENUS ) LANGNO=01; LANGNAME=ENUS; LFULLNAME="US English (default)" @@ -173,12 +176,15 @@ 97 | HEBREW ) LANGNO=97; LANGNAME=HEBREW; LFULLNAME=Hebrew ;; * ) - eerror "Unknown LANGUAGE setting!" + eerror "Unknown LANGUAGE setting: '$LANGUAGE'!" eerror eerror "Known LANGUAGE settings are:" eerror " ENUS | PORT | RUSS | GREEK | DTCH | FREN | SPAN | FINN | CAT | ITAL |" eerror " CZECH | SLOVAK | DAN | SWED | POL | GER | PORTBR | THAI | ESTONIAN |" eerror " JAPN | KOREAN | CHINSIM | CHINTRAD | TURK | HINDI | ARAB | HEBREW" + eerror + eerror "You can override LANGUAGE by setting OO_LANGUAGE=(your LANGUAGE) in the" + eerror "environment or in /etc/make.conf". die ;; esac
Created attachment 28816 [details] openoffice-ximian-1.1.52.ebuild
Created attachment 28824 [details] openoffice-ximian-1.1.52.ebuild Forgot to remove CVS header. Sorry.
*** Bug 46090 has been marked as a duplicate of this bug. ***
See http://bugs.gentoo.org/show_bug.cgi?id=51061#c3 for a better workaround / general solution to the problem.
However /etc/profile.env overrides some settings including (in my case) LANGUAGE. See the linked bug 51095 for the obvious solution.
We are now using LINGUAS, so this problem should be gone