[Pkg-rust-maintainers] Packaging software written in Rust

Luca BRUNO lucab at debian.org
Tue Jul 19 23:45:51 UTC 2016


On Tuesday 19 July 2016 23:32:17 Angus Lees wrote:

> > It looks like libgit2-sys supports an environment variable to use
> > pkg-config to find libgit2; if set, it completely ignores its built-in
> > copy of libgit2, which means we can avoid shipping that copy entirely.
> > 
> > However, that means we'll need that environment variable set when
> > building packages of bin crates that incorporate libgit2-sys (by way of
> > git2-rs).  That seems like a pain.
> > 
> > One possible proposal: librust-libgit2-sys-dev can have a Depends on
> > libgit2-dev, and can ship a file
> > /usr/share/rust/env.d/libgit2-sys-$version.conf (near the installed
> > Cargo directory registry in /usr/share/rust/cargo/), which contains
> > "LIBGIT2_SYS_USE_PKG_CONFIG=1".
> 
> .. or we just patch the Debian version of librust-libgit2-sys-dev's build.rs
> to always use the system version. 

https://github.com/alexcrichton/git2-rs/pull/80

-- 
«Доверяй, но проверяй»
-------------- 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/20160720/55635c4c/attachment.sig>


More information about the Pkg-rust-maintainers mailing list