Subject: bin/9083: makewhatis errors
To: None <>
From: None <>
List: netbsd-bugs
Date: 12/30/1999 03:57:52
>Number:         9083
>Category:       bin
>Synopsis:       makewhatis produces bad summaries for macros
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 30 03:57:00 1999
>Originator:     Geoff C. Wing
Geoff Wing : <>     Work URL:
Rxvt Stuff : <>      Ego URL :
Zsh Stuff  : <>       Phone   : (Australia) 0413 431 874
>Release:        ~19991228
System: NetBSD 1.4P NetBSD 1.4P (C) #0: Sat Nov 20 15:18:53 EST 1999 i386

	makewhatis produces some bad output.  I presume that it is fine tuned
	for man pages in the main tree, but with other than those it
	encounters some bad errors with unknown macros.

	Specific example: pkgsrc/graphics/tiff

	whatis.db entry reads:
		tiff2ps (1) - convert a TIFFTIFF image to (Pstm

	tiff2ps.1 has:
		.ds Ps P\s-2OST\s+2S\s-2CRIPT\s+2
		tiff2ps \- convert a
		image to \*(Ps\(tm

	whatis.db entry _should_ read:
		tiff2ps (1) - convert a TIFF image to POSTSCRIPTtm

	See above.
	1) Pump every man page (i.e. not cat'd stuff) through nroff and
	   process like a cat page.
	2) Adapt above to only do so on man pages with unknown macros or

	Obviously it will slow it down but does it really matter if it's
	going to produce the right stuff, and let people apropos on, say,
	``postscript'' with correct results.  makewhatis is not time