DEB glibc floor: build the Linux artifacts on a Debian 12 base

Aperta
#38 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
debian, github-actions, rust

Direzione di ricerca

Start in xtask/src/dist.rs by reading verify_deb_glibc_floor and checking how its version parser handles binutils output such as (GLIBC_2.34). Then locate the GitHub release workflow and CI image that build Linux artifacts, and follow the DEB dependency floor configuration. Done means the check rejects unreadable or too-new versions and a clean Debian 12 container installs and launches the DEB with a receipt recorded.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug release

The DEB's libc6 (>= X) floor is set by the build host's glibc, not by the code. Measured 2026-11-09: the desktop binary needs GLIBC_2.39 (Rust std links pidfd_getpid and pidfd_spawnp), the CLI binary needs GLIBC_2.35; the GitHub release job runs on ubuntu-24.04 (glibc 2.39) and the CI image is Debian 12 (glibc 2.36). Raising the floor to 2.39 would make the DEB uninstallable on Debian 12, the clean-install target.

Two defects compound this:

  1. xtask/src/dist.rs's verify_deb_glibc_floor is vacuous — modern binutils prints (GLIBC_2.34) with parentheses, so strip_prefix("GLIBC_") never matches and the check always passes.
  2. The build host is wrong for the declared floor.

Work

  • Parse the parenthesised form in verify_deb_glibc_floor, and fail when the check cannot read a version at all.
  • Build the Linux artifacts on a Debian 12 base (rust:*-slim-bookworm, or the repo's CI image) and declare libc6 (>= 2.36).

Acceptance

  • The floor check reads a real version and fails on a binary that exceeds it.
  • The DEB installs and launches on a clean Debian 12 container, with the receipt recorded.

Tracking: task #195. The v0.2.5 DEB is historical and must not be silently replaced.

Lingua principale
Rust
Stelle
11
Fork
1
Merge medio
9h 48m
PR unite (30g)
13

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di aliasfoxkde/FireCraft

Tutte le issue di aliasfoxkde/FireCraft

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.