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

Bug#577208: lintian: wrong heuristic to detect gzip manpages



Package: lintian
Version: 2.3.4
Severity: normal

  Hi,

  Without changing anything in my package, lintian find that one of the
manpages is not in gzip form, whereas it is really.
  The package is yaz_4.0.2-1 that I uploaded to unstable a few days ago.
It was working correctly, no problem with lintian.
  I tried to create yaz_4.0.2-2, identically, in order to upload it to
unstable. Lintian find a warning and an error:

vdanjean@eyak:~/debian/mainteneur/yaz/build-area$ lintian yaz_4.0.2-1_amd64.deb
vdanjean@eyak:~/debian/mainteneur/yaz/build-area$ lintian yaz_4.0.2-2_amd64.deb
W: yaz: gz-file-not-gzip usr/share/man/man7/bib1-attr.7.gz
E: yaz: manpage-not-compressed-with-gzip usr/share/man/man7/bib1-attr.7.gz

Looking into the contents of the two packages (extracted with "dpkg -x ..."),
I find:
- both usr/share/man/man7/bib1-attr.7.gz are readable with zless but give
  binary data when inspected with less (normal behavior)
- "file" does not correctly identify the type of
  usr/share/man/man7/bib1-attr.7.gz in the second package
vdanjean@eyak:~/debian/mainteneur/yaz/build-area$ file yaz-*/usr/share/man/man7/bib1-attr.7.gz
yaz-4.0.2-1/usr/share/man/man7/bib1-attr.7.gz: gzip compressed data, from Unix, max compression
yaz-4.0.2-2/usr/share/man/man7/bib1-attr.7.gz:  Minix filesystem, V1, 45669 zones

- when building step-by-step yaz-4.0.2-2, usr/share/man/man7/bib1-attr.7.gz is
  compressed from a plain file by dh_compress
- plain text of the two manpages are similar (only the date changes as it is
  generated)
vdanjean@eyak:~/debian/mainteneur/yaz/build-area$ zdiff yaz_*/usr/share/man/man7/bib1-attr.7.gz 
5c5
< .\"      Date: 03/30/2010
---
> .\"      Date: 04/10/2010
10c10
< .TH "BIB\-1 ATTRIBUTE SET" "7" "03/30/2010" "YAZ 4.0.2" "[FIXME: manual]"
---
> .TH "BIB\-1 ATTRIBUTE SET" "7" "04/10/2010" "YAZ 4.0.2" "[FIXME: manual]"


  I'm not really sure where the bug really is (file ? lintian ? dh_compress ?)
but as it seems that this is a valid gzip file and I'm not sure lintian use
"file" to identify the format, I'm reporting against lintian.
  For now, I'm adding an override.

  I'm attaching the problematic manpage (the one from yaz-4.0.2-2)

  Regards


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

Kernel: Linux 2.6.32-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages lintian depends on:
ii  binutils               2.20.1-5          The GNU assembler, linker and bina
ii  diffstat               1.47-1            produces graph of changes introduc
ii  dpkg-dev               1.15.5.6          Debian package development tools
ii  file                   5.04-2            Determines file type using "magic"
ii  gettext                0.17-10           GNU Internationalization utilities
ii  intltool-debian        0.35.0+20060710.1 Help i18n of RFC822 compliant conf
ii  libapt-pkg-perl        0.1.24            Perl interface to libapt-pkg
ii  libclass-accessor-perl 0.34-1            Perl module that automatically gen
ii  libipc-run-perl        0.89-1            Perl module for running processes
ii  libparse-debianchangel 1.1.1-2           parse Debian changelogs and output
ii  libtimedate-perl       1.2000-1          collection of modules to manipulat
ii  liburi-perl            1.54-1            module to manipulate and access UR
ii  locales                2.11-0exp6        Embedded GNU C Library: National L
ii  man-db                 2.5.7-2           on-line manual pager
ii  perl [libdigest-sha-pe 5.10.1-11         Larry Wall's Practical Extraction 

lintian recommends no packages.

Versions of packages lintian suggests:
ii  binutils-multiarch            2.20.1-5   Binary utilities that support mult
ii  libtext-template-perl         1.45-1     Text::Template perl module
ii  man-db                        2.5.7-2    on-line manual pager

-- no debconf information

Attachment: bib1-attr.7.gz
Description: Binary data


Reply to: