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

Jonas Smedegaard dr at jones.dk
Sat Nov 4 10:51:00 UTC 2017


Hi Josh,

Quoting Josh Triplett (2017-11-04 10:10:52)
> On Fri, Nov 03, 2017 at 10:00:03PM +0100, Jonas Smedegaard wrote:
>> 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.

Thanks for the clarification of intent.

I challenge your conclusion that this is not a bug, however: From 
looking at its code, it seems to me dh-cargo currently does _not_ 
install only "the source as shipped in crates,io".

Apparently it installs everything lying around in the source package at 
the time dh-cargo gets triggered, except root directories ".git" and 
"debian".

The ".pc" directory, created during build by a packaging helper tool, 
should certainly not be installed.

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.


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private



More information about the Pkg-rust-maintainers mailing list