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

Ralph Giles giles at thaumas.net
Sat Nov 4 17:50:07 UTC 2017


On 2017-11-04 3:51 AM, Jonas Smedegaard wrote:

> I believe that from your own rule, stuff generated during build by
> upstream build tools - typically but not necessarily listed in upstream
> .gitignore - should hot be installed either.

Unfortunately, `cargo package` includes everything in the working 
directory that's not in .gitignore or explicitly excluded by Cargo.toml.
so there are many .crate packages containing unnecessary cruft.

If the idea is to provide a local replacement for the upstream crates.io 
repository, then the important thing is that the contents of the .crate 
packages match, so the contents hash the same and builds are reproducible.

You didn't cite a particular crate which is including .pc files, but
filing a bug with upstream to exclude them in Cargo.toml would be the
best way to address that.

  -r



More information about the Pkg-rust-maintainers mailing list