-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
Delete last rpath when requested #555
Conversation
@woodruffw, I totally forgot that e9eaa75 hadn't made it into a release yet. That would've been useful for avoiding some recent bugs I had to deal with 😅 I'd appreciate if you could cut a release soon-ish with the changes from this PR too! Thanks. |
427eeb2
to
21397f3
Compare
Deleting the first rpath is a good default because it mirrors the behaviour of `install_name_tool`. However, it's not useful behaviour when deleting duplicate rpaths, because it changes the order in which the runtime paths are searched. We delete duplicate rpaths in `brew`, so being able to delete the last instance of the requested rpath instead of the first one would be useful.
21397f3
to
d07af37
Compare
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.
One small nit, otherwise LGTM. @carlocab do you think it makes sense to add a testcase for this? I'll leave it to your judgement 🙂
Sorry about that, apparently I totally forgot to release the other change. I'll do a release for both that and this once we get this in! |
Co-authored-by: William Woodruff <[email protected]>
b566332
to
b685d3b
Compare
Added some tests! They're a bit repetitive, sorry. But testing this would be good, I think. |
All good by me. But I think you might have forgotten to push them 😉 |
I did push! GitHub isn't picking up the changes I made, for some reason... carlocab@b685d3b |
Reopened in #556. |
Deleting the first rpath is a good default because it mirrors the
behaviour of
install_name_tool
. However, it's not useful behaviourwhen deleting duplicate rpaths, because it changes the order in which
the runtime paths are searched.
We delete duplicate rpaths in
brew
, so being able to delete the lastinstance of the requested rpath instead of the first one would be
useful.