Package: libdpkg-perl
Version: 1.18.8
Severity: normal
Control: affects -1 src:zsh src:poppler src:libjodycode src:doxygen 
src:jemalloc src:jdupes src:libsdl2 src:iproute2

Any test stanza in a debian/tests/control file which contains a
foo:native Depends will not have its dependencies translated into
Testsuite-Triggers.

This is due to an explicit check in Dpkg::Deps::Simple->parse_string()
which only allows native qualified dependencies for build dependencies.

As an example, running “dpkg-source -b .” for jdupes shows

% dpkg-source -b .
dpkg-source: warning: can't parse dependency tree:native
dpkg-source: warning: can't parse dependency tree:native
dpkg-source: warning: can't parse dependency tree:native
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building jdupes using existing ./jdupes_1.27.3.orig.tar.gz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: building jdupes in jdupes_1.27.3-2.debian.tar.xz
dpkg-source: info: building jdupes in jdupes_1.27.3-2.dsc

Three warnings, one for each of the tests.  Since it does have a test
without a native qualified dependency, Testsuite-Triggers is generated.

% grep Depends debian/tests/control
Depends: @, tree:native
Depends: @, tree:native
Depends: @, tree:native
Depends: @, forensics-samples-files
% grep Testsuite ../jdupes_1.27.3-2.dsc
Testsuite: autopkgtest
Testsuite-Triggers: forensics-samples-files

As far as I can tell, this has been a problem since dpkg-source gained
support for generating Testsuite-Triggers.

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

Kernel: Linux 6.5.0-1-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.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 libdpkg-perl depends on:
ii  dpkg  1.22.0
ii  perl  5.36.0-9

Versions of packages libdpkg-perl recommends:
ii  bzip2                   1.0.8-5+b1
ii  libfile-fcntllock-perl  0.22-4+b1
ii  liblocale-gettext-perl  1.07-6
ii  xz-utils                5.4.4-0.1

Versions of packages libdpkg-perl suggests:
ii  binutils               2.41-5
ii  brz [bzr]              3.3.4-1
ii  clang-14 [c-compiler]  1:14.0.6-16
ii  clang-16 [c-compiler]  1:16.0.6-15
ii  debian-keyring         2023.09.24
ii  gcc [c-compiler]       4:13.2.0-1
ii  gcc-13 [c-compiler]    13.2.0-4
ii  git                    1:2.42.0-1
ii  gnupg                  2.2.40-1.1
ii  gpgv                   2.2.40-1.1
ii  patch                  2.7.6-7
ii  sensible-utils         0.0.20

-- no debconf information

Reply via email to