[Pkg-rust-maintainers] Bug#880689: Bug#880689: dh-cargo: installs too much for libpkg

Josh Triplett josh at joshtriplett.org
Sat Nov 4 09:10:52 UTC 2017


On Fri, Nov 03, 2017 at 10:00:03PM +0100, Jonas Smedegaard wrote:
> Package: dh-cargo
> Version: 2
> Severity: normal
> 
> dh-cargo installs into library packages everything in source package
> except directories .git and debian.
> 
> That is too much: .gitignore files or .travis.yml files make no sense to
> install, and neither does .pc directory.

Very intentional and not a bug. I discussed this with the Debian Rust
team when I was first creating dh-cargo, and the intent is for the code
in /usr/share/cargo/registry to *exactly* match the source as shipped in
crates.io, with no omissions. The directory registry mechanism is
intended for providing sources that substitute for the upstream sources.

(Among other things, I *have* encountered packages before that actually
*used* .gitignore as part of a package build.)

That said, upstream crates should not be shipping .pc directories, and
if that happens, we should be reporting that upstream to get fixed.

- Josh Triplett



More information about the Pkg-rust-maintainers mailing list