|
80 | 80 | fi |
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 |
| 117 | + # ⚠️⚠️ TRANSITION: THE BOOTSTRAP mcpp CARRIES ITS OWN xlings, AND |
| 118 | + # THAT COPY PREDATES AN INDEX MOVE. |
| 119 | + # |
| 120 | + # An mcpp release BUNDLES an xlings at `<install>/registry/bin/xlings` |
| 121 | + # (mcpp's `pinned::kXlingsVersion`), and that copy — not the one |
| 122 | + # installed above — is what resolves runtime bindings for everything |
| 123 | + # mcpp does. `xim:glibc`'s `latest` moved to 2.44.2, and only |
| 124 | + # xlings 2026.8.27.1 reads the default binding from the index instead |
| 125 | + # of a constant compiled into itself (openxlings/xlings#567). An |
| 126 | + # older bundled copy asks for `glibc@2.44`, a clean environment |
| 127 | + # installs `2.44.2`, and the toolchain post-install fixup stops: |
| 128 | + # |
| 129 | + # error: selected RuntimeBinding glibc@2.44 requires payload |
| 130 | + # '…/xpkgs/xim-x-glibc/2.44', but it is not installed |
| 131 | + # |
| 132 | + # on every NEW environment and on none that already existed. The |
| 133 | + # index records this failure verbatim in `pkgs/g/glibc.lua`. |
| 134 | + # |
| 135 | + # ⭐ REMOVE THIS ONCE THE PIN SHIPS. mcpp 2026.8.27.1 bundles |
| 136 | + # 2026.8.27.1, so a bootstrap from it needs nothing here. The step is |
| 137 | + # a no-op when the bundled copy is already new enough, and it says |
| 138 | + # which copy it replaced so a silent substitution is not possible. |
| 139 | + mcpp_home="${MCPP_HOME:-$HOME/.mcpp}" |
| 140 | + bundled="$mcpp_home/registry/bin/xlings" |
| 141 | + if [ -x "$bundled" ] && [ -n "$(command -v xlings)" ]; then |
| 142 | + have="$("$bundled" --version 2>/dev/null | head -1)" |
| 143 | + outer="$(xlings --version 2>/dev/null | head -1)" |
| 144 | + if [ "$have" != "$outer" ]; then |
| 145 | + cp "$(command -v xlings)" "$bundled" |
| 146 | + echo "bundled xlings: $have -> $("$bundled" --version | head -1) (was older than the installed one)" |
| 147 | + else |
| 148 | + echo "bundled xlings: $have (already the installed one)" |
| 149 | + fi |
| 150 | + fi |
83 | 151 | # ⭐⭐ CROSS-VALIDATION: BUILD THE mcpp UNDER REVIEW AND USE THAT ONE. |
84 | 152 | # |
85 | 153 | # Empty in the ordinary run, so this job keeps testing the RELEASED |
|
0 commit comments