Gentoo Archives: gentoo-dev

From: "Bo Ørsted Andresen" <bo.andresen@××××.dk>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Making built_with_use die by default with EAPI 2
Date: Tue, 23 Sep 2008 09:41:58
Message-Id: 200809231141.47863.bo.andresen@zlin.dk
In Reply to: Re: [gentoo-dev] Making built_with_use die by default with EAPI 2 by "Petteri Räty"
1 On Monday 22 September 2008 22:25:20 Petteri Räty wrote:
2 > > If you mean something like
3 > >
4 > > built_with_use cat/foo coolfeature || ewarn "bar will be more useful if you rebuild cat/foo with USE=coolfeature"
5 > >
6 > > then you can use
7 > >
8 > > has_version 'cat/foo[coolfeature]' || ...
9 > >
10 > > instead.
11 >
12 > What does this report if cat/foo does not have coolfeature use flag in
13 > some version? Meaning can this support cases which need --missing true.
14
15 False. If for instance coolfeature was made optional in >=pv you can use logic
16 like:
17
18 if has_version '>=cat/foo-pv' && ! has_version 'cat/foo[coolfeature]'; then
19 ewarn '...'
20 fi
21
22 --
23 Bo Andresen

Attachments

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

Replies

Subject Author
Re: [gentoo-dev] Making built_with_use die by default with EAPI 2 "Petteri Räty" <betelgeuse@g.o>