kornelski / cargo-deb

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

Question: How to handle dependency for static binary #6

Closed manfredlotz closed 3 years ago

manfredlotz commented 3 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 3 years ago

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

manfredlotz commented 3 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 3 years ago

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

manfredlotz commented 3 years ago

Ok. Now tried

depends = ''

which indeed works fine.

Thank you.