On Sat, 2020-11-07 at 15:18 -0700, Tim Harder wrote: > In terms of QA, unintentional transitive eclass usage is generally bad. > This occurs when an ebuild uses functionality from an eclass it doesn't > directly inherit. It would be useful for eclasses that allow certain > transitive usage (e.g. various python eclasses) to be able to tag that > relationship internally so tools can make use of that data. > > Along those lines, pkgcheck now has eclass doc parsing support which > allows scanning ebuilds for missing, indirect, or unused eclass inherits > as well as internal eclass function usage. In order to more closely > report valid indirect inherit results, some tag including this data > needs to be included for eclasses allowing this relationship. > > What do interested parties think about including an optional eclass doc > tag such as '@TRANSITIVE_INHERITS:' or other similar name in eclasses > that allow this? The tag value would be a space-separated list of > allowed transitive inherits for the given eclass. >
Technically speaking, I would go even further and say that listing python-utils-r1 redundantly is wrong. This inheritance is considered an implementation detail of the eclass. -- Best regards, Michał Górny
signature.asc
Description: This is a digitally signed message part