On Mon, Jan 08, 2018 at 02:58:42PM +0100, Sylvestre Ledru wrote:
> Package: dh-cargo
> Version: 2
> Severity: normal
> 
> Hello,
> 
> Trying to package https://github.com/marco-c/grcov/ using dh-cargo
> 
> With debian/rules:
>       dh $@ --buildsystem cargo
> 
> I am getting
>    dh_installdirs -O--buildsystem=cargo
>    dh_auto_install -O--buildsystem=cargo
> readdir() attempted on invalid dirhandle $dirhandle at 
> /usr/share/perl5/Debian/Debhelper/Buildsystem/cargo.pm line 118.
> closedir() attempted on invalid dirhandle $dirhandle at 
> /usr/share/perl5/Debian/Debhelper/Buildsystem/cargo.pm line 119.
> cp: impossible d'évaluer './debian/cargo-checksum.json': Aucun fichier ou 
> dossier de ce type
> 
> dh-cargo should handle better the error and gives proper error (or handle the 
> absence of the directories)

Fair enough.  The first two errors would indeed occur with any package
that has no dependencies (and thus no /usr/share/cargo/registry), though
in this case the crate has dependencies and needs them packaged and
installed. The latter error indicates that the source package doesn't
contain debian/cargo-checksum.json , which suggests that you didn't
package using debcargo.

- Josh Triplett

Reply via email to