[Pkg-rust-maintainers] Packaging software written in Rust
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.
«Доверяй, но проверяй»
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 819 bytes
Desc: This is a digitally signed message part.
More information about the Pkg-rust-maintainers