Repository navigation
patchelf: 0.15.2 -> 0.19.3 - #582116
patchelf: 0.15.2 -> 0.19.3#582116pinarruiz wants to merge 1 commit into
Conversation
b415cc9 to
19cd9a3
Compare
|
The PR title and commit msg seem to be wrong. From the diff, the old version was 0.15.2 (not 1.19.2), new version is 0.19.3 (not 1.19.3). |
Review dismissed automatically
e926adc to
a2e0dc8
Compare
Fixed, I had my branch on master, and then changed the base, sorry! |
|
Yes, that's what I planned. We should probably also bump |
|
Though yes, it's too early to merge this now. |
|
Should i do anything else? I'm very new to the nixpkgs PRs and I'm a bit lost |
|
Nothing is really needed. Now we just wait. The |
* Follow this flake's own nixpkgs on the flake-lib input This flake tracked nixos-26.05, which carries no pedantix, and mkFormatting puts pkgs.pedantix in the nixfmt wrapper's runtime inputs, so following flake-lib's nixpkgs there makes the flake fail to evaluate: the formatter and checks.formatting both come from that one binding, and nix fmt becomes unreachable in the tree rather than merely unchecked. nixos-unstable carries pedantix, and tracking it is the right channel for a flake whose purpose is pulling in upstream releases. An input follows every input the parent already pins unless a specific technical reason blocks it, and there is none here. Leaving the edge off gave this tree two nixpkgs: flake-lib's library evaluated against its own pin while the packages built against ours. Following collapses them into one. The documented reason for dropping the edge was that flake-lib's formatter tools resolve from flake-lib's nixpkgs, and following would let a repo format differently from the rest of the fleet. That reasoning is corrected in jgus-org/flake-lib#118: a flake's formatter runs only in its own root against its own lock, so the version that root resolves is already canonical for that tree. What flake-lib keeps fixed is the program set and the style files, both delivered by absolute store path. * Point the agent instruction at the fleet flake standard The standard for our flake structure lives with the shared implementation it describes, so this repository links it instead of carrying a copy. CLAUDE.md is the usual compatibility symlink. * Apply rpath before interpreter when patching the tc32 tools The pinned tc32-elf binaries are 2009 non-PIE x86-64 ELF files whose .interp reservation is far smaller than a nix-store loader path, so setting the interpreter adds a PT_LOAD covering the header page. Setting the rpath afterwards grows .dynstr and relocates .dynamic onto a page that the following executable PT_LOAD also maps, which strips writability from the tail of .dynamic; the loader's write of DT_DEBUG then faults before main. Measured with gdb: SIGSEGV in dl_main, si_addr 0x400300, inside .dynamic at 0x400218+0x1f0, faulting instruction mov %r13,0x8(%rax) just before _dl_debug_change_state. The operation order decides it, not the patchelf version. On this exact binary, with patchelf built from release tarballs using nixpkgs' recipe so only the version varies: interpreter first: runs on 0.15.2, 0.16.1, 0.18.0, 0.19.0, 0.19.1, 0.19.3; segfaults on 0.17.0, 0.17.2, 0.19.2 rpath first: runs on all nine both flags at once: same outcome as interpreter first Upstream repairs the 0.19.2 instance in 59acc3d ("Fix overlapping LOAD mappings when rewriting executable headers", NixOS/patchelf#672), released in 0.19.3; nixpkgs still builds 0.19.2 and the bump is open as NixOS/nixpkgs#582116. Rewriting in rpath-first order sidesteps the whole defect class on every version tested rather than pinning around one release. mod-batt-l4r4-dongle-v103 and mod-battery-ctrl-v109 come out byte-identical to main's, so the payloads this flake ships are unchanged. --------- Co-authored-by: Agent <[email protected]>
|
Does this release fix the weird assertion failure, e.g. sempgrep had on 0.19.2? |
I have not tested it yet, but according to here #580821 (comment) it does. Edit 1: use exact comment. |
From the CodeRabbit full review (#184, findings 6, 19, 22, 23). - `code-common/extensions.nix`: re-enable `mkt.ms-python.python` and `pkgs.vscode-extensions.anthropic.claude-code`. The comments waited on jedi-language-server 0.46.0 and the yanked claude-code 2.1.88; the lock now has 0.47.0 and 2.1.312, and both build. - `flake.nix`: the hermes pin is still needed (patchelf is 0.19.2 in the lock). Its comment now links the fix, upstream: NixOS/patchelf#672 (released in 0.19.3) and the nixpkgs bump NixOS/nixpkgs#582116 (open, staging), and says to drop it once nixpkgs has patchelf >= 0.19.3. The triage's "nixpkgs #143332" was wrong (that's an xmrig bump). - Remove `.pre-commit-config-with-version-check.yaml`: nothing in any kleinbem repo references it, and git-hooks.nix in flake.nix is what runs. Tested: - Built `vscode-extensions.anthropic.claude-code` (2.1.312) and `vscode-marketplace.ms-python.python` (2026.11.2026102901) with this flake's nixpkgs + nix-vscode-extensions overlay: both ok. - Built `packages.x86_64-linux.{antigravity,cursor,windsurf}-extensions-bundle`: ok; the windsurf bundle contains `anthropic.claude-code` and `ms-python.python`. - `patchelf.version` from the lock: 0.19.2. - Not tested: whether 0.19.3 fixes the node 26.12.1 segfault itself. #672 fixes overlapping LOAD mappings after header rewrites of ET_EXEC binaries, which matches; recheck when the bump lands. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **New Features** * The Python extension is now included in the common editor configuration. * Claude Code is now available in the AI editor configuration. * **Chores** * The separate pre-commit configuration for checking version consistency has been removed. This does not change the Hermes input URL or the configured extensions. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Claude Opus 5.5 <[email protected]>
a2e0dc8 to
8002c19
Compare
|
I just rebased this with staging. |
|
The current staging won't reach 26.11 anymore, so I think this is ready? |
|
Just a question, will staging reach unstable? The package is broken there too |
|
It always reaches unstable (within a few weeks), but 26.11 will have to get fixed in another way, apparently. |
Update patchelf to 0.19.3 (https://github.com/NixOS/patchelf/releases/tag/0.19.3)
Things done
./result/bin/.nixpkgs-reviewon this PR. See nixpkgs-review usage.passthru.tests.