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

Fix NixOS patching #84071

Merged
merged 1 commit into from
Apr 11, 2021
Merged

Fix NixOS patching #84071

merged 1 commit into from
Apr 11, 2021

Conversation

nagisa
Copy link
Member

@nagisa nagisa commented Apr 10, 2021

Moving the .nix-deps has resulted in rpath links being broken and
therefore bootstrap on NixOS broken entirely.

This PR still produces a .nix-deps but only for the purposes of
producing a gc root. We rpath a symlink-resolved result instead.

For purposes of simplicity we also use joinSymlink to produce a single
merged output directory so that we don't need to update multiple
locations every time we add a library or something.

Fixes a regression from #82739.

Moving the `.nix-deps` has resulted in rpath links being broken and
therefore bootstrap on NixOS broken entirely.

This PR still produces a `.nix-deps` but only for the purposes of
producing a gc root. We rpath a symlink-resolved result instead.

For purposes of simplicity we also use joinSymlink to produce a single
merged output directory so that we don't need to update multiple
locations every time we add a library or something.
@jyn514 jyn514 self-assigned this Apr 10, 2021
@jyn514 jyn514 added the T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) label Apr 10, 2021
Copy link
Member

@jyn514 jyn514 left a comment

Choose a reason for hiding this comment

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

I'm not 100% sure what's going on here, but it looks fairly self-contained, seems fine to me.

@jyn514 jyn514 assigned Mark-Simulacrum and unassigned jyn514 Apr 10, 2021
@Mark-Simulacrum
Copy link
Member

@bors r+

Yeah, this looks reasonable.

@bors
Copy link
Contributor

bors commented Apr 10, 2021

📌 Commit 3dabab1 has been approved by Mark-Simulacrum

@bors bors added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Apr 10, 2021
@bors
Copy link
Contributor

bors commented Apr 11, 2021

⌛ Testing commit 3dabab1 with merge ea1252e...

@bors
Copy link
Contributor

bors commented Apr 11, 2021

☀️ Test successful - checks-actions
Approved by: Mark-Simulacrum
Pushing ea1252e to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Apr 11, 2021
@bors bors merged commit ea1252e into rust-lang:master Apr 11, 2021
@rustbot rustbot added this to the 1.53.0 milestone Apr 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants