[Pkg-rust-maintainers] On bootstrapping cargo
Luca Bruno
lucab at debian.org
Tue Jul 28 11:09:26 UTC 2015
Hi all,
just a quick mail to say that I was looking a bit into a cleaner way to
bootstrap cargo (ie. without embedding a binary).
It is my understanding that some other distros (Bitrig, some *BSD) are
currently relying on this:
https://github.com/dhuseby/cargo-bootstrap
It is a minimal python script that mimics cargo fetch&build capabilities to
locally build a stage0 cargo. It needs python-dulwich (already in debian) and
python-pytoml (I've just uploaded this to NEW).
With those, and embedding only crate-index plus all cargo source dependencies,
I was more or less able to bootstrap it from sources only.
Some comments:
* git2-rs depends on newer libgit2, I added a note here[0] and pinged
debian maintainer for 0.23.0-1 ETA
* I had some issue with curl-sys and openssl-sys, but this was probably my
mistake
* post-configure (ie. stage1), Cargo.{toml|lock} needs to be somehow adjusted
to use local crates. I haven't yet looked into this, pointers are welcome.
I still have no idea how to ship all cargo dependencies in debian (embedded
with cargo? multiple source-only package?), but at least it looks like a
start :)
[0] https://github.com/alexcrichton/git2-rs/issues/32#issuecomment-125539959
Ciao, Luca
--
.''`. ** Debian GNU/Linux ** | Luca Bruno (kaeso)
: :' : The Universal O.S. | lucab (AT) debian.org
`. `'` | GPG: 0xBB1A3A854F3BBEBF
`- http://www.debian.org | Debian GNU/Linux Developer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/pkg-rust-maintainers/attachments/20150728/da708c36/attachment.sig>
More information about the Pkg-rust-maintainers
mailing list