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. |