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

Bug#671258: manpages: Too few (or no) warnings from "man" ("groff")



Package: lintian
Version: 2.5.6
Severity: normal
Tags: patch

  If "--warnings" is used, only warnings of type "mac" are
issued.  The full potential of "groff" should be used, using
"--warnings=w".

  Lines, that remove warnings because of the use of old
"pod2man" (or other programme), should be removed when it has been fixed.

  THE PATCH HAS NOT BEEN TESTED:

--- manpages	2012-03-12 14:40:11.000000000 +0000
+++ manpages.new	2012-05-02 02:08:29.000000000 +0000
@@ -240,9 +240,9 @@
         # pages with .so but aren't simple links; rbash, for instance.)
         my $cmd;
         if ($path =~ m,^(.*)/(man\d/.*)$,) {
-            $cmd = "cd \Q$1\E && man --warnings -E UTF-8 -l \Q$2\E";
+            $cmd = "cd \Q$1\E && man --warnings=w -E UTF-8 -l \Q$2\E";
         } else {
-            $cmd = "man --warnings -E UTF-8 -l \Q$path\E";
+            $cmd = "man --warnings=w -E UTF-8 -l \Q$path\E";
         }
         my $pid = open MANERRS, '-|';
         if (not defined $pid) {
@@ -270,7 +270,10 @@
                 and (   $manfile[$1 - 1] =~ m,(?:https?|ftp)://.+,i
                      or $manfile[$1 - 1] =~ m,^\s*\.\s*UE\b,);
             # ignore common undefined macros from pod2man << Perl 5.10
+            # This and next line should be removed for wheezy
             next if /warning: (?:macro )?\`(Tr|IX)\' not defined/;
+            # This and next line should be removed for wheezy or its successor
+            next if /warning: (?:number register )?['`]F\' not defined/;
             chomp;
             s/^[^:]+://o;
             tag 'manpage-has-errors-from-man', $file, $_;

  System Information are for the 2.4.3+squeeze1 version (squeeze).

-- System Information:
Debian Release: 6.0.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 'stable')
Architecture: i386 (i586)

Kernel: Linux 2.6.32-41
Locale: LANG=is_IS, LC_CTYPE=is_IS (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash

Versions of packages lintian depends on:
ii  binutils               2.20.1-16         The GNU assembler, linker and bina
ii  diffstat               1.53-1            produces graph of changes introduc
ii  dpkg-dev               1.15.8.12         Debian package development tools
ii  file                   5.04-5+squeeze1   Determines file type using "magic"
ii  gettext                0.18.1.1-3        GNU Internationalization utilities
ii  intltool-debian        0.35.0+20060710.1 Help i18n of RFC822 compliant conf
ii  libapt-pkg-perl        0.1.24+b1         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.1         parse Debian changelogs and output
ii  libtimedate-perl       1.2000-1          collection of modules to manipulat
ii  liburi-perl            1.54-2            module to manipulate and access UR
ii  locales                2.11.3-3          Embedded GNU C Library: National L
ii  man-db                 2.5.7-8           on-line manual pager
ii  perl [libdigest-sha-pe 5.10.1-17squeeze3 Larry Wall's Practical Extraction 

lintian recommends no packages.

Versions of packages lintian suggests:
pn  binutils-multiarch            <none>     (no description available)
pn  libtext-template-perl         <none>     (no description available)
ii  man-db                        2.5.7-8    on-line manual pager

-- no debconf information

-- 
Bjarni I. Gislason



Reply to: