Closed thesamesam closed 10 months ago
Maybe we should do it for these too:
go-module.eclass
: GO_OPTIONAL
and dev-lang/go
tmpfiles.eclass
: TMPFILES_OPTIONAL
and virtual/tmpfiles
ruby-ng.eclass
: RUBY_OPTIONAL
and dev-lang/ruby
or virtual/rubygems
?
Is there an existing such new check request for this?
Explain
cargo.eclass
hasCARGO_OPTIONAL
which requires consumers to handle dependencies themselves, it also disables exporting phases.With
CARGO_OPTIONAL
set, it's wrong to not havevirtual/rust
(orRUST_DEPEND
- see below) in any*DEPEND
because surely Rust is being used somewhere.Note: I'm not sure if we should check for
RUST_DEPEND
orvirtual/rust
.RUST_DEPEND
doesn't seem to be a documented eclass variable right now.This will work similarly to
PythonMissingDeps
(https://github.com/pkgcore/pkgcheck/commit/966f4d1cf254ce2610d0697d65c434056328a798).Examples
https://github.com/gentoo/gentoo/commit/df6ef35299d01e4e8805b2f2964700db279bab8e
Output message
RustMissingDeps: Package sets CARGO_OPTIONAL but does not depend on virtual/rust.
Documentation
No response
Result level
warning