1 |
On 12/11/19 9:58 AM, Michał Górny wrote: |
2 |
> Append RESTRICT="!test? ( test )" in the default case when virtualx |
3 |
> is conditional to USE=test. This fixes 440 MissingTestRestrict |
4 |
> warnings. |
5 |
> |
6 |
> Signed-off-by: Michał Górny <mgorny@g.o> |
7 |
> --- |
8 |
> eclass/virtualx.eclass | 2 ++ |
9 |
> 1 file changed, 2 insertions(+) |
10 |
> |
11 |
> diff --git a/eclass/virtualx.eclass b/eclass/virtualx.eclass |
12 |
> index 40eeea5463bc..6aba6bf488dd 100644 |
13 |
> --- a/eclass/virtualx.eclass |
14 |
> +++ b/eclass/virtualx.eclass |
15 |
> @@ -89,6 +89,8 @@ case ${VIRTUALX_REQUIRED} in |
16 |
> fi |
17 |
> RDEPEND="" |
18 |
> IUSE="${VIRTUALX_REQUIRED}" |
19 |
> + [[ ${VIRTUALX_REQUIRED} == test ]] && |
20 |
> + RESTRICT+=" !test? ( test )" |
21 |
> ;; |
22 |
> esac |
23 |
> |
24 |
> |
25 |
|
26 |
Is there a better way to address this than editing a ton of eclasses |
27 |
independently? |
28 |
|
29 |
-- |
30 |
NP-Hardass |