1 |
W dniu nie, 31.12.2017 o godzinie 14∶31 +0100, użytkownik Ulrich Müller |
2 |
napisał: |
3 |
> epatch() is provided by epatch.eclass now. Also comment the inherit |
4 |
> line, since not every ebuild will use it. |
5 |
> |
6 |
> Empty SLOT doesn't disable slots, but is outright illegal in all EAPIs. |
7 |
> Similar for KEYWORDS="*", which isn't "deprecated" but invalid. |
8 |
> --- |
9 |
> skel.ebuild | 9 ++++----- |
10 |
> 1 file changed, 4 insertions(+), 5 deletions(-) |
11 |
> |
12 |
> diff --git a/skel.ebuild b/skel.ebuild |
13 |
> index 7ac9dfb7d6d8..4c19b1de4cb8 100644 |
14 |
> --- a/skel.ebuild |
15 |
> +++ b/skel.ebuild |
16 |
> @@ -13,9 +13,9 @@ |
17 |
> EAPI=6 |
18 |
> |
19 |
> # inherit lists eclasses to inherit functions from. For example, an ebuild |
20 |
> -# that needs the epatch function from eutils.eclass won't work without the |
21 |
> +# that needs the epatch function from epatch.eclass won't work without the |
22 |
> # following line: |
23 |
> -inherit eutils |
24 |
> +#inherit epatch |
25 |
|
26 |
Well, given that it's EAPI 6 and we do not want to encourage people to |
27 |
use epatch there, I would prefer if we replaced that example with |
28 |
something else. But it's just a wishful thinking here. |
29 |
|
30 |
> # |
31 |
> # eclasses tend to list descriptions of how to use their functions properly. |
32 |
> # take a look at /usr/portage/eclass/ for more examples. |
33 |
> @@ -46,7 +46,7 @@ LICENSE="" |
34 |
> # of each SLOT and remove everything else. |
35 |
> # Note that normal applications should use SLOT="0" if possible, since |
36 |
> # there should only be exactly one version installed at a time. |
37 |
> -# DO NOT USE SLOT=""! This tells Portage to disable SLOTs for this package. |
38 |
> +# Do not use SLOT="", because the SLOT variable must not be empty. |
39 |
> SLOT="0" |
40 |
> |
41 |
> # Using KEYWORDS, we can record masking information *inside* an ebuild |
42 |
> @@ -63,8 +63,7 @@ SLOT="0" |
43 |
> # For binary packages, use -* and then list the archs the bin package |
44 |
> # exists for. If the package was for an x86 binary package, then |
45 |
> # KEYWORDS would be set like this: KEYWORDS="-* x86" |
46 |
> -# DO NOT USE KEYWORDS="*". This is deprecated and only for backward |
47 |
> -# compatibility reasons. |
48 |
> +# Do not use KEYWORDS="*". This is not valid in an ebuild context. |
49 |
> KEYWORDS="~x86" |
50 |
> |
51 |
> # Comprehensive list of any and all USE flags leveraged in the ebuild, |
52 |
|
53 |
LGTM. |
54 |
|
55 |
-- |
56 |
Best regards, |
57 |
Michał Górny |