Re: Bug#450432: ... and even more bugs like this?
>>>>> "IS" == Ivan Shmakov <ivan@theory.asu.ru> writes:
>>>>> "CW" == Colin Watson <cjwatson@debian.org> writes:
[...]
>> The -wmac option to groff will emit a warning for this mistake.
[...]
>> It's not especially easy right now to make Lintian pass this, since
>> man doesn't expose an interface to add extra options to groff.
IS> And here goes another hack:
> $ cat man.local
> .warn 512
> .mso /usr/share/groff/site-tmac/man.local
> $ cat mdoc.local
> .warn 512
> .mso /usr/share/groff/site-tmac/mdoc.local
> $ LC_ALL=C GROFF_TMAC_PATH="$PWD" man ifconfig > /dev/null
> Reformatting ifconfig(8), please wait...
> /tmp/zman6d1c0O:63: warning: `Note:' not defined
> $
[...]
IS> How about adding this one to lintian?
So, I've written a (yet another) crude hack and going to file a
wishlist bug against lintian.
A run on some of the `.deb's from Debian 4.0 *r0* (somewhat a
random and, what's worse, somewhat outdated set):
$ lintian --root="$PWD"/../lintian-root-2007-11-15 \
*.deb \
| grep -F has-errors
W: libdirectfb-dev: manpage-has-errors-from-man usr/share/man/man1/directfb-config.1.gz 24: warning: `l' not defined
W: dvidvi: manpage-has-errors-from-man usr/share/man/man1/a5booklet.1.gz 9: warning: `IX' not defined
The lines like this seems to me somewhat bogus. I guess, `.IX'
allows one to specify an index item, and since `man' doesn't
provide any indices, this macro is left undefined, and thus
ignored by `man' (and it's okay.)
A simple-minded approach to suppress these warnings would be
something like:
.de IX
.end
but I believe that such a definition belongs to the macro
package `man' uses.
W: dvgrab: manpage-has-errors-from-man usr/share/man/de/man1/dvgrab.1.gz 308: warning: `..' not defined
W: dput: manpage-has-errors-from-man usr/share/man/man1/dput.1.gz 92: warning: `P.SH' not defined
W: dpkg-dev: manpage-has-errors-from-man usr/share/man/man1/dpkg-checkbuilddeps.1.gz 27: warning: `UR' not defined
W: dpkg-dev: manpage-has-errors-from-man usr/share/man/man1/dpkg-architecture.1.gz 104: warning: `C`' not defined
Something like the above with these two?..
W: dpkg-dev: manpage-has-errors-from-man usr/share/man/fr/man1/dpkg-checkbuilddeps.1.gz 34: warning: `UR' not defined
W: dpkg-dev: manpage-has-errors-from-man usr/share/man/fr/man1/dpkg-architecture.1.gz 111: warning: `C`' not defined
W: dpkg-dev: manpage-has-errors-from-man usr/share/man/ja/man1/dpkg-checkbuilddeps.1.gz 29: warning: `UR' not defined
W: dpkg-dev: manpage-has-errors-from-man usr/share/man/de/man1/dpkg-checkbuilddeps.1.gz 33: warning: `UR' not defined
W: dpkg-dev: manpage-has-errors-from-man usr/share/man/de/man1/dpkg-architecture.1.gz 110: warning: `C`' not defined
W: dpkg-dev: manpage-has-errors-from-man usr/share/man/ru/man1/dpkg-checkbuilddeps.1.gz 33: warning: `UR' not defined
W: dpkg: manpage-has-errors-from-man usr/share/man/man1/dpkg-query.1.gz 51: warning: `T' not defined
... And with this one, too? Below there're mentions of `DA',
`DS', `E', `LO' and `TR' as well.
W: dpkg: manpage-has-errors-from-man usr/share/man/fr/man1/dpkg-query.1.gz 42: warning: `T' not defined
W: dpkg: manpage-has-errors-from-man usr/share/man/fr/man8/dpkg-statoverride.8.gz 91: warning: `UR' not defined
W: dpkg: manpage-has-errors-from-man usr/share/man/ja/man1/dpkg-query.1.gz 39: warning: `T' not defined
W: dpkg: manpage-has-errors-from-man usr/share/man/ja/man8/dpkg-statoverride.8.gz 75: warning: `UR' not defined
W: dpkg: manpage-has-errors-from-man usr/share/man/de/man8/dpkg-statoverride.8.gz 92: warning: `UR' not defined
W: dpkg: manpage-has-errors-from-man usr/share/man/man8/dpkg-statoverride.8.gz 90: warning: `UR' not defined
W: dpkg: manpage-has-errors-from-man usr/share/man/sv/man1/dpkg-query.1.gz 41: warning: `T' not defined
W: dpkg: manpage-has-errors-from-man usr/share/man/pl/man1/dpkg-query.1.gz 43: warning: `T' not defined
W: dpkg: manpage-has-errors-from-man usr/share/man/pl/man8/dpkg-statoverride.8.gz 88: warning: `UR' not defined
W: docbook-utils: manpage-has-errors-from-man usr/share/man/man7/frontend-spec.7.gz 37: warning: `..)' not defined
W: docbook-to-man: manpage-has-errors-from-man usr/share/man/man1/instant.1.gz 81: warning: `E' not defined
W: docbook-to-man: manpage-has-errors-from-man usr/share/man/man5/transpec.5.gz 467: warning: `DS' not defined
W: docbook-to-man: manpage-has-errors-from-man usr/share/man/man3/regexp.3.gz 2: warning: `DA' not defined
W: dirmngr: manpage-has-errors-from-man usr/share/man/man1/dirmngr.1.gz 245: warning: `#'' not defined
W: dirmngr: manpage-has-errors-from-man usr/share/man/man1/dirmngr-client.1.gz 86: warning: `-vv'' not defined
W: dialog: manpage-has-errors-from-man usr/share/man/man3/dialog.3.gz 1494: warning: `..' not defined
W: dhcp3-common: manpage-has-errors-from-man usr/share/man/man5/dhcp-options.5.gz 1136: warning: `.'' not defined
W: dh-make: manpage-has-errors-from-man usr/share/man/man8/dh_make.8.gz 74: warning: `If' not defined
W: debootstrap: manpage-has-errors-from-man usr/share/man/man8/debootstrap.8.gz `R' is a string (producing the registered sign), not a macro.
W: ddd: manpage-has-errors-from-man usr/share/man/man1/ddd.1.gz 34: warning: `PSPIC' not defined
W: dctrl-tools: manpage-has-errors-from-man usr/share/man/man1/tbl-dctrl.1.gz 115: warning: `Bi' not defined
W: dcraw: manpage-has-errors-from-man usr/share/man/man1/dcfujiturn.1.gz 7: warning: `LO' not defined
W: dcraw: manpage-has-errors-from-man usr/share/man/man1/dccleancrw.1.gz 7: warning: `LO' not defined
W: dcraw: manpage-has-errors-from-man usr/share/man/man1/dcraw.1.gz 13: warning: `LO' not defined
W: dcraw: manpage-has-errors-from-man usr/share/man/man1/dcparse.1.gz 7: warning: `LO' not defined
W: dcraw: manpage-has-errors-from-man usr/share/man/man1/dcfujigreen.1.gz 7: warning: `LO' not defined
W: dcc-common: manpage-has-errors-from-man usr/share/man/man8/dcc.8.gz Empty input line #820
W: dcc-client: manpage-has-errors-from-man usr/share/man/man8/dccifd.8.gz 688: warning: `"' not defined
W: dbs: manpage-has-errors-from-man usr/share/man/man1/dbs-edit-patch.1.gz 91: warning: `UR' not defined
W: dbs: manpage-has-errors-from-man usr/share/man/man7/dbs.7.gz 320: warning: `UR' not defined
W: dbconfig-common: manpage-has-errors-from-man usr/share/man/man1/dbconfig-load-include.1.gz 8: warning: `Xc' not defined
W: dbconfig-common: manpage-has-errors-from-man usr/share/man/man1/dbconfig-generate-include.1.gz 8: warning: `Xc' not defined
W: db4.4-util: manpage-has-errors-from-man usr/share/man/man1/db4.4_checkpoint.1.gz 27: warning: `TR' not defined
W: db4.4-util: manpage-has-errors-from-man usr/share/man/man1/db4.4_deadlock.1.gz 50: warning: `TR' not defined
W: db4.4-util: manpage-has-errors-from-man usr/share/man/man1/db4.4_load.1.gz 127: warning: `TR' not defined
W: db4.3-util: manpage-has-errors-from-man usr/share/man/man1/db4.3_deadlock.1.gz 50: warning: `TR' not defined
W: db4.3-util: manpage-has-errors-from-man usr/share/man/man1/db4.3_load.1.gz 127: warning: `TR' not defined
W: db4.3-util: manpage-has-errors-from-man usr/share/man/man1/db4.3_checkpoint.1.gz 27: warning: `TR' not defined
W: dasher: manpage-has-errors-from-man usr/share/man/man1/dasher.1.gz 112: warning: `B--with-a11y.' not defined
$
[...]
Reply to: