Skip to content

[FEATURE] Lower the glibc floor of prebuilt Linux binaries to 2.28 (RHEL/Rocky/Alma 8+, Debian 12, Ubuntu 22.04) #3399

Closed

Description

Is your feature request related to a problem? Please describe.

Since #2931, prebuilt Linux binaries declare a glibc 2.38 floor. That excludes
RHEL/Rocky/Alma 8 (glibc 2.28) and 9 (2.34), Debian 12 (2.36), and Ubuntu 22.04
(2.35) — still very common enterprise and server platforms. On Rocky Linux 8.10
the v0.35.0 binary fails with:

[PYI-1533:ERROR] Failed to load Python shared library
'.../_internal/libpython3.12.so.1.0': /lib64/libm.so.6:
version `GLIBC_2.38' not found

The pip fallback doesn't help out of the box either, because the system Python
on RHEL/Rocky 8 is 3.6 and apm needs 3.10 or later.

As #2899 noted, the 2.38 floor is a side effect of the build host.
actions/setup-python on ubuntu-24.04 links against glibc 2.39, and
PyInstaller bundles that libpython plus stdlib extension modules (math,
_pickle, _decimal, pyexpat, ...). #2931 fixed the declared floor but left
the build environment unchanged on purpose. This request is the build-side
follow-up the #2899 triage listed as the alternative.

Describe the solution you'd like

Lower the actual runtime floor of the Linux x86_64/arm64 release assets to glibc 2.28:

  • In build-release.yml, build the Linux binaries with uv-managed Python
    (UV_PYTHON_PREFERENCE=only-managed, python-build-standalone, which targets
    glibc 2.17) instead of the runner's setup-python interpreter. Runners stay
    on ubuntu-24.04, and Windows and macOS are unchanged.
  • Add a gate in scripts/build-binary.sh (opt-in via APM_MAX_GLIBC=2.28)
    that fails the build if any bundled ELF needs a newer GLIBC_* symbol
    version. This stops the floor from drifting silently again.
  • Smoke-test the built binary in a rockylinux:8 container (apm --version).
  • Lower REQUIRED_GLIBC in install.sh to 2.28 and update the docs/guide to match.

Done when: release assets for both architectures pass the glibc gate and run
on Rocky Linux 8, and the installer installs the binary there.

Current locked dependencies already ship manylinux_2_28 or older wheels,
so I don't expect any dependency changes.

Describe alternatives you've considered

  • Keep the 2.38 floor and document pip as the only path for older distros.
    On RHEL/Rocky 8 that needs an extra Python 3.12 install, which is a barrier
    for locked-down servers.

Additional context

Related: #2899, #2931.

I've prototyped this locally. Building with uv-managed CPython 3.12.16 on
Rocky Linux 8.10 gives a binary whose highest required symbol version across
all bundled ELF files is GLIBC_2.17. The only top-level shared library is
libpython3.12.so.1.0 from python-build-standalone. Nothing comes from the
host OS, so the result should not depend on the build host. On Rocky 8.10,
apm --version, apm init, and apm install microsoft/apm-sample-package --target claude all work. I haven't run the change on the GitHub-hosted
ubuntu-24.04 runners yet. The proposed glibc gate and Rocky 8 container
smoke test would verify it there.

I'm happy to open a PR once a maintainer approves the scope.

Activity

  1. added
    type/feature
    on Oct 27, 2026
  2. changed the title [-][FEATURE] Build prebuilt Linux binaries against glibc 2.28 (RHEL/Rocky/Alma 8+, Debian 12, Ubuntu 22.04)[/-] [+][FEATURE] Lower the glibc floor of prebuilt Linux binaries to 2.28 (RHEL/Rocky/Alma 8+, Debian 12, Ubuntu 22.04)[/+] on Oct 27, 2026
  3. danielmeppiel commented on Nov 10, 2026

    @danielmeppiel
    Collaborator

    Decision: approve
    Area: project
    Scope: Lower the runtime glibc floor of the prebuilt Linux release binaries (x86_64 and arm64) from 2.38 to 2.28 by building them in .github/workflows/build-release.yml with a Python interpreter that does not require a newer glibc (for example uv-managed python-build-standalone via UV_PYTHON_PREFERENCE=only-managed, or a manylinux_2_28 / AlmaLinux 8 build container); add a build gate that fails when any bundled ELF requires a GLIBC symbol version above 2.28; lower REQUIRED_GLIBC in install.sh to 2.28 and update the installation docs, the apm-usage guide, installer tests and CHANGELOG to match.
    Done when: The release build runs a CI check that fails if the maximum GLIBC_* symbol version required by any ELF file in the Linux x86_64 or arm64 release bundle is greater than 2.28; both Linux binaries pass that check and run apm --version and apm install of a sample package inside a Rocky or Alma Linux 8 container in CI; install.sh installs the prebuilt binary on glibc 2.28+ hosts and still routes older hosts to the existing pip fallback; installation.md, packages/apm-guide/.apm/skills/apm-usage/commands.md and the installer unit tests state 2.28; Windows and macOS builds are unchanged.
    Out of scope: musl/Alpine binaries (#3482); glibc floors below 2.28; new distribution channels or package formats; changes to Windows or macOS build runners; moving runtime dependencies into optional extras.
    Review contact: Daniel Meppiel (@danielmeppiel)

  4. danielmeppiel commented on Nov 10, 2026

    @danielmeppiel
    Collaborator

    This scope record above was approved by Daniel Meppiel (@danielmeppiel) at Gate B on 2026-11-10 in the coordinator session of the issue-reduction program. It is the authoritative approval for this issue; labels are not changed by this note.

    Tabata Shintaro (@eraow), thank you for the careful report and for the working prototype (uv-managed Python, maximum GLIBC_2.17 on Rocky 8.10). You offered to open a PR once scope was approved: you are welcome to do so now against the scope above, with Daniel Meppiel (@danielmeppiel) as review contact. Please link this issue and the scope comment in the PR body.

    One correction to the original premise, for the PR description: #2931 only corrected the declared floor from 2.35 to 2.38 and did not change the release runners. The 2.38 requirement comes from building on ubuntu-24.04 with setup-python 3.12, whose bundled libpython needs GLIBC_2.38. The CI gate in the scope (maximum GLIBC symbol version of every bundled ELF must be 2.28 or lower) is what keeps this from regressing again.


    Generated by issue-reduction-lane-b. This comment is AI-generated and may contain errors.

  5. added
    status/accepted
    on Nov 10, 2026
  6. added a commit that references this issue on Nov 11, 2026
    96b602a
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

    status/acceptedtype/feature

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions