Gentoo Archives: gentoo-dev

From: "Petteri Räty" <betelgeuse@g.o>
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 20:33:47
Message-Id: 48D952A8.6050201@gentoo.org
In Reply to: Re: [gentoo-dev] Making built_with_use die by default with EAPI 2 by "Bo Ørsted Andresen"
1 Bo Ørsted Andresen kirjoitti:
2 > On Monday 22 September 2008 22:25:20 Petteri Räty wrote:
3 >>> If you mean something like
4 >>>
5 >>> built_with_use cat/foo coolfeature || ewarn "bar will be more useful if you rebuild cat/foo with USE=coolfeature"
6 >>>
7 >>> then you can use
8 >>>
9 >>> has_version 'cat/foo[coolfeature]' || ...
10 >>>
11 >>> instead.
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 I think this should cover all the current functionality with
24 built_with_use. So when before EAPI 2 goes live I will commit:
25
26 23:29 < zmedico> has EAPI 0 1 || die "build_with_use is only allowed in
27 EAPI 0 or 1"
28
29 Unless someone objects with good reasoning of course.
30
31 Regards,
32 Petteri

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 Alexis Ballier <aballier@g.o>