Skip to content

[5.3] On ELF platforms, remove the host toolchain rpath from executables and shared libraries #2901

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

Merged
merged 1 commit into from
Sep 21, 2020

Conversation

finagolfin
Copy link
Member

before installing.

It has been suggested to me by some Swift devs that this would be good to get in before the 5.3 release, a cherry-pick from #2703.

This should be completely safe for the 5.3 branch, as it's just removing the build toolchain's stdlib rpath, which should be unused by SPM.

@neonichu
Copy link
Contributor

@swift-ci please test

@neonichu
Copy link
Contributor

Pulling this back sounds good to me, but ultimately @rballard's call.

@tomerd
Copy link
Contributor

tomerd commented Aug 31, 2020

cc @drexin @compnerd

@compnerd
Copy link
Member

I think that this is pretty important - it should remove hardcoded paths from the build host which are a problem, we should try to get this into the 5.3 release even though we are cutting it really close.

@tomerd
Copy link
Contributor

tomerd commented Aug 31, 2020

this looks like a good improvement, we will put into an update as soon as possible

Copy link
Contributor

@rballard rballard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this PR! At this point we're not currently planning to take any more fixes for 5.3, but once we re-open for 5.3.1 fixes we should take this.

@finagolfin
Copy link
Member Author

Sounds good.

@neonichu
Copy link
Contributor

Looks like this will need an update because of conflicts in the bootstrap script that we introduced. Sorry about that!

@finagolfin
Copy link
Member Author

No problem, an easy fix.

@neonichu
Copy link
Contributor

@swift-ci please test

@rballard
Copy link
Contributor

We've shipped 5.3 and are about to start taking fixes for the next patch release. Let's hold this one until Monday, but I expect to approve then.

@rballard rballard self-requested a review September 21, 2020 20:25
Copy link
Contributor

@rballard rballard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is approved to merge now; thank you!

@neonichu neonichu merged commit 2bec212 into swiftlang:release/5.3 Sep 21, 2020
@finagolfin finagolfin deleted the rpath branch September 23, 2020 14:36
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.

6 participants