[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#897166: lintian: default-mta-dependency-not-listed-first false positive, if default-mta is not first in field



Package: lintian
Version: 2.5.84
Severity: normal

Dear Maintainer,

I just changed the Build-Depends of rancid 3.7-2 (just uploaded) from
 exim4 | mail-transport-agent
to
 default-mta | mail-transport-agent
to get rid of the default-mta-dependency-not-listed-first error.
But after the change the warning persists:

$ lintian -T default-mta-dependency-not-listed-first rancid_3.7-2.dsc          
W: rancid source: default-mta-dependency-not-listed-first build-depends: automake, cvs, debhelper (>= 11~), default-mta | mail-transport-agent, expect, inetutils-ping [!linux-any], iputils-ping [linux-any], openssh-client, perl, po-debconf, telnet

As far as I can see, this seems to be an issue in fields.pm
check_field(), which tests, whether $seen[0] is 'default-mta'.
The problem here seems to be, that there are several Build-Depends in
rancid, which are sorted using wrap-and-sort, so
default-mta|mail-transport-agent isn't the first but fourth
Build-Dependency, so $seen[0] is 'automake' and not 'default-mta'.

I added a little Data::Dumper call Dumper(\@seen) to check_seen() and
this gives me:
$VAR1 = [
          'automake',
          'cvs',
          'debhelper',
          'default-mta',
          'mail-transport-agent',
          'expect',
          'inetutils-ping',
          'iputils-ping',
          'openssh-client',
          'perl',
          'po-debconf',
          'telnet'
        ];

Greetings
Roland


-- System Information:
Debian Release: 9.4
  APT prefers stable
  APT policy: (500, 'stable'), (50, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-6-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf-8, LC_CTYPE=de_DE.utf-8 (charmap=UTF-8), LANGUAGE=de_DE:de:en_GB:en (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.28-5
ii  bzip2                             1.0.6-8.1
ii  diffstat                          1.61-1+b1
ii  dpkg                              1.18.24
ii  file                              1:5.30-1+deb9u1
ii  gettext                           0.19.8.1-2
ii  intltool-debian                   0.35.0+20060710.4
ii  libapt-pkg-perl                   0.1.32
ii  libarchive-zip-perl               1.59-1
ii  libclass-accessor-perl            0.34-1
ii  libclone-perl                     0.38-2+b1
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.94-1
ii  liblist-moreutils-perl            0.416-1+b1
ii  libparse-debianchangelog-perl     1.2.0-12
ii  libperl5.24 [libdigest-sha-perl]  5.24.1-3+deb9u3
ii  libtext-levenshtein-perl          0.13-1
ii  libtimedate-perl                  2.3000-2
ii  liburi-perl                       1.71-1
ii  libxml-simple-perl                2.22-1
ii  libyaml-libyaml-perl              0.63-2
ii  man-db                            2.7.6.1-2
ii  patchutils                        0.3.4-2
ii  perl                              5.24.1-3+deb9u3
ii  t1utils                           1.39-2
ii  xz-utils                          5.2.2-1.2+b1

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

Versions of packages lintian suggests:
ii  binutils-multiarch     2.28-5
ii  dpkg-dev               1.18.24
ii  libhtml-parser-perl    3.72-3
ii  libtext-template-perl  1.46-1

-- no debconf information

Attachment: signature.asc
Description: PGP signature


Reply to: