[Pkg-rust-maintainers] Bug#1053556: dh-cargo: should provide a build() method

Arnaud Ferraris aferraris at debian.org
Fri Oct 6 10:10:32 BST 2023


Package: dh-cargo
Version: 30
Severity: important
X-Debbugs-Cc: aferraris at debian.org

Dear Maintainer,

dh-cargo currently only provides the configure(), test(), clean() and install()
methods. As a consequence, building a package requires calling dh_auto_test,
which is a noop when DEB_BUILD_OPTIONS include "nocheck"[1].

This causes problems when packaging applications (i.e. not crates), as it then
leads to build failures in this specific case (see #1050769[2] for example).

As a consequence, it would be helpful to split the current test() method into
build() and test() so dh_auto_build can be used to build the package, and
dh_auto_test can be used only for executing tests (building those in the
process if needed).

Regards,
Arnaud

[1] https://salsa.debian.org/debian/debhelper/-/blob/main/dh_auto_test#L58
[2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1050769


-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (500, 'testing'), (200, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.4.0-3-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages dh-cargo depends on:
ii  cargo      0.66.0+ds1-1
ii  debhelper  13.11.6
ii  perl       5.36.0-9
ii  python3    3.11.4-5+b1

dh-cargo recommends no packages.

dh-cargo suggests no packages.

-- no debconf information



More information about the Pkg-rust-maintainers mailing list