Skip to content

[Release] Build the Linux release binaries against an older glibc #241

Closed

Description

@saworbit

release.yml builds x86_64-unknown-linux-gnu and aarch64-unknown-linux-gnu on ubuntu-24.04, so the binaries need glibc 2.39 or newer. They won't start on Debian 12 (2.36, the Docker image's own base), Ubuntu 22.04 (2.35) or RHEL 9 (2.34). docs/CI_CD_STRATEGY.md says so, but those are common server targets.

Options:

  1. Build in a rust:1-bookworm container pinned by digest, as the Dockerfile does, for glibc 2.36.
  2. Build with cargo zigbuild --target x86_64-unknown-linux-gnu.2.28, which needs no container.
  3. Ship static *-linux-musl binaries. They run anywhere, but musl's allocator is slower, which matters for a storage server.

Done when the release dry run (any PR touching release.yml) builds Linux archives whose spacectl --version runs on Debian 12 and Ubuntu 22.04, checked in the workflow (for example by running the binary in a debian:bookworm-slim container), and docs/CI_CD_STRATEGY.md states the new floor.

Activity

  1. added
    enhancement
    on Nov 15, 2026
  2. saworbit commented on Nov 16, 2026

    @saworbit
    OwnerAuthor

    Fix is in 437ca98 on #257, auto-merge on. Linux builds run in the Dockerfile's digest-pinned Debian 12 builder image. The binary's highest glibc symbol is GLIBC_2.34, and each build runs spacectl --version on Debian 12 and Ubuntu 22.04. CHANGELOG and docs/CI_CD_STRATEGY.md updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions