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 upsuggest new bootstrap technique #1026
Comments
This comment has been minimized.
This comment has been minimized.
MattWindsor91
commented
Dec 10, 2014
|
|
This comment has been minimized.
This comment has been minimized.
MattWindsor91
commented
Dec 10, 2014
|
Also, the rapid development cycle of Rust and Cargo means that the current approach of hoping and praying someone's managed to do it and posted a gist of instructions doesn't work out well. |
This comment has been minimized.
This comment has been minimized.
|
+1, keeping up with rust/cargo on FreeBSD is really painful at the moment. |
This comment has been minimized.
This comment has been minimized.
|
@ebfe @CaptainHayashi https://github.com/aidancully/fakeCargo might help - it's intended to run a build similarly to how cargo does, to help the bootstrap process. |
This comment has been minimized.
This comment has been minimized.
onibox
commented
Dec 29, 2014
|
+1 for a better FreeBSD support. |
This comment has been minimized.
This comment has been minimized.
|
+1 also required for DragonFlyBSD :) |
This comment has been minimized.
This comment has been minimized.
csperkins
commented
Jan 2, 2015
|
I wrote a script that builds Cargo on FreeBSD, by compiling an initial known-good version by hand, and then using that to bootstrap up to the latest version. Details at https://csperkins.org/research/misc/2015-01-02-cargo-freebsd.html if it's useful to others. |
This comment has been minimized.
This comment has been minimized.
lyuts
commented
May 6, 2015
|
@csperkins Thanks a lot for the link. It is very useful. Just an idea, you can list required dependencies for this bootstrap to succeed. I understand it's a little painful to figure out all of them, but one step a time. |
This comment has been minimized.
This comment has been minimized.
csperkins
commented
May 6, 2015
|
I won't have the time to do that for the next few weeks at least, however as a starting point, it bootstraps on a FreeBSD 10.1-RELEASE-p9 machine with only the following packages installed: bash-4.3.33 = |
This comment has been minimized.
This comment has been minimized.
|
This now exists externally, so closing. Deciding whether to officially include this is #2110 |
aidancully commentedDec 10, 2014
Can a "bootstrap" target be added that will create an installable package for cargo that does not rely on having a working cargo installation? Envisioned operation is:
The intention is that someone building cargo for the first time on a novel platform (and who doesn't have a supported platform available to run a cross-compile, (ahem) would be able to download a "bootstrap" tarball, run its contained shell script, and end up with a working cargo binary. And in case that didn't work, the shell script would at least contain a record of what a successful compilation process looks like, making it easier to recover from failures.