Project

General

Profile

Actions

Task #8381

closed
JI OD

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

Task #8381: rust: auto-detect suitable rust version in ./configure

Added by Jason Ish 2 months ago. Updated 2 days ago.

Status:
Rejected
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

JI Updated by Jason Ish 2 months ago Actions #1

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

JI Updated by Jason Ish 2 months ago Actions #2

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

VJ Updated by Victor Julien 2 months ago Actions #3

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 2 days ago Actions #4

  • 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.

Actions

Also available in: PDF Atom