Gentoo Archives: gentoo-dev

From: Davide Pesavento <pesa@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH] use.desc: Improve description of USE=test
Date: Tue, 21 Aug 2018 16:02:41
Message-Id: CADfzvvbDdG0wm-kveQdPnM_3xDbnwmwoDYS10HOahOdOkd-jgw@mail.gmail.com
In Reply to: Re: [gentoo-dev] [PATCH] use.desc: Improve description of USE=test by Davide Pesavento
1 On Tue, Aug 21, 2018 at 11:57 AM Davide Pesavento <pesa@g.o> wrote:
2 >
3 > On Tue, Aug 21, 2018 at 2:46 AM Michał Górny <mgorny@g.o> wrote:
4 > >
5 > > On Tue, 2018-08-21 at 01:54 -0400, Davide Pesavento wrote:
6 > > > On Mon, Aug 20, 2018 at 11:00 AM Michał Górny <mgorny@g.o> wrote:
7 > > > >
8 > > > > Improve the description of USE=test to clearly indicate what the flag
9 > > > > does instead of claiming it workaround for Portage.
10 > > > > ---
11 > > > > profiles/use.desc | 2 +-
12 > > > > 1 file changed, 1 insertion(+), 1 deletion(-)
13 > > > >
14 > > > > Changed in v2: added description of FEATURES=test relevance
15 > > > >
16 > > > > diff --git a/profiles/use.desc b/profiles/use.desc
17 > > > > index 078226b92250..bd360194a09b 100644
18 > > > > --- a/profiles/use.desc
19 > > > > +++ b/profiles/use.desc
20 > > > > @@ -338,7 +338,7 @@ taglib - Enable tagging support with taglib
21 > > > > tcl - Add support the Tcl language
22 > > > > tcmalloc - Use the dev-util/google-perftools libraries to replace the malloc() implementation with a possibly faster one
23 > > > > tcpd - Add support for TCP wrappers
24 > > > > -test - Workaround to pull in packages needed to run with FEATURES=test. Portage-2.1.2 handles this internally, so don't set it in make.conf/package.use anymore
25 > > > > +test - Enable dependencies and/or preparations necessary to run tests (usually automatically controled by FEATURES=test but can be switched independently)
26 > > >
27 > > > s/controled/controlled/
28 > > > s/switched/enabled/
29 > >
30 > > It can also be disabled. Maybe 'toggled'?
31 > >
32 >
33 > Wait, are you saying that I can set USE=-test while FEATURES=test is
34 > enabled? Is that a valid combination?
35
36 make.conf(5) says the following regarding FEATURES=test:
37
38 This feature implies the "test"USE flag if it is a member of IUSE,
39 either explicitly or implicitly [...]. The "test" USE flag is also
40 automatically disabled when the "test" feature is disabled.
41
42 So, it looks like the whole "independently" part in the use desc is incorrect.