← Back to team overview

debcrafters-packages team mailing list archive

[Bug 2115573] Re: Have dh-cargo-vendored-sources update debian/control rather than just verify it

 

This bug was fixed in the package dh-cargo - 32ubuntu2

---------------
dh-cargo (32ubuntu2) questing; urgency=medium

  * Add option to output expected XS-Vendored-Sources-Rust (LP: #2115573).
    - dh-cargo-vendored-sources: Add output-expected option
    - d/tests: Add autopkgtest for output-expected option

 -- Max Gilmour <max.gilmour@xxxxxxxxxxxxx>  Wed, 02 Jul 2025 10:27:12
-0700

** Changed in: dh-cargo (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to dh-cargo in Ubuntu.
https://bugs.launchpad.net/bugs/2115573

Title:
  Have dh-cargo-vendored-sources update debian/control rather than just
  verify it

Status in dh-cargo package in Ubuntu:
  Fix Released

Bug description:
  It would be helpful for package update automation if dh-cargo-
  vendored-sources would be updated to directly update the XS-Vendored-
  Sources-Rust field in debian/control rather than only verifying that
  it is correct.

  If updating debian/control directly is undesirable, an alternative is
  to have a different command line option that directly outputs the
  expected XS-Vendored-Sources-Rust line. This would avoid users needing
  to parse stderr which feels awkward.

  My usecase is inclusion in a custom rule in debian/rules to update the
  vendoring of a package instead of a long list of instructions or
  commands. The custom rule would be run locally by the package
  contributor to prepare the updated package and not at buildtime. I
  believe every Rust package in main needs to have either a rule or
  script or documentation to do the vendoring, so I expect my requested
  feature here would be widely used.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dh-cargo/+bug/2115573/+subscriptions



References