Gentoo Archives: gentoo-dev

From: Alexandre Rostovtsev <tetromino@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Change USE flags when compiling with FEATURES=test
Date: Sat, 17 Mar 2012 19:52:01
Message-Id: 1332013871.13635.7.camel@rook
In Reply to: [gentoo-dev] Change USE flags when compiling with FEATURES=test by Matt Turner
1 On Sat, 2012-03-17 at 15:33 -0400, Matt Turner wrote:
2 > So you run set FEATURES=test to run a package's test suite during
3 > keywording. Later, you emerge -vuNDa ... and portage wants to reemerge
4 > that package with USE=-test.
5 >
6 > Can't we avoid this somehow? I presume in the vast majority of cases
7 > emerging with FEATURES/USE=test doesn't actually affect what's
8 > installed.
9 >
10 > I'd guess we'd need to be able to remove 'test' from the set of IUSE
11 > and have a new helper function to check if 'test' is in FEATURES?
12
13 Typically "test" is added to IUSE only when building and/or running the
14 test suite requires specifying additional dependencies. So if we remove
15 "test" from IUSE, we would need to allow DEPEND to have FEATURES-based
16 conditionals. Which would probably mean a new EAPI.
17
18 I think the easier solution is to modify portage to ignore changes in
19 the "test" USE flag when doing "emerge --newuse".
20
21 -Alexandre.

Replies