Skip to content

ci: bump XIM_PKGINDEX_REF to gcc-runtime fix (E2E verify config + pkgindex chain) - #260

Merged
Sunrisepeak merged 1 commit into
mainfrom
ci/bump-xim-pkgindex-to-gcc-runtime-fix
May 3, 2026
Merged

Sunrisepeak merged 1 commit into
mainfrom
ci/bump-xim-pkgindex-to-gcc-runtime-fix

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

End-to-end CI verification. Bumps the pinned xim-pkgindex commit so the test fixture exercises the full predicate-driven elfpatch + script-as-runtime-dep flow.

Pin diff

from to
XIM_PKGINDEX_REF 83044b5 (pre-#108) 19f4383 (current main)
BOOTSTRAP_XLINGS_VERSION v0.4.13 (unchanged)

What 19f4383 brings vs the previous pin

xim-pkgindex PR content
#110 / #111 namespace all bare-name deps → no dual-mount ambiguity
#116 new xim:gcc-runtime standalone xpkg (~25 MB libstdc++/libgcc_s/...)
#117 switch ninja/node/mdbook from xim:gcc to xim:gcc-runtime
#118 gcc-runtime declares correct exports.runtime.libdirs (was abi)

What pairs with this on the xlings side

What this verifies end-to-end

E2E-05 (Fixed Project Scenarios) was previously skipped past gcc-specs-config because the old pin predated #108. Now it should:

  1. install xim:gcc (which depends on xim:gcc-specs-config script-type runtime dep)
  2. gcc.config hook invokes gcc-specs-config shim from gcc install_dir cwd (outside project)
  3. shim subprocess walks up cwd → hits xlings repo's projectScope:false .xlings.json
  4. with fix(config): fall through to XLINGS_PROJECT_DIR env after projectScope:false skip #259 fix: skip continues walking + env fallback finds project workspace → resolves gcc-specs-config version → shim succeeds → gcc.config completes
  5. install xim:node or similar (declares xim:gcc-runtime runtime dep)
  6. with fix-utf8 (comment zh->en) #117/Fix command execution syntax for xlings_exec #118: predicate-driven elfpatch closure picks up gcc-runtime/lib64 → node binary RPATH includes libstdc++ location → node runs

If CI green → both fixes compose correctly, lockstep-pin policy works.
If red → expose whatever's still missing (e.g. another schema gap).

…e fixes)

End-to-end CI verification of the full chain that landed across recent
xlings + xim-pkgindex work:

xim-pkgindex bumps from 83044b5 (pre-#108) to 19f4383 (main HEAD), now
includes:
  * #110/#111: namespace all bare-name deps (cmake/ninja/xmake/gcc/
    binutils/openssl/d2x → xim: prefix), removes dual-mount ambiguity
  * #116: split xim:gcc-runtime as a standalone xpkg (~25 MB)
    containing libstdc++/libgcc_s/libgomp/etc — vs full xim:gcc compiler
    (~1.1 GB)
  * #117: switch ninja/node/mdbook from xim:gcc to xim:gcc-runtime, so
    consumer rpath closure pulls only the runtime libs they need
  * #118: gcc-runtime declares `exports.runtime.libdirs = { "lib64" }`
    (correct schema field, was incorrectly `abi = {...}` in #116)

Pairs with xlings's:
  * 0.4.13 release: patchelf op order fix (no compact-ELF corruption)
  * post-merge PR #259: load_project_config_ falls through to
    XLINGS_PROJECT_DIR env after a projectScope:false skip (without
    this fix, gcc-specs-config shim spawned from gcc.config hook
    couldn't resolve its workspace version because the cwd traversal
    hit the xlings repo's own projectScope:false .xlings.json)

Together these enable E2E-05 (Fixed Project Scenarios) to exercise
the full predicate-driven elfpatch + script-as-runtime-dep flow on
Linux without the workarounds the previous pin (83044b5) was
sidestepping.

If CI is green, the temporary pin can stay (now bumped) — or be
removed entirely once we trust both sides' main to evolve in lockstep.
@Sunrisepeak
Sunrisepeak merged commit 72b5af6 into main May 3, 2026
3 checks passed
Sunrisepeak added a commit that referenced this pull request May 3, 2026
Bumps VERSION 0.4.13 → 0.4.14. Highlights since 0.4.13:

  * #259 — `load_project_config_` falls through to XLINGS_PROJECT_DIR
    env after a projectScope:false skip. Fixes "no version set for
    gcc-specs-config" in installs where the cwd traversal happens to
    hit a projectScope:false `.xlings.json` (e.g. xlings's own repo
    when E2E tests run from inside `tests/e2e/runtime/...`) before
    reaching the real project root. Concrete impact: gcc.lua's
    config hook spawning the gcc-specs-config script-type shim now
    resolves the project workspace correctly via env fallback.

  * #260 — CI bumps XIM_PKGINDEX_REF to xim-pkgindex main HEAD
    (19f4383), now including:
      - #110 / #111 namespace bare-name deps
      - #116 standalone xim:gcc-runtime (~25 MB, vs full xim:gcc ~1.1 GB)
      - #117 ninja/node/mdbook switched to xim:gcc-runtime
      - #118 gcc-runtime declares correct exports.runtime.libdirs
    End-to-end E2E-05 now exercises the full predicate-driven
    elfpatch + script-as-runtime-dep flow without sidestep workarounds.

  * #261 — `xlings self uninstall` is now a real command.
    Previously the dispatcher silently fell through to help and
    exited 0, even though user-facing hints (and the
    `xlings remove xim:xlings` single-version guard) explicitly
    routed users here. Implements:
      - `xlings self uninstall` (interactive [y/N])
      - `-y` / `--yes` for automation
      - `--keep-data` to preserve `data/` for quick reinstall
      - `--dry-run` to print plan without changes
    Cross-platform self-deletion: Linux/macOS use the kernel's
    open-file-vs-dirent decoupling to unlink the running binary;
    Windows moves xlings.exe to %TEMP% and schedules delete-on-
    reboot for the temp copy (XLINGS_HOME is fully gone immediately).
    Safety invariants: refuses XLINGS_HOME=/, =$HOME, common system
    paths; refuses if `.lock` present; always prints summary even
    with `-y`. Bonus: `xlings self <unknown-action>` now exits 2
    instead of silent 0.

Migration: 0.4.13 → 0.4.14 is binary-compatible. self-update via
`xself install` / quick_install handles the upgrade.

Verified locally: 8/8 isolated-XLINGS_HOME tests pass; system
/home/speak/.xlings sha256 + pkg count untouched across runs. CI
three-platform green on PR #261.
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