Gentoo Archives: gentoo-dev

From: Alexis Ballier <aballier@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: useflag policies
Date: Wed, 12 Aug 2015 18:19:25
Message-Id: 20150812201908.541a94f2@gentoo.org
In Reply to: Re: [gentoo-dev] Re: useflag policies by Ulrich Mueller
1 On Wed, 12 Aug 2015 20:00:42 +0200
2 Ulrich Mueller <ulm@g.o> wrote:
3
4 > >>>>> On Wed, 12 Aug 2015, Ciaran McCreesh wrote:
5 >
6 > >> pkg_pretend() {
7 > >> if use qt4; then
8 > >> required_use -qt5
9 > >> else
10 > >> required_use qt5
11 > >> fi
12 > >> }
13 >
14 > > And how would the PM understand that -qt5 is conditional upon qt4?
15 > > Such knowledge is required if it's supposed to auto-resolve stuff...
16 >
17 > Right, the above was too simple (and wrong). It should have been:
18 >
19 > pkg_pretend() {
20 > use qt4 && use qt5 && required_use -qt5
21 > use qt4 || use qt5 || required_use qt4
22 > }
23
24 what is the difference ?
25
26 pkg_pretend still needs to be executed to guess what useflags are
27 enabled or not, which information is needed before dependency
28 calculation
29
30 or are we talking about moving pkg_pretend into dependency calculation?

Replies

Subject Author
Re: [gentoo-dev] Re: useflag policies Ian Stakenvicius <axs@g.o>
Re: [gentoo-dev] Re: useflag policies Ciaran McCreesh <ciaran.mccreesh@××××××××××.com>