Skip to content

Commit a31686d

Browse files
authored
build(stackablectl): Make binary more portable by downgrading glibc version (#407)
* fix(stackablectl): Make binary more portable by downgrading glibc version * Update slab to fix RUSTSEC-2025-0047 * Regenerate nix
1 parent 53a1976 commit a31686d

File tree

3 files changed

+1801
-1537
lines changed

3 files changed

+1801
-1537
lines changed

.github/workflows/pr_stackablectl.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,19 @@ jobs:
3737
fail-fast: false
3838
matrix:
3939
include:
40+
# We intentionally don't use ubuntu-latest because we want to build against an old glibc version.
41+
# (18.04 has glibc 2.27, 20.04 has glibc 2.31, 22.04 has glibc 2.35, 24.04 has glibc 2.39).
42+
#
43+
# A Rust binary will only run on systems that have the same or a newer glibc version!
44+
# By building on a "modern" version we break the pre-build binaries for everyone that isn't
45+
# (e.g. debian is normally behind Ubuntu).
46+
#
47+
# To achieve this we pick the oldest Ubuntu version that works out of the box.
4048
- target: x86_64-unknown-linux-gnu
41-
os: ubuntu-24.04
49+
os: ubuntu-22.04
4250
- target: aarch64-unknown-linux-gnu
43-
os: ubuntu-24.04-arm
51+
os: ubuntu-22.04-arm
52+
# Technically it would be better to pin this versions, but so far this didn't cause any problems
4453
- target: x86_64-apple-darwin
4554
os: macos-latest
4655
- target: aarch64-apple-darwin

0 commit comments

Comments
 (0)