CI / Classify changes (push) Successful in 16s
CI / Web (lint + typecheck + i18n + build) (push) Skipped
CI / Config consistency (push) Successful in 11s
CI / Format (push) Successful in 16s
CI / Clippy (push) Successful in 2m45s
CI / Test (push) Successful in 7m8s
CI / CUDA type-check (push) Successful in 19m18s
CI / Build cortex SRPM (push) Skipped
CI / Build neuron SRPM (push) Skipped
CI / Publish cortex to COPR (push) Skipped
CI / Publish neuron to COPR (push) Skipped
CI / Bump version in source (push) Skipped
The MP3 encoder (LAME) calls log10f, which glibc 2.43 re-versioned. Built on a Fedora 44 runner, cortex required log10f@GLIBC_2.43, so dnf on the Fedora 43 gateway refused the upgrade with "nothing provides libm.so.6(GLIBC_2.43)" -- and the deploy still reported success, leaving the old build running. - Link cortex with --wrap=log10f and supply __wrap_log10f, computed via log10 (unversioned since 2.2.5). - script/check-glibc-floor.sh: every Stage step fails a binary that needs a newer glibc than the fc43 target ships (GLIBC_FLOOR=2.42). - Deploys now fail when the installed version differs from the published one after dnf runs, after restarting the service on whatever is there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017ohK2pULMVJctL5B1Gixdp
11 lines
502 B
Rust
11 lines
502 B
Rust
//! Keep the cortex binary installable on the oldest glibc we package for.
|
|
//!
|
|
//! glibc 2.43 gave `log10f` a new symbol version, so a binary linked on a
|
|
//! newer host references `log10f@GLIBC_2.43` and will not install on a
|
|
//! system with an older glibc. The only caller is LAME (the MP3 encoder
|
|
//! behind `/content?format=mp3`). Routing its calls through
|
|
//! `__wrap_log10f` (see `glibc_compat.rs`) removes the reference.
|
|
fn main() {
|
|
println!("cargo:rustc-link-arg-bins=-Wl,--wrap=log10f");
|
|
}
|