<div dir="ltr">(This is very interesting, thanks Luca)</div><br><div class="gmail_quote"><div dir="ltr">On Tue, 28 Jul 2015 at 21:09 Luca Bruno <<a href="mailto:lucab@debian.org">lucab@debian.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
just a quick mail to say that I was looking a bit into a cleaner way to<br>
bootstrap cargo (ie. without embedding a binary).<br>
<br>
It is my understanding that some other distros (Bitrig, some *BSD) are<br>
currently relying on this:<br>
<a href="https://github.com/dhuseby/cargo-bootstrap" rel="noreferrer" target="_blank">https://github.com/dhuseby/cargo-bootstrap</a><br>
<br>
It is a minimal python script that mimics cargo fetch&build capabilities to<br>
locally build a stage0 cargo. It needs python-dulwich (already in debian) and<br>
python-pytoml (I've just uploaded this to NEW).<br>
<br>
With those, and embedding only crate-index plus all cargo source dependencies,<br>
I was more or less able to bootstrap it from sources only.<br>
<br>
Some comments:<br>
* git2-rs depends on newer libgit2, I added a note here[0] and pinged<br>
debian maintainer for 0.23.0-1 ETA<br>
* I had some issue with curl-sys and openssl-sys, but this was probably my<br>
mistake<br>
* post-configure (ie. stage1), Cargo.{toml|lock} needs to be somehow adjusted<br>
to use local crates. I haven't yet looked into this, pointers are welcome.<br>
<br>
I still have no idea how to ship all cargo dependencies in debian (embedded<br>
with cargo? multiple source-only package?), but at least it looks like a<br>
start :)<br>
<br>
[0] <a href="https://github.com/alexcrichton/git2-rs/issues/32#issuecomment-125539959" rel="noreferrer" target="_blank">https://github.com/alexcrichton/git2-rs/issues/32#issuecomment-125539959</a><br>
<br>
Ciao, Luca<br>
<br>
--<br>
.''`. ** Debian GNU/Linux ** | Luca Bruno (kaeso)<br>
: :' : The Universal O.S. | lucab (AT) <a href="http://debian.org" rel="noreferrer" target="_blank">debian.org</a><br>
`. `'` | GPG: 0xBB1A3A854F3BBEBF<br>
`- <a href="http://www.debian.org" rel="noreferrer" target="_blank">http://www.debian.org</a> | Debian GNU/Linux Developer<br>
_______________________________________________<br>
Pkg-rust-maintainers mailing list<br>
<a href="mailto:Pkg-rust-maintainers@lists.alioth.debian.org" target="_blank">Pkg-rust-maintainers@lists.alioth.debian.org</a><br>
<a href="https://lists.alioth.debian.org/mailman/listinfo/pkg-rust-maintainers" rel="noreferrer" target="_blank">https://lists.alioth.debian.org/mailman/listinfo/pkg-rust-maintainers</a><br>
</blockquote></div>