1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA256 |
3 |
|
4 |
On 12/08/15 03:15 PM, Alexis Ballier wrote: |
5 |
> On Wed, 12 Aug 2015 14:24:06 -0400 Ian Stakenvicius |
6 |
> <axs@g.o> wrote: |
7 |
> |
8 |
>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 |
9 |
>> |
10 |
>> On 12/08/15 02:19 PM, Alexis Ballier wrote: |
11 |
>>> On Wed, 12 Aug 2015 20:00:42 +0200 Ulrich Mueller |
12 |
>>> <ulm@g.o> wrote: |
13 |
>>> |
14 |
>>>>>>>>> On Wed, 12 Aug 2015, Ciaran McCreesh wrote: |
15 |
>>>> |
16 |
>>>>>> pkg_pretend() { if use qt4; then required_use -qt5 else |
17 |
>>>>>> required_use qt5 fi } |
18 |
>>>> |
19 |
>>>>> And how would the PM understand that -qt5 is conditional |
20 |
>>>>> upon qt4? Such knowledge is required if it's supposed to |
21 |
>>>>> auto-resolve stuff... |
22 |
>>>> |
23 |
>>>> Right, the above was too simple (and wrong). It should |
24 |
>>>> have been: |
25 |
>>>> |
26 |
>>>> pkg_pretend() { use qt4 && use qt5 && required_use -qt5 use |
27 |
>>>> qt4 || use qt5 || required_use qt4 } |
28 |
>>> |
29 |
>>> what is the difference ? |
30 |
>>> |
31 |
>>> pkg_pretend still needs to be executed to guess what |
32 |
>>> useflags are enabled or not, which information is needed |
33 |
>>> before dependency calculation |
34 |
>>> |
35 |
>>> or are we talking about moving pkg_pretend into dependency |
36 |
>>> calculation? |
37 |
>>> |
38 |
>> |
39 |
>> |
40 |
>> pkg_pretend is already executed during dependency calculation |
41 |
>> in portage, although this doesn't seem to actually be specified |
42 |
>> in PMS: "The pkg_pretend function is called some unspecified |
43 |
>> time before a (possibly hypothetical) normal sequence." as per |
44 |
>> PMS sec.9.2 |
45 |
>> |
46 |
> |
47 |
> that's definitely not the impression I've got with emerge -uDNa |
48 |
> world: dep calculation, show result, wait for input, accept, and |
49 |
> then pkg_pretend stuff gets executed. |
50 |
> |
51 |
|
52 |
Apologies if I'm wrong on that; i'm rather sleep deprived and i |
53 |
didn't actually check an emerge -uDN before I posted. I was sure i |
54 |
saw the "checking for sufficient space" messages show up during the |
55 |
dependency-calcs though. |
56 |
|
57 |
Regardless, the role and point of execution of pkg_pretend would |
58 |
definitely need to be clarified in PMS as yes we would be talking |
59 |
about ensuring it happens at a specific point in the dependency |
60 |
calculation process for each package. |
61 |
-----BEGIN PGP SIGNATURE----- |
62 |
Version: GnuPG v2 |
63 |
|
64 |
iF4EAREIAAYFAlXLnIEACgkQAJxUfCtlWe1RpQD9H0WKWDdl7tVHj6KgOoOHPswT |
65 |
kPQQ0GFadfeo/isbxesBAIEL24JrVyzAEDY2KrofwYe+OVE3LV71jwMpnaGIBAHL |
66 |
=AMxp |
67 |
-----END PGP SIGNATURE----- |