Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Dec 2001 20:16:42 -0500 (EST)
From:      parv_@yahoo.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   gnu/32954: makewhatis doesn't remove entries for nonexistent manpages by default
Message-ID:  <20011218011642.3434A50D10@moo.holy.cow>

next in thread | raw e-mail | index | archive | help

>Number:         32954
>Category:       gnu
>Synopsis:       makewhatis doesn't remove entries for nonexistent manpages by default
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 17 17:20:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     parv
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
>Environment:

freebsd version is 4.4-stable as of 2001.10.03.02.12.13

below are are the dates & version of makewhatis* files...

  99.08.27.23.36.10 src/gnu/usr.bin/man/makewhatis/makewhatis.local.sh,v 1.7
2001.04.25.14.04.13 src/gnu/usr.bin/man/makewhatis/Makefile,v 1.16.2.2
2001.08.13.09.05.58 src/gnu/usr.bin/man/makewhatis/makewhatis.perl,v 1.21.2.3
2001.08.16.10.14.57 src/gnu/usr.bin/man/makewhatis/makewhatis.1,v 1.14.2.6
2001.08.16.10.14.57 src/gnu/usr.bin/man/makewhatis/makewhatis.local.8,v 1.8.2.3


>Description:

makewhatis doesn't remove entries for nonexistent manpages by
default.  i issued this command...

# cd /usr/local/man
# makewhatis /usr/local/man

in its manpage, there is no mention of the default behaviour.  -v
option would only "issue more warnings"; -a option would append to
the database w/o checking if old entries are valid.

and that's what puzzles me.  i didn't specify the -a option, yet
just that was happening.  i had to delete the existing whatis
database so that changes in /usr/local/man would reflect.


>How-To-Repeat:

- create whatis database in an appropriate directory, say, /usr/local/man.
- move the whatis db to other name. 
- change /usr/local/man's contents by (re)moving man/cat file(s).
- recreate whatis db and comapare w/ the old version.

>Fix:

either document the default -a option (as described above) in
makewhtais(1), or fix the makewhatis.

if manpage is modified, then please also add that to have fresh & clean
whatis db, the current "whatis" needs to (re)moved.

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011218011642.3434A50D10>