in Cargo.toml from nettle-sys 2.0.5, we see:
[target."cfg(target_env = \"msvc\")".build-dependencies.vcpkg]
version = "0.2.9"
But debcargo 2.4.4 translates that into actual Build-Depends: and
Depends: fields, despite the target environment not being the MSVC
compiler. It generates:
-----
Source: rust-nettle-sys
Section: rust
Priority: optional
Build-Depends: debhelper (>= 12),
dh-cargo (>= 24),
cargo:native <!nocheck>,
rustc:native <!nocheck>,
libstd-rust-dev <!nocheck>,
librust-bindgen-0.55-dev <!nocheck> | librust-bindgen-0.54-dev <!nocheck> | librust-bindgen-0.53-dev (>= 0.53.1-~~) <!nocheck>,
librust-pkg-config-0.3+default-dev <!nocheck>,
librust-vcpkg-0.2+default-dev (>= 0.2.9-~~) <!nocheck>,
nettle-dev (>= 3.5.1~~) <!nocheck>,
llvm
Maintainer: Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Uploaders:
Daniel Kahn Gillmor <dkg@fifthhorseman.net>,
kpcyrd <git@rxv.cc>
Standards-Version: 4.5.1
Vcs-Git: https://salsa.debian.org/rust-team/debcargo-conf.git [src/nettle-sys]
Vcs-Browser: https://salsa.debian.org/rust-team/debcargo-conf/tree/master/src/nettle-sys
Rules-Requires-Root: no
Package: librust-nettle-sys-dev
Architecture: any
Multi-Arch: same
Depends:
${misc:Depends},
librust-bindgen-0.55-dev | librust-bindgen-0.54-dev | librust-bindgen-0.53-dev (>= 0.53.1-~~),
librust-pkg-config-0.3+default-dev,
librust-vcpkg-0.2+default-dev (>= 0.2.9-~~),
nettle-dev (>= 3.5.1~~)
Provides:
-----
So, i'll probably patch this out of the upstream sources for now, but
debcargo should have handled this more cleanly.