Skip to content

fix(ci,release): bootstrap with a xlings that declares a runtime it actually runs - #528

Merged
Sunrisepeak merged 1 commit into
mainfrom
fix/bootstrap-truthful-runtime
Aug 10, 2026
Merged

Sunrisepeak merged 1 commit into
mainfrom
fix/bootstrap-truthful-runtime

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

Replaces both mcpp#406 workarounds with the cause.

The lie, and who tells it

subos_info.runtime is the SubOS's declaration of which glibc it runs. v2026.8.8.1 — the pinned bootstrap — stamped it from a constant: [email protected], on a home that then resolved and installed glibc 2.44 (index latest since xim-pkgindex#582). The record was false the moment it was written.

mcpp reads it as authoritative and refuses to fall back, and that is correct — its #392 guard exists because an INTERP from one glibc and a RUNPATH from another segfaults before main with no diagnostic. Given a truthful record it does the right thing.

v2026.8.10.1 is the first release that declares the version actually active rather than a constant. Verified on an isolated home created by it: declaration [email protected], payload 2.44, farm libc.so.6 → 2.44, and every install through it succeeded — including the cold gcc and meson installs this round is about.

What this reverts

  • xlings-ci-aarch64 goes back to xlings install mcpp -y (latest). It is the canary for exactly this class and it caught this one; pinning it muzzles it.
  • release.yml's cross-build mcpp clone goes back to main.

What is still open, and it is ours

check_runtime_activation has two consumers: xlings use (refuses to activate a runtime the SubOS does not declare) and doctor --fix (adopts). The install path calls neither — so an install can resolve and activate a glibc the SubOS never declared, and nothing reconciles the declaration afterwards.

One rule, two write paths, one enforcer. A bootstrap that starts out truthful does not make a declaration that can drift correct; that fix is separate.

…ctually runs

Reverts both mcpp#406 workarounds and removes the cause instead.

**The lie, and who tells it.** `subos_info.runtime` is the SubOS's declaration
of which glibc it runs. v2026.8.8.1 -- the pinned bootstrap here -- stamped it
from a CONSTANT when it created the default SubOS: `[email protected]`, on a home that
then resolved and installed glibc 2.44 (index latest since xim-pkgindex#582).
The record was false the moment it was written.

mcpp reads it as authoritative and refuses to fall back, which is CORRECT --
its own #392 guard exists because an INTERP from one glibc and a RUNPATH from
another segfaults before main with no diagnostic. Given a truthful record it
does the right thing. Given ours it failed, two repos away, as

    selected RuntimeBinding [email protected] requires payload .../xim-x-glibc/2.39,
    but it is not installed

2026.8.10.1 is the first release that declares the version actually ACTIVE
instead of a constant, so the record it writes is true by construction.
Verified on an isolated home created by it: declaration `[email protected]`, payload
2.44, farm libc.so.6 -> 2.44, and every install through it succeeded --
including the cold gcc and meson installs this round is about.

**The architectural defect is still open**, and it is ours, not mcpp's.
`check_runtime_activation` has exactly two consumers: `xlings use`, which
REFUSES to activate a runtime the SubOS does not declare, and
`doctor --fix`, which adopts. The install path calls neither -- so an install
can resolve and activate a glibc the SubOS never declared, and nothing
reconciles the declaration afterwards. One rule, two write paths, one
enforcer: the reporter/repairer drift this codebase keeps producing. Filed
separately; a bootstrap that starts out truthful does not make a declaration
that can drift correct.

So: `xlings-ci-aarch64` goes back to taking the LATEST mcpp. It is the canary
for exactly this class of breakage and it caught this one; pinning it would
have muzzled it, and the second pin (release.yml's cross-build mcpp clone) is
reverted with it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant