commit:     3a00a5fc63342e1a2a5e01ce2db232e5d21f2c3f
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 10 02:16:27 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Aug  1 02:38:38 2021 +0000
URL:        https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=3a00a5fc

ebuild-writing/common-mistakes: mention leftover USE flags, inherits

Suggested-by: Joonas Niilola <juippis <AT> gentoo.org> (inherits)
Signed-off-by: Sam James <sam <AT> gentoo.org>

 ebuild-writing/common-mistakes/text.xml | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/ebuild-writing/common-mistakes/text.xml 
b/ebuild-writing/common-mistakes/text.xml
index ce4bc95..1969efe 100644
--- a/ebuild-writing/common-mistakes/text.xml
+++ b/ebuild-writing/common-mistakes/text.xml
@@ -378,6 +378,19 @@ Make sure when you bump a version, the stable KEYWORDS are 
all marked as
 <c>~</c>.
 </p>
 
+</body>
+</subsection>
+<subsection>
+<title>Unused flags and eclass inherits</title>
+<body>
+
+<p>
+Sometimes obsolete USE flags remain in IUSE despite having no function, e.g. a
+dependency may have become mandatory but the USE flag remains in IUSE and 
*DEPEND.
+Similarly, eclasses often become redundant due to changes in the ebuild, or 
new EAPIs,
+e.g. <c>eutils.eclass</c> should be obsolete in modern EAPIs. Remember to 
prune these.
+</p>
+
 </body>
 </subsection>
 <subsection>

Reply via email to