Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 873754

Summary: dev-util/pkgcheck: Warn if an eclass is used without @SUPPORTED_EAPIS listing the current EAPI
Product: Gentoo Hosted Projects Reporter: Sam James <sam>
Component: PkgCoreAssignee: Arthur Zamarin <arthurzam>
Status: RESOLVED INVALID    
Severity: normal CC: mgorny
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=506172
Whiteboard:
Package list:
Runtime testing required: ---

Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-01 02:48:03 UTC
It's not required for eclasses to use guards to die on unknown EAPIs, so we should compare the @SUPPORTED_EAPIS eclassdoc with the current EAPI used in an inheriting ebuild.
Comment 1 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2022-10-01 07:44:50 UTC
I think this is already implemented as UnsupportedEclassEapi under EapiCheck?

https://pkgcore.github.io/pkgcheck/man/pkgcheck.html#unsupportedeclasseapi
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-01 08:29:47 UTC
(In reply to Arthur Zamarin from comment #1)
> I think this is already implemented as UnsupportedEclassEapi under EapiCheck?
> 
> https://pkgcore.github.io/pkgcheck/man/pkgcheck.html#unsupportedeclasseapi

Oh my, yes!