|
85 | 85 | else |
86 | 86 | xlings install "mcpp@$MCPP_VERSION" -y -g |
87 | 87 | fi |
| 88 | + # ⚠️⚠️ TRANSITION: GIVE THE BOOTSTRAP THE glibc ITS BINDING NAMES. |
| 89 | + # |
| 90 | + # `xim:glibc`'s `latest` moved from `2.44` to `2.44.2`. A payload |
| 91 | + # directory is named after the version a request RESOLVED to, while a |
| 92 | + # RuntimeBinding carries the version that was DECLARED — and the xlings |
| 93 | + # a released mcpp vendors into its own sandbox still declares `2.44`. |
| 94 | + # So a clean machine installs `2.44.2`, the toolchain fixup asks for |
| 95 | + # `2.44`, and the build stops before anything is compiled: |
| 96 | + # |
| 97 | + # error: selected RuntimeBinding glibc@2.44 requires payload |
| 98 | + # '…/xpkgs/xim-x-glibc/2.44', but it is not installed |
| 99 | + # |
| 100 | + # ⚠️ On every NEW machine and on none that already existed, which is why |
| 101 | + # it is invisible from a developer's own. Measured on `main` as readily |
| 102 | + # as on any branch — the index records the same failure verbatim in |
| 103 | + # `pkgs/g/glibc.lua` and states the rule it broke: "The index is DATA |
| 104 | + # and the client is a PROGRAM: the consumer ships first." |
| 105 | + # |
| 106 | + # ⭐ REMOVE THIS once a released mcpp resolves it. `mcpp 2026.8.27.1` |
| 107 | + # accepts an installed payload whose version REFINES the requested one |
| 108 | + # (`payload_dir_for_version`), so a bootstrap from it needs nothing |
| 109 | + # here. Until then the missing payload is simply installed. |
| 110 | + if [ -x "$HOME/.mcpp/registry/bin/xlings" ]; then |
| 111 | + XLINGS_HOME="$HOME/.mcpp/registry" XLINGS_NON_INTERACTIVE=1 \ |
| 112 | + "$HOME/.mcpp/registry/bin/xlings" install glibc@2.44 -y -g \ |
| 113 | + >/dev/null 2>&1 || true |
| 114 | + echo "glibc payloads present: $(ls "$HOME/.mcpp/registry/data/xpkgs/xim-x-glibc" 2>/dev/null | tr '\n' ' ')" |
| 115 | + fi |
88 | 116 | mcpp --version |
89 | 117 | mcpp self config --mirror GLOBAL |
90 | 118 | # ⭐⭐ CROSS-VALIDATION: BUILD THE mcpp UNDER REVIEW AND USE THAT ONE. |
|
0 commit comments