>>>>> On Sun, 8 Mar 2009, Ciaran McCreesh wrote:

> Last time I checked, every single use of foo? as a direct child of ||
> in the tree was wrong, as were the Portage docs. Let's say you have the
> following:

>     DEPEND="|| (
>         foo? ( cat/foo )
>         bar? ( cat/bar )
>         cat/baz
>     )"

> Then this is wrong:

>     if use foo ; then
>         myconf="--enable-foo"
>     elif use bar ; then
>         myconf="--enable-bar"
>     else
>         myconf="--enable-baz
>     fi

I would suspect that in most of such cases the code expresses what is
intended, but the dependency should be changed:

    foo? ( cat/foo )
    !foo? (
        bar? ( cat/bar )
        !bar? ( cat/baz )
    )

Ulrich

Reply via email to