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

rustup: patch and update #30941

Merged
merged 2 commits into from Oct 30, 2017
Merged

rustup: patch and update #30941

merged 2 commits into from Oct 30, 2017

Conversation

ljli
Copy link
Contributor

@ljli ljli commented Oct 29, 2017

We can't run executables without setting the right interpreter on NixOS. That renders rustup pretty useless out of the box. The previous solution was to patch rustup to execute binaries by invoking the dynamic linker with the binary as an argument. That works but confuses rustc/cargo which use /proc/self/exe to lookup the standard library path (#25863). The new patch causes rustup to patch the right dynamic loader directly into the binaries after downloading them via patchelf.
Other than that I've updated to the current git HEAD which was necessary to work around #30742.
I've tested this with nightly, beta and stable toolchains, rebased on top of master from a few days ago.

@adelbertc
Copy link
Contributor

adelbertc commented Oct 30, 2017

Tested and verified on macOS Sierra 10.12.6 ✅

Fixes issue I've been having on latest nixpkgs-unstable which has a pretty outdated rustup - thank you @ljli !

Seems the failing Travis Xcode build is a timeout, works fine on my machine.

@Mic92 Mic92 merged commit 283c271 into NixOS:master Oct 30, 2017
@Mic92
Copy link
Member

Mic92 commented Oct 30, 2017

Thanks!

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.

None yet

3 participants