Gentoo Archives: gentoo-dev

From: NP-Hardass <NP-Hardass@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH] virtualx.eclass: Append RESTRICT="!test? ( test )" by default
Date: Thu, 12 Dec 2019 17:03:03
Message-Id: 0eda1074-eb6b-cda4-9ece-45c91f318e1c@gentoo.org
In Reply to: [gentoo-dev] [PATCH] virtualx.eclass: Append RESTRICT="!test? ( test )" by default by "Michał Górny"
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

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies