autoPatchelfHook: fix symlink handling #210908
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of changes
The new
autoPatchelfHook
builds a list of library files/paths to speed up library discovery when patching elf files. However, under certain circumstances, this list gets faulty entries, leading to broken RPATHs.In #172372 a workaround for
tsm-client
was implemented as its build process triggered the bug. In #172372 (comment)autoPatchelfHook
author @layus uncovered and analysed the underlying bug, and drafted a patch to fixauto-patchelf
. Please see there or in the commit message for more details on the bug and the fix.The pull-request at hand implements that patch, and removes the workaround from
tsm-client
.autoPatchelfHook
does not have a maintainer. Notifying its author and CODEOWNER:Dear @layus , I took the liberty to wrap your patch in the pull request at hand. Please have a look to verify if this is according to your intentions and could be merged.
Things done
I tested the fixed
autoPatchelfHook
withtsm-client
andzoom-us
:sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes