[Pkg-rust-maintainers] On bootstrapping cargo

Luca Bruno lucab at debian.org
Fri Jul 31 16:21:14 UTC 2015


On Wednesday 29 July 2015 00:37:19 Angus Lees wrote:
> On Tue, 28 Jul 2015 at 21:09 Luca Bruno <lucab at debian.org> wrote:

> > just a quick mail to say that I was looking a bit into a cleaner way to
> > bootstrap cargo (ie. without embedding a binary).

A brief followup on this...

> >  * git2-rs depends on newer libgit2, I added a note here[0] and pinged
> >    debian maintainer for 0.23.0-1 ETA
> >
> > https://github.com/alexcrichton/git2-rs/issues/32#issuecomment-125539959

git2-rs is now tracking stable libgit2 0.23.0.
Got no answer from the Debian maintainer, but I saw some activity on alioth.
I hope the soname bump will happen soon.

> >  * I had some issue with curl-sys and openssl-sys, but this was probably
> >    my mistake

This was definitely human error on my side.

> >  * 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.

This is currently soft-blocking me, as I can't properly build a stage1 without 
fetching from the network. I've reported #1863 upstream[1], waiting for 
comments.

[1] https://github.com/rust-lang/cargo/issues/1863

However, since stage0 should be functionally equivalent to stage1, for the 
moment we can just decide to stop there and install stage0 cargo into binary 
package.

> > 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 :)

This currently means:
 * 32MB of registry index
 * 69MB of C+rust sources, split across 50 dependencies

This can be further post-processed to filter out un-needed entries from the 
index and remove unused C-sources.

Cheers, 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/20150731/36288ba6/attachment.sig>


More information about the Pkg-rust-maintainers mailing list