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

BannedEapiCommand: check for has_version --host-root #631

Closed arthurzam closed 9 months ago

arthurzam commented 9 months ago

Catch has_version --host-root and best_version --host-root calls, which are not allowed in EAPI>=7. Use pkgcore EAPI's option query_host_root which is False for EAPI>=7, so great flag for our case.

On current master I only catch:

net-misc/zerotier
  BannedEapiCommand: version 1.6.4: 'has_version --host-root' banned in EAPI 7, used on line 38: 'has_version --host-root "sys-devel/clang:${LLVM_SLOT}"'
  BannedEapiCommand: version 1.6.4: 'has_version --host-root' banned in EAPI 7, used on line 43: 'has_version --host-root "=sys-devel/lld-${LLVM_SLOT}*"'

Resolves: https://github.com/pkgcore/pkgcheck/issues/630