Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

orivej
Copy link
Contributor

@orivej orivej commented Aug 7, 2017

This fixes a bug introduced in #27831: for path in "$dir"/lib*.so assumed that all libs match lib*.so, but 0767478 started adding libs that match *.so and *.so.*.

Reported by @globin at #27657 (comment)

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.*`.
@mention-bot
Copy link

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

@globin globin self-assigned this Aug 7, 2017
@globin
Copy link
Member

globin commented Aug 7, 2017

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
Copy link
Member

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.

Copy link
Contributor Author

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.

Copy link
Member

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.

@orivej
Copy link
Contributor Author

orivej commented Aug 8, 2017

This was merged in #28021

@orivej orivej closed this Aug 8, 2017
@orivej orivej deleted the ld-wrapper branch August 26, 2017 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants