|
80 | 80 | done |
81 | 81 | mcpp --version |
82 | 82 | mcpp self config --mirror GLOBAL |
| 83 | + # ⚠️⚠️ TRANSITION: THE BOOTSTRAP mcpp CARRIES ITS OWN xlings, AND |
| 84 | + # THAT COPY PREDATES AN INDEX MOVE. |
| 85 | + # |
| 86 | + # An mcpp release BUNDLES an xlings at `<install>/registry/bin/xlings` |
| 87 | + # (mcpp's `pinned::kXlingsVersion`), and that copy — not the one |
| 88 | + # installed above — is what resolves runtime bindings for everything |
| 89 | + # mcpp does. `xim:glibc`'s `latest` moved to 2.44.2, and only |
| 90 | + # xlings 2026.8.27.1 reads the default binding from the index instead |
| 91 | + # of a constant compiled into itself (openxlings/xlings#567). An |
| 92 | + # older bundled copy asks for `glibc@2.44`, a clean environment |
| 93 | + # installs `2.44.2`, and the toolchain post-install fixup stops: |
| 94 | + # |
| 95 | + # error: selected RuntimeBinding glibc@2.44 requires payload |
| 96 | + # '…/xpkgs/xim-x-glibc/2.44', but it is not installed |
| 97 | + # |
| 98 | + # on every NEW environment and on none that already existed. The |
| 99 | + # index records this failure verbatim in `pkgs/g/glibc.lua`. |
| 100 | + # |
| 101 | + # ⭐ REMOVE THIS ONCE THE PIN SHIPS. mcpp 2026.8.27.1 bundles |
| 102 | + # 2026.8.27.1, so a bootstrap from it needs nothing here. The step is |
| 103 | + # a no-op when the bundled copy is already new enough, and it says |
| 104 | + # which copy it replaced so a silent substitution is not possible. |
| 105 | + mcpp_home="${MCPP_HOME:-$HOME/.mcpp}" |
| 106 | + bundled="$mcpp_home/registry/bin/xlings" |
| 107 | + if [ -x "$bundled" ] && [ -n "$(command -v xlings)" ]; then |
| 108 | + have="$("$bundled" --version 2>/dev/null | head -1)" |
| 109 | + outer="$(xlings --version 2>/dev/null | head -1)" |
| 110 | + if [ "$have" != "$outer" ]; then |
| 111 | + cp "$(command -v xlings)" "$bundled" |
| 112 | + echo "bundled xlings: $have -> $("$bundled" --version | head -1) (was older than the installed one)" |
| 113 | + else |
| 114 | + echo "bundled xlings: $have (already the installed one)" |
| 115 | + fi |
| 116 | + fi |
83 | 117 | # ⭐⭐ CROSS-VALIDATION: BUILD THE mcpp UNDER REVIEW AND USE THAT ONE. |
84 | 118 | # |
85 | 119 | # Empty in the ordinary run, so this job keeps testing the RELEASED |
@@ -309,6 +343,40 @@ jobs: |
309 | 343 | done |
310 | 344 | mcpp --version |
311 | 345 | mcpp self config --mirror GLOBAL |
| 346 | + # ⚠️⚠️ TRANSITION: THE BOOTSTRAP mcpp CARRIES ITS OWN xlings, AND |
| 347 | + # THAT COPY PREDATES AN INDEX MOVE. |
| 348 | + # |
| 349 | + # An mcpp release BUNDLES an xlings at `<install>/registry/bin/xlings` |
| 350 | + # (mcpp's `pinned::kXlingsVersion`), and that copy — not the one |
| 351 | + # installed above — is what resolves runtime bindings for everything |
| 352 | + # mcpp does. `xim:glibc`'s `latest` moved to 2.44.2, and only |
| 353 | + # xlings 2026.8.27.1 reads the default binding from the index instead |
| 354 | + # of a constant compiled into itself (openxlings/xlings#567). An |
| 355 | + # older bundled copy asks for `glibc@2.44`, a clean environment |
| 356 | + # installs `2.44.2`, and the toolchain post-install fixup stops: |
| 357 | + # |
| 358 | + # error: selected RuntimeBinding glibc@2.44 requires payload |
| 359 | + # '…/xpkgs/xim-x-glibc/2.44', but it is not installed |
| 360 | + # |
| 361 | + # on every NEW environment and on none that already existed. The |
| 362 | + # index records this failure verbatim in `pkgs/g/glibc.lua`. |
| 363 | + # |
| 364 | + # ⭐ REMOVE THIS ONCE THE PIN SHIPS. mcpp 2026.8.27.1 bundles |
| 365 | + # 2026.8.27.1, so a bootstrap from it needs nothing here. The step is |
| 366 | + # a no-op when the bundled copy is already new enough, and it says |
| 367 | + # which copy it replaced so a silent substitution is not possible. |
| 368 | + mcpp_home="${MCPP_HOME:-$HOME/.mcpp}" |
| 369 | + bundled="$mcpp_home/registry/bin/xlings" |
| 370 | + if [ -x "$bundled" ] && [ -n "$(command -v xlings)" ]; then |
| 371 | + have="$("$bundled" --version 2>/dev/null | head -1)" |
| 372 | + outer="$(xlings --version 2>/dev/null | head -1)" |
| 373 | + if [ "$have" != "$outer" ]; then |
| 374 | + cp "$(command -v xlings)" "$bundled" |
| 375 | + echo "bundled xlings: $have -> $("$bundled" --version | head -1) (was older than the installed one)" |
| 376 | + else |
| 377 | + echo "bundled xlings: $have (already the installed one)" |
| 378 | + fi |
| 379 | + fi |
312 | 380 | # ⭐⭐ CROSS-VALIDATION: BUILD THE mcpp UNDER REVIEW AND USE THAT ONE. |
313 | 381 | # |
314 | 382 | # Empty in the ordinary run, so this job keeps testing the RELEASED |
|
0 commit comments