Project

General

Profile

Actions

Task #8381

open

rust: auto-detect suitable rust version in ./configure

Added by Jason Ish 1 day ago. Updated 1 day ago.

Status:
Feedback
Priority:
Normal
Assignee:
Target version:
Effort:
Difficulty:
Label:

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?


Related issues 2 (2 open0 closed)

Related to Suricata - Task #7745: rust: set new minimum Rust version for Suricata 9.0NewOISF DevActions
Related to Suricata - Task #8382: rust: update minimum rust version to 1.85In ProgressJason IshActions
Actions #1

Updated by Jason Ish 1 day ago

  • Related to Task #7745: rust: set new minimum Rust version for Suricata 9.0 added
Actions #2

Updated by Jason Ish 1 day ago

  • Related to Task #8382: rust: update minimum rust version to 1.85 added
Actions #3

Updated by Victor Julien 1 day 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 ...`"

Actions

Also available in: Atom PDF