Skip to content

patchelf: 0.15.2 -> 0.19.3 - #582116

Open
pinarruiz wants to merge 1 commit into
NixOS:stagingfrom
pinarruiz:patchelf-0.19.3
Open

pinarruiz wants to merge 1 commit into
NixOS:stagingfrom
pinarruiz:patchelf-0.19.3

Conversation

@pinarruiz

Copy link
Copy Markdown
Contributor

Update patchelf to 0.19.3 (https://github.com/NixOS/patchelf/releases/tag/0.19.3)

Things done

@nixpkgs-ci nixpkgs-ci Bot added the 12.first-time contribution This PR is the author's first one; please be gentle! label Nov 2, 2026
nixpkgs-branch-check[bot]

This comment was marked as outdated.

@nixpkgs-ci nixpkgs-ci Bot added 8.has: package (update) This PR updates a package to a newer version 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux-stdenv This PR causes stdenv to rebuild on Linux and must target a staging branch. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches. 7.no default reviewers This PR targets a package or module with no existing maintainers; roving reviewers, take pity! labels Nov 2, 2026
@pinarruiz
pinarruiz changed the base branch from master to staging November 2, 2026 08:22
@nixpkgs-ci nixpkgs-ci Bot closed this Nov 2, 2026
@nixpkgs-ci nixpkgs-ci Bot reopened this Nov 2, 2026
nixpkgs-branch-check[bot]

This comment was marked as outdated.

@panicgh

panicgh commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

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).

@nixpkgs-branch-check
nixpkgs-branch-check Bot dismissed stale reviews from themself November 2, 2026 08:32

Review dismissed automatically

@pinarruiz
pinarruiz force-pushed the patchelf-0.19.3 branch 2 times, most recently from e926adc to a2e0dc8 Compare November 2, 2026 08:41
@pinarruiz

Copy link
Copy Markdown
Contributor Author

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).

Fixed, I had my branch on master, and then changed the base, sorry!

@zowoq
zowoq requested a review from vcunat November 2, 2026 11:00
@vcunat

vcunat commented Nov 2, 2026

Copy link
Copy Markdown
Member

Yes, that's what I planned. We should probably also bump patchelfUnstable, as it's weird if it's lower version than patchelf.

@vcunat vcunat added the 2.status: wait for branch‐off Waiting for the next Nixpkgs branch‐off label Nov 2, 2026
@vcunat
vcunat marked this pull request as draft November 2, 2026 11:09
@vcunat

vcunat commented Nov 2, 2026

Copy link
Copy Markdown
Member

Though yes, it's too early to merge this now. staging branch-off is planned in about two weeks from now, though it's possible that we'll get a few more days of delay there.

@nixpkgs-ci nixpkgs-ci Bot removed the 9.needs: reviewer This PR currently has no reviewers requested and needs attention. label Nov 2, 2026
@pinarruiz

Copy link
Copy Markdown
Contributor Author

Should i do anything else? I'm very new to the nixpkgs PRs and I'm a bit lost

@zowoq zowoq mentioned this pull request Nov 2, 2026
2 of 13 tasks
@zowoq zowoq changed the title patchelf: 1.19.2 -> 1.19.3 patchelf: 0.15.2 -> 1.19.3 Nov 2, 2026
@vcunat

vcunat commented Nov 2, 2026

Copy link
Copy Markdown
Member

Nothing is really needed. Now we just wait.

The patchelfUnstable concern can be resolved separately; the bot will probably open a PR for it automatically soon anyway.

@dotlambda dotlambda changed the title patchelf: 0.15.2 -> 1.19.3 patchelf: 0.15.2 -> 0.19.3 Nov 2, 2026
jgus pushed a commit to jgus-org/8bitdo-2c-re-flake that referenced this pull request Nov 4, 2026
* 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]>
@XYenon XYenon mentioned this pull request Nov 5, 2026
5 of 13 tasks
@Ma27

Ma27 commented Nov 5, 2026

Copy link
Copy Markdown
Member

Does this release fix the weird assertion failure, e.g. sempgrep had on 0.19.2?

@pinarruiz

pinarruiz commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor Author

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.

kleinbem added a commit to kleinbem/nix-presets that referenced this pull request Nov 5, 2026
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]>
@whispersofthedawn whispersofthedawn removed the 2.status: wait for branch‐off Waiting for the next Nixpkgs branch‐off label Nov 16, 2026
@pinarruiz

Copy link
Copy Markdown
Contributor Author

I just rebased this with staging.
The python pacakge semgrep package has now been marked as broken.

@vcunat
vcunat marked this pull request as ready for review November 19, 2026 06:10
@vcunat

vcunat commented Nov 19, 2026

Copy link
Copy Markdown
Member

The current staging won't reach 26.11 anymore, so I think this is ready?

@pinarruiz

Copy link
Copy Markdown
Contributor Author

Just a question, will staging reach unstable? The package is broken there too

@vcunat

vcunat commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

It always reaches unstable (within a few weeks), but 26.11 will have to get fixed in another way, apparently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

7.no default reviewers This PR targets a package or module with no existing maintainers; roving reviewers, take pity! 8.has: package (update) This PR updates a package to a newer version 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 10.rebuild-linux-stdenv This PR causes stdenv to rebuild on Linux and must target a staging branch. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches. 12.first-time contribution This PR is the author's first one; please be gentle!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants