commit: 0f362fd5e90dc9fb21cd56243867072b4552d133
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 27 10:42:54 2025 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Wed Aug 13 04:58:57 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f362fd5
install-qa-check.d/60cargo-eclass: scan over ${WORKDIR}
There is a possibility that the current packages uses dependencies
which require a newer version of Rust than the one listed in ${S}.
For those cases, scan over the full ${WORKDIR} directory tree
instead of just ${S}.
Maybe it will introduce false positives, for crates which are included
but not used during real compilation, but it is better than
missing a dependency which requires a newer version of Rust.
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
metadata/install-qa-check.d/60cargo-eclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/metadata/install-qa-check.d/60cargo-eclass
b/metadata/install-qa-check.d/60cargo-eclass
index a80d53449a9d..743ca355de75 100644
--- a/metadata/install-qa-check.d/60cargo-eclass
+++ b/metadata/install-qa-check.d/60cargo-eclass
@@ -15,7 +15,7 @@ cargo_ver_check() {
# Maximum value for "edition" across Cargo.toml files
local cargo_toml_edition=$(
- find "${S}" -name Cargo.toml -exec sed -n -e
's/^\s*edition\s*=\s*"\([0-9]*\)"\s*$/\1/p' {} \+ |
+ find "${WORKDIR}" -name Cargo.toml -exec sed -n -e
's/^\s*edition\s*=\s*"\([0-9]*\)"\s*$/\1/p' {} \+ |
sort -n |
tail -n 1
)