Gentoo Archives: gentoo-dev

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] [PATCH] skel.ebuild: Update comments for inherit, SLOT, KEYWORDS.
Date: Sun, 31 Dec 2017 14:04:30
Message-Id: 23112.61021.307566.914537@a1i15.kph.uni-mainz.de
1 epatch() is provided by epatch.eclass now. Also comment the inherit
2 line, since not every ebuild will use it.
3
4 Empty SLOT doesn't disable slots, but is outright illegal in all EAPIs.
5 Similar for KEYWORDS="*", which isn't "deprecated" but invalid.
6 ---
7 skel.ebuild | 9 ++++-----
8 1 file changed, 4 insertions(+), 5 deletions(-)
9
10 diff --git a/skel.ebuild b/skel.ebuild
11 index 7ac9dfb7d6d8..4c19b1de4cb8 100644
12 --- a/skel.ebuild
13 +++ b/skel.ebuild
14 @@ -13,9 +13,9 @@
15 EAPI=6
16
17 # inherit lists eclasses to inherit functions from. For example, an ebuild
18 -# that needs the epatch function from eutils.eclass won't work without the
19 +# that needs the epatch function from epatch.eclass won't work without the
20 # following line:
21 -inherit eutils
22 +#inherit epatch
23 #
24 # eclasses tend to list descriptions of how to use their functions properly.
25 # take a look at /usr/portage/eclass/ for more examples.
26 @@ -46,7 +46,7 @@ LICENSE=""
27 # of each SLOT and remove everything else.
28 # Note that normal applications should use SLOT="0" if possible, since
29 # there should only be exactly one version installed at a time.
30 -# DO NOT USE SLOT=""! This tells Portage to disable SLOTs for this package.
31 +# Do not use SLOT="", because the SLOT variable must not be empty.
32 SLOT="0"
33
34 # Using KEYWORDS, we can record masking information *inside* an ebuild
35 @@ -63,8 +63,7 @@ SLOT="0"
36 # For binary packages, use -* and then list the archs the bin package
37 # exists for. If the package was for an x86 binary package, then
38 # KEYWORDS would be set like this: KEYWORDS="-* x86"
39 -# DO NOT USE KEYWORDS="*". This is deprecated and only for backward
40 -# compatibility reasons.
41 +# Do not use KEYWORDS="*". This is not valid in an ebuild context.
42 KEYWORDS="~x86"
43
44 # Comprehensive list of any and all USE flags leveraged in the ebuild,
45 --
46 2.15.1

Replies