Bug#506271: marked as done (lintian: weirdness when checking manpages with nroff ignore commands)
Your message dated Tue, 25 Nov 2008 20:24:32 +0000
with message-id <1227644672.12811.25.camel@kaa.jungle.aubergine.my-net-space.net>
and subject line Re: Bug#506271: lintian: weirdness when checking manpages with nroff ignore commands
has caused the Debian Bug report #506271,
regarding lintian: weirdness when checking manpages with nroff ignore commands
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)
--
506271: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=506271
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: lintian
Version: 1.24.2.1
Severity: normal
I was not able to get rid of lintian warnings in some man pages that made
extensive use of the nroff ignore (.ig) command. I tracked down the problem
to a weird behaviour of man.
It seems lintian uses the command "man -l --warnings" to check the sanity
of a manpage.
I did some experiments Using the following test manpage tst.1:
..TH TST 1 "Nov 2008"
..SH NAME
tst \- Test man page
..SH SYNOPSIS
tst -a -b -c
..SH DESCRIPTION
..nr Pb 0
..if \n(Pb .ig ZZ
I see this!
..ZZ
Yes yes, this text is always visible.
..if !\n(Pb .ig ZZ
I don't see this text, if Pb is zero!
..ZZ
Using the lintian command string:
$ man -l --warnings tst.1 > /dev/null
<standard input>:10: warning: `ZZ' not defined
it is seen that man complains about the last .ZZ, which is perfectly
legal. However, running this:
$ man -l --warnings=all tst.1 > /dev/null
gives no output. The same is true for:
$ nroff -man -wall tst.1 > /dev/null
I don't understand what's going on here, but it seems that the
--warnings option alone on man triggers a buggy behaviour. I suggest
that the checking string in lintian is changed so it uses nroff
directly, since that is what is invoked by man anyway.
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages lintian depends on:
ii binutils 2.18.1~cvs20080103-7 The GNU assembler, linker and bina
ii diffstat 1.45-2 produces graph of changes introduc
ii dpkg-dev 1.14.22 Debian package development tools
ii file 4.26-1 Determines file type using "magic"
ii gettext 0.17-4 GNU Internationalization utilities
ii intltool-debian 0.35.0+20060710.1 Help i18n of RFC822 compliant conf
ii libparse-debianchan 1.1.1-2 parse Debian changelogs and output
ii libtimedate-perl 1.1600-9 Time and date functions for Perl
ii liburi-perl 1.35.dfsg.1-1 Manipulates and accesses URI strin
ii man-db 2.5.2-3 on-line manual pager
ii perl [libdigest-sha 5.10.0-16 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.2-3 on-line manual pager
-- no debconf information
--- End Message ---
--- Begin Message ---
On Thu, 2008-11-20 at 23:10 +0100, Morten Kjeldgaard wrote:
> > I disagree. lintian is checking a manpage; the fact that doing so
> > invokes nroff is an implementation detail.
>
> Fair enough. I guess this bug can be closed, then.
Okay, thanks. Doing so with this message.
Regards,
Adam
--- End Message ---
Reply to: