Skip to content

fix: remove dangerous install_file fallback + rename elfpatch -> patchelf#213

Merged
Sunrisepeak merged 1 commit intomainfrom
fix/installer-fallback-and-patchelf-rename
Mar 16, 2026
Merged

fix: remove dangerous install_file fallback + rename elfpatch -> patchelf#213
Sunrisepeak merged 1 commit intomainfrom
fix/installer-fallback-and-patchelf-rename

Conversation

@Sunrisepeak
Copy link
Copy Markdown
Member

Summary

  • Bug fix: installer.cppm line 881 set ctx.install_file = node.pkgFile when no download artifact existed. The install hook's os.mv(install_file, install_dir) would then move the package definition file out of the package index, destroying the index entry. This caused elfpatch.lua to be deleted from xim-pkgindex on every xlings install xim:elfpatch (100% reproducible, confirmed via strace: rename("pkgs/e/elfpatch.lua", "xpkgs/xim-x-elfpatch/0.18.0"))
  • Rename: elfpatch -> patchelf in self install and e2e tests (matching upstream xim-pkgindex rename: d2learn/xim-pkgindex@dce83b7)

Test plan

  • xlings install xim:patchelf@0.18.0 -y -g — should install without deleting pkgindex entry
  • xlings self install — should reference patchelf, not elfpatch
  • E2E: release_self_install_test.sh — patchelf path updated

🤖 Generated with Claude Code

…helf

installer.cppm: when no download artifact exists, do NOT set
ctx.install_file to node.pkgFile (the package definition file).
The install hook's os.mv() would move the definition out of the
package index, destroying the index entry. This caused elfpatch.lua
to be deleted from xim-pkgindex on every install.

Also rename elfpatch -> patchelf in self install and e2e tests to
match the upstream package rename in xim-pkgindex.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Sunrisepeak Sunrisepeak merged commit 18239e6 into main Mar 16, 2026
3 of 4 checks passed
@Sunrisepeak Sunrisepeak deleted the fix/installer-fallback-and-patchelf-rename branch March 16, 2026 19:02
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