Task #8381
closedrust: auto-detect suitable rust version in ./configure
Description
On Ubuntu 22.04 and 24.04, rustc is 1.75.0. However, more versions, like 1.89.0 are available, but get installed as cargo-1.89, rustc-1.89, etc.
This is currently supported with environment variables, for example:
RUSTC=rustc-1.89 CARGO=cargo-1.89 ./configure
But what I'm wondering is if ./configure should be smarter. If the default rustc is too old, should we check for newer versions?
JI Updated by Jason Ish 4 months ago
- Related to Task #7745: rust: set new minimum Rust version for Suricata 9.0 added
JI Updated by Jason Ish 4 months ago
- Related to Task #8382: rust: update minimum rust version to 1.85 added
VJ Updated by Victor Julien 4 months ago
I think this is a bit of a anti-pattern for configure/autotools. Perhaps we can add a detection to our rust check that says something like:
"On Ubuntu install rustc-1.89 `apt install rustc-1.89` and rerun configure with `RUSTC=rustc-1.89 ./configure ...`"
JI Updated by Jason Ish about 1 month ago
- Status changed from Feedback to Rejected
Rejecting for now. A simple "PATH=/usr/lib/rust-1.89/bin:$PATH" can be used on Ubuntu. This is an existing pattern by other tooling, and RedHat software collections. And our CI will contain many examples of its usage.