Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign uprustbuild: Add support for compiling Cargo #39917
Conversation
rust-highfive
assigned
brson
Feb 17, 2017
This comment has been minimized.
This comment has been minimized.
|
r? @brson (rust_highfive has picked a reviewer for you, use r? to override) |
alexcrichton
force-pushed the
alexcrichton:build-cargo
branch
from
684305c
to
becb091
Feb 17, 2017
This comment has been minimized.
This comment has been minimized.
|
|
alexcrichton
force-pushed the
alexcrichton:build-cargo
branch
from
becb091
to
3120181
Feb 21, 2017
brson
reviewed
Feb 22, 2017
| @@ -1,5 +1,5 @@ | |||
| [package] | |||
| name = "cargotest" | |||
| name = "cargotest2" | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
alexcrichton
Feb 22, 2017
Author
Member
Oh this conflicted with the cargotest package in Cargo itself, so I figured it'd be easiest to rename this here
This comment has been minimized.
This comment has been minimized.
|
@bors r+ All the openssl logic in bootstrap is |
This comment has been minimized.
This comment has been minimized.
|
|
alexcrichton
force-pushed the
alexcrichton:build-cargo
branch
from
3120181
to
ed2f0d6
Feb 22, 2017
This comment has been minimized.
This comment has been minimized.
|
@bors: r=brson |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
FWIW rust-openssl may get support soon for building OpenSSL given a source tarball, so we could at least do away with all the grungy build logic. |
sfackler
reviewed
Feb 22, 2017
| }; | ||
|
|
||
| configure.arg(format!("--prefix={}", dst.display())); | ||
| configure.arg("no-dso"); |
This comment has been minimized.
This comment has been minimized.
sfackler
Feb 22, 2017
Member
Might be worth adding no-ssl2 no-ssl3 no-comp additionally just to be safe.
This comment has been minimized.
This comment has been minimized.
alexcrichton
force-pushed the
alexcrichton:build-cargo
branch
from
ed2f0d6
to
b8fc75f
Feb 22, 2017
This comment has been minimized.
This comment has been minimized.
|
@bors: r=brson |
This comment has been minimized.
This comment has been minimized.
|
|
steveklabnik
referenced this pull request
Feb 22, 2017
Closed
Tracking issue for RFC 1828: Rust Bookshelf #39588
alexcrichton
force-pushed the
alexcrichton:build-cargo
branch
from
b8fc75f
to
28ea763
Feb 23, 2017
This comment has been minimized.
This comment has been minimized.
|
@bors: r=brson |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
|
alexcrichton
force-pushed the
alexcrichton:build-cargo
branch
from
28ea763
to
be5cb13
Feb 25, 2017
This comment has been minimized.
This comment has been minimized.
|
@bors: r=brson |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Feb 25, 2017
This comment has been minimized.
This comment has been minimized.
|
|
alexcrichton
force-pushed the
alexcrichton:build-cargo
branch
from
be5cb13
to
985be4f
Feb 25, 2017
This comment has been minimized.
This comment has been minimized.
|
@bors: r=brson |
alexcrichton
force-pushed the
alexcrichton:build-cargo
branch
from
77fb172
to
44a01b8
Mar 3, 2017
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Mar 3, 2017
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Mar 3, 2017
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
… On Fri, Mar 3, 2017 at 2:26 PM, bors ***@***.***> wrote:
|
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Mar 3, 2017
This comment has been minimized.
This comment has been minimized.
|
|
bors
merged commit 44a01b8
into
rust-lang:master
Mar 4, 2017
This was referenced Mar 4, 2017
This comment has been minimized.
This comment has been minimized.
|
@alexcrichton after pulling this change, I can no longer build:
Is there another step I'm unaware of? |
This comment has been minimized.
This comment has been minimized.
|
Ah yup that'd do it. Cargo's a submodule. We'll have to move submodule updates sooner in the process or warn about it. You can fix this with:
|
alexcrichton
deleted the
alexcrichton:build-cargo
branch
Mar 4, 2017
This comment has been minimized.
This comment has been minimized.
|
Should that perhaps be posted in a more visible location (e.g., internals)? I suspect pretty much all developers working on rustc will run into it. |
This comment has been minimized.
This comment has been minimized.
I think everyone is playing that new Zelda game today More seriously, I just assumed that it would be fixed soon enough that not many people would run into it. I'm also a bit surprised that the build machines didn't have any issues. I guess there's differences between what a human does and the autobuilds? |
This was referenced Mar 5, 2017
This comment has been minimized.
This comment has been minimized.
|
I've sent a PR to fix the issue @shepmaster ran into. Sorry for the breakage! Also yeah the auto builds explicitly update submodules for... reasons. So that's why they didn't run into this. |
alexcrichton commentedFeb 17, 2017
This commit adds support to rustbuild for compiling Cargo as part of the release
process. Previously rustbuild would simply download a Cargo snapshot and
repackage it. With this change we should be able to turn off artifacts from the
rust-lang/cargo repository and purely rely on the artifacts Cargo produces here.
The infrastructure added here is intended to be extensible to other components,
such as the RLS. It won't exactly be a one-line addition, but the addition of
Cargo didn't require too much hooplah anyway.
The process for release Cargo will now look like:
Cargo to pair with the rust-lang/rust release
master branch
the first commit to the beta branch will be to update the Cargo submodule to
this exact revision.
then make a stable release.
Backports to Cargo will look like:
For reference, the process to add a new component to the rust-lang/rust release
would look like:
$fooas a submodule insrc/toolstool-$foostep which compiles$foowith the specified compiler,likely mirroring what Cargo does.
dist-$foostep which usessrc/tools/$fooand thetool-$foooutputto create a rust-installer package for
$foolikely mirroring what Cargodoes.
dist-extendedstep with a new dependency ondist-$foosrc/tools/build-manifestfor the new component.