pkgcore / pkgcheck

pkgcore-based QA utility for ebuild repos
https://pkgcore.github.io/pkgcheck
BSD 3-Clause "New" or "Revised" License
34 stars 29 forks source link

[New Check]: Recommend `inherit fortran-2`.eclass instead of `virtual/fortran` in (B)DEPEND #681

Open APN-Pucky opened 1 month ago

APN-Pucky commented 1 month ago

Is there an existing such new check request for this?

Explain

Usually if a package uses fortran the first approach is to just have

BDEPEND="virtual/fortran"

With clear deficits compared to the recommended inherit fortran-2.

Examples

https://gitweb.gentoo.org/repo/gentoo.git/tree/sci-physics/fastjet/fastjet-3.4.0-r1.ebuild#n35 ^ still uses BDEPEND on fortran, while the later version is updated using inherit instead: https://gitweb.gentoo.org/repo/gentoo.git/tree/sci-physics/fastjet/fastjet-3.4.2.ebuild#n15

https://github.com/gentoo/sci/pull/1267#discussion_r1593557911

Just grepping through ::gentoo I see many virtual/fortan BDEPENDS that probably should better use the fortran eclass.

Output message

suggest usage of inherit fortran-2 over BDEPEND="virtual/fortran"

Documentation

No response

Result level

info