[Pkg-rust-maintainers] debcargo bin packages FTBFS because they need dev-dependencies

Ximin Luo infinity0 at debian.org
Mon Jan 29 01:56:00 UTC 2018


I switched --bin to default on recently, to try to add as much stuff to Debian as possible. However some builds then fail, e.g. aho-corasick, because cargo-install apparently wants to see dev-dependencies in the cargo registry (e.g. csv), but debcargo ignores them, so it's not available in the local registry that debcargo/dh-cargo sets up.

[..]
error: failed to compile `aho-corasick v0.6.4`, intermediate artifacts can be found at `/tmp/cargo-install.7dAyIZ1mLGMB`

Caused by:
  no matching package named `csv` found (required by `aho-corasick`)
[..]

Do you have some advice for us on that, Josh? Should we just add dev-dependencies to Build-Depends in d/control? Is it likely that we might run into circular dependencies?

I'm also considering passing --all-features to `cargo install` in dh-cargo, does that seem like a good idea too? Or perhaps we could generate two binary packages, one with default features and one with all features.

X

-- 
GPG: ed25519/56034877E1F87C35
GPG: rsa4096/1318EFAC5FBBDBCE
https://github.com/infinity0/pubkeys.git



More information about the Pkg-rust-maintainers mailing list