kornelski / cargo-deb

A cargo subcommand that generates Debian packages from information in Cargo.toml
https://lib.rs/cargo-deb
MIT License
404 stars 48 forks source link

warning: Command dpkg-shlibdeps failed to launch (no auto deps for ...) #118

Open sshine opened 8 months ago

sshine commented 8 months ago

I'm not sure if I should create a new issue, or post as a comment to:

This could be solved by #107, but judging by the comments there, it may not be preferred.

When I run cargo deb, I get a bunch of warnings:

...
warning: Command dpkg-shlibdeps failed to launch (no auto deps for .../target/aarch64-unknown-linux-gnu/release/...)
warning: Command dpkg-shlibdeps failed to launch (no auto deps for .../target/aarch64-unknown-linux-gnu/release/...)
warning: Command dpkg-shlibdeps failed to launch (no auto deps for .../target/aarch64-unknown-linux-gnu/release/...)
...

Searching for this warning, I get a StackOverflow post that suggests dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info as the solution, but does not address cargo-deb. Reading #107 comments, I understand that cargo-deb does not use dh, so I'm not sure what that translates into.

My Cargo.toml has depends = "$auto, systemd, rsyslog". I would think that $auto covers the mentioned assets, but the warnings prevail.

I would like for these warnings to go away; either by specifying something about them, or by allowing the suppression of the warning.

What would a good solution look like?

I could try to provide a solution for cargo-deb, but I am just a user of this tool right now.

kornelski commented 8 months ago

You can remove $auto and specify everything manually.