Bug#907629: librsvg: Embedded code copies: assorted Rust libraries

Simon McVittie smcv at debian.org
Tue Oct 16 09:16:20 BST 2018


On Tue, 16 Oct 2018 at 02:45:00 +0000, Ximin Luo wrote:
> Hi, you are welcome to package the below dependencies as part of the Rust team

Sorry, I don't know Rust, so having me try to maintain anything exclusively
written in Rust would be a very bad idea :-)

> It should be possible to use dh-cargo in librsvg's build, you might have to call it using something like:
> 
> override_dh_auto_install:
> 	# other stuff
> 	dh_auto_install -S cargo -D <path/to/crate/src>

librsvg runs `cargo build` during its own build: running `make` compiles
C code, then calls `cargo build` to compile Rust code that depends on the
C, then compiles some more C code that depends on the Rust. I don't think
we can avoid that.

It might be possible to patch Makefile.am to use dh_auto_build or
dh_auto_install instead of `cargo build`, but that's "inside out" compared
with a normal Debian package build, so I'd be far from confident about
making that change myself.

    smcv



More information about the pkg-gnome-maintainers mailing list