Package: lintian Version: 2.5.20 Severity: normal Tags: patch Dear Maintainer, I propose to refine a little the check for warnings in manpages Here are my replies to the ordinary questions:
* What led up to the situation? when I tried to enhance the package tix, lintian complained for every manpage because the file tix.tmac could not be found. However the right macro file did exist under the debian directory, in a right place for groff. * What exactly did you do ? I patched the current version of lintian to add one feature: searching a directory which may contain man macros, and adding an environment variable for the test based on "man --warnings" * What was the outcome of this action? When I installed the modified lintian package, the false warnings disappeared. -- System Information: Debian Release: jessie/sid APT prefers testing APT policy: (990, 'testing'), (650, 'stable'), (600, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.10-3-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/dash Versions of packages lintian depends on: ii binutils 2.23.90.20131017-1 ii bzip2 1.0.6-5 ii diffstat 1.57-1 ii file 1:5.14-2 ii gettext 0.18.3.1-1 ii hardening-includes 2.4 ii intltool-debian 0.35.0+20060710.1 ii libapt-pkg-perl 0.1.29+b1 ii libarchive-zip-perl 1.30-7 ii libclass-accessor-perl 0.34-1 ii libclone-perl 0.35-1 ii libdpkg-perl 1.16.12 ii libemail-valid-perl 1.192-1 ii libfile-basedir-perl 0.03-1 ii libipc-run-perl 0.92-1 ii liblist-moreutils-perl 0.33-1+b2 ii libparse-debianchangelog-perl 1.2.0-1 ii libtext-levenshtein-perl 0.06~01-2 ii libtimedate-perl 1.2000-1 ii liburi-perl 1.60-1 ii man-db 2.6.5-2 ii patchutils 0.3.2-2 ii perl [libdigest-sha-perl] 5.18.1-5 ii t1utils 1.37-2 Versions of packages lintian recommends: ii libautodie-perl 2.21-1 ii libperlio-gzip-perl 0.18-1+b3 ii perl-modules [libautodie-perl] 5.18.1-5 Versions of packages lintian suggests: pn binutils-multiarch <none> ii dpkg-dev 1.16.12 ii libhtml-parser-perl 3.71-1+b1 ii libtext-template-perl 1.46-1 ii xz-utils 5.1.1alpha+20120614-2 -- no debconf information
--- lintian-2.5.20/checks/manpages.pm 2013-11-23 19:04:56.000000000 +0100 +++ lintian-2.5.20+nmu1/checks/manpages.pm 2014-01-06 23:05:26.040016000 +0100 @@ -268,6 +268,13 @@ if ($dir) { chdir($dir); } + # find the path to man macros if necessary + my $macro_path=$path; + $macro_path =~ s{(.*/unpacked).*}{$1}; + $macro_path = `find $macro_path -type d -name tmac| tr '\\n' ':'`; + if ($macro_path){ + $ENV{GROFF_TMAC_PATH}=$macro_path; + } $ENV{MANROFFSEQ} = ''; $ENV{MANWIDTH} = 80; exec { $cmd[0] } @cmd