-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ld-wrapper: Fix adding directories to rpath #28012
Conversation
This fixes a bug introduced in NixOS#27831: `for path in "$dir"/lib*.so` assumed that all libs match `lib*.so`, but 0767478 started adding libs that match `*.so` and `*.so.*`.
@orivej, thanks for your PR! By analyzing the history of the files in this pull request, we identified @edolstra, @Ericson2314 and @vcunat to be potential reviewers. |
I'm currently testing if this is enough, don't want to have hydra build another not-too-useful staging |
@@ -129,7 +129,7 @@ if [ "$NIX_@infixSalt@_DONT_SET_RPATH" != 1 ]; then | |||
# copied to $out/lib. If not, we're screwed. | |||
continue | |||
fi | |||
for path in "$dir"/lib*.so; do | |||
for path in "$dir"/*; do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason you didn't do `.so? I don't care either way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
*.so*
would work, but I do not want to remember or force others to keep in mind that this wildcard should be wider than anything that goes in libs
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, it occurred to me that *
is probably faster anyways.
This was merged in #28021 |
This fixes a bug introduced in #27831:
for path in "$dir"/lib*.so
assumed that all libs matchlib*.so
, but 0767478 started adding libs that match*.so
and*.so.*
.Reported by @globin at #27657 (comment)