Repository navigation
Conversation
Surprising issue, do you have more visibility into why that is necessary? |
|
Hi @ambroisie, The issue is that when patchelf reads the file, it keeps it in memory as an "original", and the two operations happen over this original in memory copy, so the layout shift that will happens with |
There was a problem hiding this comment.
Can we minimize the diff by keeping the order the same?
Also, use a separate commit for each package.
There was a problem hiding this comment.
I gave it another go, and figured out what the actual problem was, as i had not a lot of knowledge about how patchelf works, I am not sure if what i made now is "equivalent" to what there was, but it seems to work fine, i had to "move" the ${stdenv.cc.libc}/lib into the $out/bin/libs/ so that the rpath will not take as much room.
Let me know what you think.
semgrep: fix semgrep-core patchelf and pin mcpsemgrep-core patchelf and pin mcp
8ac0397 to
9c1bee2
Compare
|
I tested the current PR head ( I also tested the upstream fix from NixOS/patchelf#672. Restoring the original semgrep-core recipe, with a single Patchelf invocation and the original longer RPATH, reproduces the assertion with unpatched Patchelf 0.19.2. Applying only #672's source changes fixes the build without adding the glibc symlinks. The resulting Semgrep package also passes its Nixpkgs-enabled tests and local Python/JavaScript scan checks. I retained the independent mcp_1 change for this comparison. I think using the upstream Patchelf fix is the cleaner solution to the ELF issue than adding this package-specific workaround. |
9c1bee2 to
47c7e89
Compare
47c7e89 to
a375315
Compare
|
I just created #582116, to update patchelf, once merged i will rebase and we could review this again |
Fallout from the nixpkgs bump: - boot.initrd.systemd.enable is now an error: scripted initrd is gone and systemd initrd is the only kind, so the line is dropped. - semgrep 1.180.0 imports mcp.server.fastmcp, renamed in mcp 2.x; build it against mcp_1 like NixOS/nixpkgs#580821 does, until that lands. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Package
semgrep-corefailed to build (#579107),Executing patchelf twice, once per operation, so that the file is reparsed, and pinned mcp to 1.x because semgrep 1.180.0 imports mcp.server.fastmcp.FastMCP, which mcp 2.x renamed.
This is my first PR to nixpkgs, I am not sure if I am making any mistakes, but please let me know.
Resolves #579107
Things done
./result/bin/.nixpkgs-reviewon this PR. See nixpkgs-review usage.passthru.tests.