В Срд, 09/06/2010 в 21:21 +0200, Harald van Dijk пишет:
> On Wed, Jun 09, 2010 at 11:38:03AM +0400, Peter Volkov wrote:
> > 1. Do we want all packages to support LINGUAS if possible? It is
> > possible to leave gettext based package without LINGUAS and everything
> > will just work, but I think that it's good idea to make supported
> > languages visible to user through linguas_<lang> flags.
> 
> I agree, but I'd like to point out this would be a visible change in
> default behaviour: the default would change from "install everything" to
> "install nothing". For gettext-based packages, "install everything" is a
> sane default, in my opinion.

Yup, but 1) this change will be visible during emerge -pv since new
linguas value are visible there, 2) we already have gettext packages
with linguas supported.

> > 2. How should we handle case of unset LINGUAS in ebuild? Should we mimic
> > gettext and install all supported languages, using code like
> > 
> > LINGUAS=${LINGUAS-%UNSET%}
> > if test "%UNSET%" == "$LINGUAS"; then
> >     # install all supported languages
> > fi
> 
> Firstly, don't use == with test.

Thank you for suggestions! Actually it was just an illustration loosely
taken from bug 148702.

> Unfortunately, consistency either way is bad. Making unset LINGUAS
> install nothing changes gettext's design, when the whole idea behind
> LINGUAS was to mimic gettext's design. Making unset LINGUAS install
> everything causes massive disk space requirements for the default
> settings for some packages such as openoffice. In my opinion, either of
> those would be worse than having LINGUAS behave inconsistently.

Ok.

> > 3. What is the purpose of strip-linguas function
> 
> It's used for some packages that fail to build with certain LINGUAS
> values. If I recall correctly, binutils had a bug where putting en_GB in
> your LINGUAS made the build fail, for example. binutils doesn't support
> en_GB anyway, so it gets filtered out,

I see.

But what is preferred way for gettext packages? Define supported
languages in IUSE or use strip-linguas if required?

-- 
Peter.


Reply via email to