Your message dated Wed, 22 Jul 2026 15:39:04 +0200
with message-id <[email protected]>
and subject line Re: debcargo: should ignore build-dependencies that are marked 
cfg(target_env = "msvc")
has caused the Debian Bug report #984627,
regarding debcargo: should ignore build-dependencies that are marked 
cfg(target_env = "msvc")
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
984627: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=984627
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: debcargo
Version: 2.4.4-1
Control: affects -1 src:rust-nettle-sys

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 
<[email protected]>
Uploaders:
 Daniel Kahn Gillmor <[email protected]>,
 kpcyrd <[email protected]>
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.

       --dkg

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message ---
Version: 2.8.4-1

debcargo.toml can now contain `filter_targets` which allows to
automatically generate a patch to remove all dependencies
conditionalized with `target.cfg`. It is opt-in at the moment and allows
to keep everything mapping to Debian architectures (including ports)
and/or WASM. I plan to switch the default at a later point to make it
opt-out.

--- End Message ---

Reply via email to