Skip to content

Replace patchelf with arwen#2932

Draft
konstin wants to merge 1 commit intomainfrom
konsti/arwen
Draft

Replace patchelf with arwen#2932
konstin wants to merge 1 commit intomainfrom
konsti/arwen

Conversation

@konstin
Copy link
Copy Markdown
Member

@konstin konstin commented Jan 11, 2026

Avoid the external patchelf library, use arwen instead.

This creates a split situation of using both goblin and arwen for binary parsing. It does less reparsing of ELF files than previously.

@konstin
Copy link
Copy Markdown
Member Author

konstin commented Jan 14, 2026

Blocked on gimli-rs/object#842

nichmor added a commit to nichmor/arwen that referenced this pull request Jan 16, 2026
Add a method to retrieve RPATH/RUNPATH entries as a list of paths,
enabling maturin to use arwen instead of goblin for reading rpath values.

Related: PyO3/maturin#2932

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Use the arwen crate (a Rust port of patchelf) to read/modify ELF rpath,
soname and DT_NEEDED entries instead of shelling out to patchelf. Removes
the runtime dependency on the patchelf binary.

The 'patchelf' optional extra in pyproject.toml is kept (empty) for
backwards compatibility but is now deprecated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant