1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA512 |
3 |
|
4 |
|
5 |
|
6 |
Dnia 30 października 2015 09:17:49 CET, Ulrich Mueller <ulm@g.o> napisał(a): |
7 |
>>>>>> On Thu, 29 Oct 2015, Ulrich Mueller wrote: |
8 |
> |
9 |
>> We have two successful states, so obviously (at least) one of them |
10 |
>> must return shell false. |
11 |
> |
12 |
>This is the part which causes the problems. As discussed amongst |
13 |
>council members, we are going to drop this. So, the command will |
14 |
>return true for success and false for failure. |
15 |
> |
16 |
>If it should turn out that information about applied user's patches |
17 |
>will be needed, a query function (that could even show a list of |
18 |
>applied patches, like perl -V does) can be added later. This will be |
19 |
>something for EAPI 7, though. |
20 |
|
21 |
Sounds good to me. In fact, we can't really predict what user patches may change and what ebuild changes they may require. And we can't really expect every ebuild to account even for the most common changes. |
22 |
|
23 |
> |
24 |
>Patch v3 is below. |
25 |
> |
26 |
>Ulrich |
27 |
> |
28 |
> |
29 |
>From cad46e884d84bacbd7763ea7cec69b59f5031acb Mon Sep 17 00:00:00 2001 |
30 |
>From: =?UTF-8?q?Ulrich=20M=C3=BCller?= <ulm@g.o> |
31 |
>Date: Fri, 30 Oct 2015 01:37:00 +0100 |
32 |
>Subject: [PATCH] EAPI 6: Specify return status for eapply_user. |
33 |
> |
34 |
>--- |
35 |
> pkg-mgr-commands.tex | 10 ++++++---- |
36 |
> 1 file changed, 6 insertions(+), 4 deletions(-) |
37 |
> |
38 |
>diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex |
39 |
>index 51f6ebf..b9d53bd 100644 |
40 |
>--- a/pkg-mgr-commands.tex |
41 |
>+++ b/pkg-mgr-commands.tex |
42 |
>@@ -157,10 +157,12 @@ Ebuilds must not run any of these commands once |
43 |
>the current phase function has r |
44 |
>\item[eapply\_user] \featurelabel{eapply-user} Takes no arguments. |
45 |
>Package managers supporting it |
46 |
>apply user-provided patches to the source tree in the current working |
47 |
>directory. Exact behaviour |
48 |
>is implementation defined and beyond the scope of this specification. |
49 |
>Package managers not |
50 |
>- supporting it must implement the command as a no-op. Only |
51 |
>available in EAPIs listed in |
52 |
>- table~\ref{tab:patch-commands} as supporting \t{eapply\_user}. In |
53 |
>EAPIs where it is supported, |
54 |
>- \t{eapply\_user} must be called once in the \t{src\_prepare} |
55 |
>phase; for any subsequent calls |
56 |
>- the command will do nothing. |
57 |
>+ supporting it must implement the command as a no-op. Returns shell |
58 |
>true (0) if patches applied |
59 |
>+ successfully, or if no patches were provided. Otherwise, aborts |
60 |
>the build process, unless run |
61 |
>+ using \t{nonfatal}, in which case it returns non-zero exit status. |
62 |
>Only available in EAPIs |
63 |
>+ listed in table~\ref{tab:patch-commands} as supporting |
64 |
>\t{eapply\_user}. In EAPIs where it is |
65 |
>+ supported, \t{eapply\_user} must be called once in the |
66 |
>\t{src\_prepare} phase; for any |
67 |
>+ subsequent calls, the command will do nothing and return~0. |
68 |
> \end{description} |
69 |
> |
70 |
> \begin{algorithm} |
71 |
|
72 |
- -- |
73 |
Best regards, |
74 |
Michał Górny |
75 |
-----BEGIN PGP SIGNATURE----- |
76 |
|
77 |
iQJJBAEBCgAzLBxNaWNoYcWCIEfDs3JueSAoR2VudG9vKSA8bWdvcm55QGdlbnRv |
78 |
by5vcmc+BQJWMzIYAAoJELB6GurvtEZOQ5kP/2WEgAZH48/PuoLPbdH8fhfYwZXk |
79 |
AitCVDzVlscN5hvrMxV49e0/UbvUFFQbWszwplH4BGjQ7GW2e2mBd+4IjzktkKiL |
80 |
RT2YyCl8BdROaNQWx0cxZiC/VajvzEX7GAYgOV/GiBGb5671HU2ByjMlIJZkJafF |
81 |
oqewZQh1yDhzMhsBMBO6COlJYkCvbUDnoghcqjshCDdIjJY7REvtAh9Ce9FvhGlF |
82 |
IznytxM9/yXabk6am6TX7caU3eAiH/gYWV9T7q4owYSuiTix850gwxA4WcFh1uW7 |
83 |
45gncBKxSpqtcaagZVsZZOa8eL2Q67K3b+gWNZkPIYLUsDtYiDuSSDmkez0ALWRz |
84 |
JBE0nAxcG1l1S81P5CsgeL1RejSMJTwjbrPJR1kjPMeSOTCueLMWjWY/2U3gR+wS |
85 |
w4Q01mEsDH3I7Q4GUA2T10HagUeW1tv9bVLbwz6GrjZcj0hEQDYetijcGauiDjrB |
86 |
6YG5gSNszRyhQqxeKdZ4Hc0kXjCdk8vt3/aK2pEYil8vBh+O+LlNqLB4VoviKT0x |
87 |
EjUXBbXVq68FAY6FcdIK8sp57HquXsEPgCsx1p8PuR0s0x7YSbS1C6ztFFwF6v0d |
88 |
XFbR0D8ePN0yReY9IqHu7lPEmhNcq8mZ/l83PIOeZsnz/T2fDo5i8WpSgseioD8j |
89 |
m8pwHyHNhbg6lfTE |
90 |
=1uvJ |
91 |
-----END PGP SIGNATURE----- |