[Pkg-rust-maintainers] On bootstrapping cargo

Angus Lees gus at debian.org
Wed Jul 29 00:37:19 UTC 2015


(This is very interesting, thanks Luca)

On Tue, 28 Jul 2015 at 21:09 Luca Bruno <lucab at debian.org> wrote:

> 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
> _______________________________________________
> Pkg-rust-maintainers mailing list
> Pkg-rust-maintainers at lists.alioth.debian.org
> https://lists.alioth.debian.org/mailman/listinfo/pkg-rust-maintainers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-rust-maintainers/attachments/20150729/33da883f/attachment.html>


More information about the Pkg-rust-maintainers mailing list