Package: lintian
Version: 2.5.52
Severity: normal

Lintian can't decide between

W: zsh source: useless-autoreconf-build-depends autotools-dev

and

E: zsh source: missing-build-dependency-for-dh_-command 
dh_autotools-dev_restoreconfig => autotools-dev

for a compat level 10 source package.

The only change between these two errors/warnings is this commit:

commit d092760816ef0149321db35dc9ac68d707600407 (debian)
Author: Axel Beckert <a...@deuxchevaux.org>
Date:   Thu Aug 10 21:40:15 2017 +0200

    Drop build-dependencies on autotools-dev and dh-autoreconf
    
    No more needed with debhelper compatibility level 10 and the according
    versioned build-dependency.
    
    Thanks: Lintian for the hint.
    
    Gbp-Dch: Full

diff --git a/debian/control b/debian/control
index 79a42d9a3..3bc7ba5f8 100644
--- a/debian/control
+++ b/debian/control
@@ -1,11 +1,9 @@
 Source: zsh
 Section: shells
 Priority: optional
-Build-Depends: autotools-dev,
-               bsdmainutils,
+Build-Depends: bsdmainutils,
                cm-super-minimal,
                debhelper (>= 10),
-               dh-autoreconf,
                dpkg-dev (>= 1.16.2~),
                ghostscript,
                groff,

The relevant lines from debian/rules are these:

     94 clean:
     95         dh_testdir
     96         dh_autoreconf_clean
     97         dh_autotools-dev_restoreconfig
     98         rm -f build build-static
     99         dh_auto_clean -B obj
    100         dh_auto_clean -B obj-static
    101         dh_auto_clean
    102         dh_clean

(See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=698765#27 for
some discussion and reasoning about these lines.)

As far as I can see, the missing-build-dependency-for-dh_-command error
is the wrong one as the package builds fine under pbuilder with this
commit and without these build-dependencies despite this error.

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (980, 'unstable-debug'), (600, 'testing'), 
(111, 'buildd-unstable'), (111, 'buildd-experimental'), (110, 'experimental'), 
(105, 'experimental-debug')
Architecture: amd64 (x86_64)

Kernel: Linux 4.12.0-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C.UTF-8 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages lintian depends on:
ii  binutils                          2.29-4
ii  bzip2                             1.0.6-8.1
ii  diffstat                          1.61-1+b1
ii  dpkg                              1.18.24
ii  file                              1:5.31-1
ii  gettext                           0.19.8.1-2+b1
ii  intltool-debian                   0.35.0+20060710.4
ii  libapt-pkg-perl                   0.1.32+b2
ii  libarchive-zip-perl               1.59-1
ii  libclass-accessor-perl            0.34-1
ii  libclone-perl                     0.38-2+b2
ii  libdigest-sha-perl                5.96-1+b3
ii  libdpkg-perl                      1.18.24
ii  libemail-valid-perl               1.202-1
ii  libfile-basedir-perl              0.07-1
ii  libipc-run-perl                   0.96-1
ii  liblist-moreutils-perl            0.416-1+b3
ii  libparse-debianchangelog-perl     1.2.0-12
ii  libperl5.26 [libdigest-sha-perl]  5.26.0-5
ii  libtext-levenshtein-perl          0.13-1
ii  libtimedate-perl                  2.3000-2
ii  liburi-perl                       1.72-1
ii  libxml-simple-perl                2.24-1
ii  libyaml-libyaml-perl              0.63-2+b2
ii  man-db                            2.7.6.1-2
ii  patchutils                        0.3.4-2
ii  perl                              5.26.0-5
ii  t1utils                           1.40-2
ii  xz-utils                          5.2.2-1.3

Versions of packages lintian recommends:
ii  libperlio-gzip-perl  0.19-1+b4

Versions of packages lintian suggests:
ii  binutils-multiarch     2.29-4
ii  dpkg-dev               1.18.24
ii  libhtml-parser-perl    3.72-3+b2
ii  libtext-template-perl  1.46-1

-- no debconf information

Reply via email to