kornelski / cargo-deb

Make Debian packages directly from Rust/Cargo projects
https://lib.rs/cargo-deb
MIT License
427 stars 51 forks source link

Question: How to handle dependency for static binary #6

Closed manfredlotz closed 2 years ago

manfredlotz commented 2 years ago

I have a Rust project where I build a static binary which I want to include into the deb package.

depends = "$auto"

yields

warning: Failed to find dependency specification. (no auto deps for....

Question: How would I code the depends statement correctly?

kornelski commented 2 years ago

Auto is only for executables. You need to list Debian deps manually.

manfredlotz commented 2 years ago

My wording was bad. Instead of static binary I should have said static executable. In this case ldd yields not a dynamic executable.

kornelski commented 2 years ago

I see. In that case you have no dependencies, so there's nothing to set.

manfredlotz commented 2 years ago

Ok. Now tried

depends = ''

which indeed works fine.

Thank you.