1 |
On Wed, 12 Aug 2015 14:24:06 -0400 |
2 |
Ian Stakenvicius <axs@g.o> wrote: |
3 |
|
4 |
> -----BEGIN PGP SIGNED MESSAGE----- |
5 |
> Hash: SHA256 |
6 |
> |
7 |
> On 12/08/15 02:19 PM, Alexis Ballier wrote: |
8 |
> > On Wed, 12 Aug 2015 20:00:42 +0200 Ulrich Mueller |
9 |
> > <ulm@g.o> wrote: |
10 |
> > |
11 |
> >>>>>>> On Wed, 12 Aug 2015, Ciaran McCreesh wrote: |
12 |
> >> |
13 |
> >>>> pkg_pretend() { if use qt4; then required_use -qt5 else |
14 |
> >>>> required_use qt5 fi } |
15 |
> >> |
16 |
> >>> And how would the PM understand that -qt5 is conditional upon |
17 |
> >>> qt4? Such knowledge is required if it's supposed to |
18 |
> >>> auto-resolve stuff... |
19 |
> >> |
20 |
> >> Right, the above was too simple (and wrong). It should have |
21 |
> >> been: |
22 |
> >> |
23 |
> >> pkg_pretend() { use qt4 && use qt5 && required_use -qt5 use qt4 |
24 |
> >> || use qt5 || required_use qt4 } |
25 |
> > |
26 |
> > what is the difference ? |
27 |
> > |
28 |
> > pkg_pretend still needs to be executed to guess what useflags |
29 |
> > are enabled or not, which information is needed before |
30 |
> > dependency calculation |
31 |
> > |
32 |
> > or are we talking about moving pkg_pretend into dependency |
33 |
> > calculation? |
34 |
> > |
35 |
> |
36 |
> |
37 |
> pkg_pretend is already executed during dependency calculation in |
38 |
> portage, although this doesn't seem to actually be specified in PMS: |
39 |
> "The pkg_pretend function is called some unspecified time before a |
40 |
> (possibly hypothetical) normal sequence." as per PMS sec.9.2 |
41 |
> |
42 |
|
43 |
that's definitely not the impression I've got with emerge -uDNa world: |
44 |
dep calculation, show result, wait for input, accept, and then |
45 |
pkg_pretend stuff gets executed. |