Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/devmanual:master commit in: ebuild-writing/common-mistakes/
Date: Sun, 01 Aug 2021 02:38:51
Message-Id: 1627785518.3a00a5fc63342e1a2a5e01ce2db232e5d21f2c3f.sam@gentoo
1 commit: 3a00a5fc63342e1a2a5e01ce2db232e5d21f2c3f
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 10 02:16:27 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 1 02:38:38 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=3a00a5fc
7
8 ebuild-writing/common-mistakes: mention leftover USE flags, inherits
9
10 Suggested-by: Joonas Niilola <juippis <AT> gentoo.org> (inherits)
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 ebuild-writing/common-mistakes/text.xml | 13 +++++++++++++
14 1 file changed, 13 insertions(+)
15
16 diff --git a/ebuild-writing/common-mistakes/text.xml b/ebuild-writing/common-mistakes/text.xml
17 index ce4bc95..1969efe 100644
18 --- a/ebuild-writing/common-mistakes/text.xml
19 +++ b/ebuild-writing/common-mistakes/text.xml
20 @@ -378,6 +378,19 @@ Make sure when you bump a version, the stable KEYWORDS are all marked as
21 <c>~</c>.
22 </p>
23
24 +</body>
25 +</subsection>
26 +<subsection>
27 +<title>Unused flags and eclass inherits</title>
28 +<body>
29 +
30 +<p>
31 +Sometimes obsolete USE flags remain in IUSE despite having no function, e.g. a
32 +dependency may have become mandatory but the USE flag remains in IUSE and *DEPEND.
33 +Similarly, eclasses often become redundant due to changes in the ebuild, or new EAPIs,
34 +e.g. <c>eutils.eclass</c> should be obsolete in modern EAPIs. Remember to prune these.
35 +</p>
36 +
37 </body>
38 </subsection>
39 <subsection>