[Pkg-rust-maintainers] Bug#1096103: Bug#1096103: dh-cargo: Use new substvar assignment syntax for optionally used variables

Fabian Grünbichler debian at fabian.gruenbichler.email
Sun Feb 16 15:03:28 GMT 2025


On Sun, Feb 16, 2025 at 12:15:31PM +0100, Guillem Jover wrote:
> Package: dh-cargo
> Version: 31
> Severity: normal
> Tags: patch
> 
> Hi!
> 
> Prompted by a discussion about lintian warnings about
> Static-Built-Using usage (via Holger Levsen), I realized that dh-cargo
> was most probably not using the new substvars assignment syntax to
> avoid warning when the variables do not get used.

Seems like a good addition, I'll do a dh-cargo release with this or a
variant of it included before the toolchain freeze.

> I'm assuming the cargo:Built-Using and the cargo:X-Cargo-Built-Using
> are considered obsolete and supported currently for backwards
> compatibility until all rust packages have been switched to use
> cargo:Static-Built-Using. But it could be that there are legitimate
> uses for cargo:Built-Using (due to license compliance)?

Yes, cargo:Built-Using is used to set Built-Using for license compliance
reasons. X-Cargo-Built-Using is indeed obsolete, it was the
cargo/rust-specific precursor to Static-Built-Using, and debcargo has
now switched over to the latter and IMHO we can just drop the former
altogether and mass-regenerate packages in the archive that were
originally created using older debcargo versions.

WIll require some checks for other sources of the substvars, but should
be do-able.

> Attached an untested patch improving this. (A similar change was
> recently applied for dh-golang, which is in a similar situation.)

Thanks! I'll take it as a starting point :)



More information about the Pkg-rust-maintainers mailing list