1 |
>>>>> On Thu, 15 Oct 2015, Ciaran McCreesh wrote: |
2 |
|
3 |
> On Thu, 15 Oct 2015 19:05:08 +0200 |
4 |
> Ulrich Mueller <ulm@g.o> wrote: |
5 |
>> Hm, how about replacing above sentence by: "It is an error if an |
6 |
>> ebuild calls any of these functions in global scope."? |
7 |
|
8 |
> That will work, if the appropriate Portage developer hands can be |
9 |
> twisted. |
10 |
|
11 |
Patch below, to be applied to master. |
12 |
|
13 |
--- |
14 |
pkg-mgr-commands.tex | 4 ++-- |
15 |
1 file changed, 2 insertions(+), 2 deletions(-) |
16 |
|
17 |
diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex |
18 |
index 1884a5c..83fbd68 100644 |
19 |
--- a/pkg-mgr-commands.tex |
20 |
+++ b/pkg-mgr-commands.tex |
21 |
@@ -646,8 +646,8 @@ in table~\ref{tab:compression-table} as supporting \t{docompress}. |
22 |
|
23 |
\subsubsection{Use List Functions} |
24 |
These functions provide behaviour based upon set or unset use flags. Ebuilds must not run any of |
25 |
-these commands once the current phase function has returned. Ebuilds must not run any of these |
26 |
-functions in global scope. |
27 |
+these commands once the current phase function has returned. It is an error if an ebuild calls any |
28 |
+of these functions in global scope. |
29 |
|
30 |
If any of these functions is called with a flag value that is not included in \t{IUSE\_EFFECTIVE}, |
31 |
either behaviour is undefined or it is an error as decided by table~\ref{tab:use-list-strictness}. |
32 |
-- |
33 |
2.6.1 |