Gentoo Archives: gentoo-dev

From: Michael Orlitzky <mjo@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH] linux-mod.eclass: IUSE default support for MODULES_OPTIONAL_USE
Date: Mon, 15 Jan 2018 18:34:26
Message-Id: cc57c14d-e4c3-df4d-3ff7-85bef077744d@gentoo.org
In Reply to: [gentoo-dev] [PATCH] linux-mod.eclass: IUSE default support for MODULES_OPTIONAL_USE by "Robin H. Johnson"
1 On 01/14/2018 06:53 PM, Robin H. Johnson wrote:
2 > +# @ECLASS-VARIABLE: MODULES_OPTIONAL_USE_IUSE_DEFAULT
3 > +# @DESCRIPTION:
4 > +# A boolean to control the IUSE default state for the MODULES_OPTIONAL_USE USE
5 > +# flag. Default value is unset (false). True represented by 1 or 'on', other
6 > +# values including unset treated as false.
7 > +
8 > ...
9 > +
10 > +case $MODULES_OPTIONAL_USE_IUSE_DEFAULT in
11 > + 1) _modules_optional_use_iuse_default='+' ;;
12 > + *) _modules_optional_use_iuse_default='' ;;
13 > +esac
14
15 I missed this the first time around, but the case statement needs to
16 catch "on", too.

Replies