[Pkg-rust-maintainers] Bug#1024806: debcargo: crates should Build-Depend: on dh-sequence-cargo

Daniel Kahn Gillmor dkg at fifthhorseman.net
Fri Nov 25 14:43:22 GMT 2022


Package: debcargo
Control: affects -1 + dh-cargo src:rust-document-features debhelper

as of dh-cargo 30, dh-cargo Provides: dh-sequence-cargo.

the next version of debcargo should explicitly make the generated
debian/control contain "Build-Depends: dh-sequence-cargo".  If that's
done, then the generated debian/control does *not* also need to
explicitly Build-Depend on dh-cargo.

This lets us do things like automatically retain Cargo.toml.orig when
packaging crates (see https://bugs.debian.org/1023413).

I'm not entirely clear on the interactions between dh-sequence-foo and
dh --buildsystem foo, but it would be nice to be able to drop the
"--buildsystem foo" argument in debian/rules as well, to keep it as
minimal as possible.

Maybe it's possible that adding a Build-Depends on dh-sequence-cargo
would let us drop the --buildsystem flag as well -- i believe the B-D on
dh-sequence-cargo acts as an implicit "--with cargo" but i don't
understand how dh's --buildsystem arguments differ from its --with
arguments.

          --dkg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-rust-maintainers/attachments/20221125/e20b11b5/attachment.sig>


More information about the Pkg-rust-maintainers mailing list