NetBSD Problem Report #1315
From gnats Fri Aug 4 09:26:17 1995
Received: from pain.lcs.mit.edu (pain.lcs.mit.edu [128.52.46.239]) by sun-lamp.pc.cs.cmu.edu (8.6.11/8.6.10) with ESMTP id JAA04425 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Fri, 4 Aug 1995 09:26:15 -0400
Message-Id: <199508041803.UAA21863@honey.idt.unit.no>
Date: Fri, 4 Aug 1995 20:03:51 +0200
From: jarle@idt.unit.no
Reply-To: jarle@idt.unit.no
To: gnats-bugs@netbsd.org
Subject: whatis.db is not a dbm file.
X-Send-Pr-Version: 3.2
>Number: 1315
>Category: misc
>Synopsis: whatis.db is not a dbm file.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: misc-bug-people
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Fri Aug 04 09:35:01 +0000 1995
>Closed-Date: Sun Jan 02 09:12:21 +0000 2000
>Last-Modified: Sun Jan 02 09:13:09 +0000 2000
>Originator:
>Release: 1.0
>Organization:
a body of persons organized for some end of work
>Environment:
System: NetBSD darling.idt.unit.no 1.0A NetBSD 1.0A (DARLING) #21: Fri Jul 21 09:08:59 MET DST 1995 jarle@darling.idt.unit.no:/usr/src/sys/arch/i386/compile/DARLING i386
>Description:
The makewhatis script stores its output in a file named whatis.db. There
are two problems with this:
1) It is inconsistent with other parts of the system that uses the .db
extension to state that this is a Berkeley DB-file,
e.g. /etc/aliases.db, /etc/pwd.db, and /var/run/dev.db.
2) It causes problems when some of our (local) software builds real dbm
whatis files. NetBSD apropos and whatis attempt to open this file as a
ordinary text file, and subsequently complain that the lines in this
file are too long (no kidding!).
>How-To-Repeat:
>Fix:
I propose that the makewhatis script be modified to store its output in
files named whatis.txt instead of whatis.db. Diffs below (I don't have any
strong opinions regarding this extension; feel free to change it to
something more suitable if you fancy.)
-jarle
--
"There's no shortage of incomprehensive text, just visit your local
university bookstore."
-- Anders Christensen
Documentation for the 'svada' program
================================================================
*** man.conf.orig Fri Aug 4 19:35:44 1995
--- man.conf Fri Aug 4 19:35:58 1995
***************
*** 5,9 ****
# The whatis/apropos database.
! _whatdb /usr/share/man/whatis.db
# Subdirectories for paths ending in '/', IN SEARCH ORDER.
--- 5,9 ----
# The whatis/apropos database.
! _whatdb /usr/share/man/whatis.txt
# Subdirectories for paths ending in '/', IN SEARCH ORDER.
*** pathnames.h.orig Fri Aug 4 19:28:23 1995
--- pathnames.h Fri Aug 4 19:28:34 1995
***************
*** 37,39 ****
#define _PATH_PAGER "/usr/bin/more -s"
#define _PATH_TMP "/tmp/man.XXXXXX"
! #define _PATH_WHATIS "whatis.db"
--- 37,39 ----
#define _PATH_PAGER "/usr/bin/more -s"
#define _PATH_TMP "/tmp/man.XXXXXX"
! #define _PATH_WHATIS "whatis.txt"
*** makewhatis.sh.orig Fri Aug 4 19:27:44 1995
--- makewhatis.sh Fri Aug 4 19:28:13 1995
***************
*** 30,33 ****
sort -u -o /tmp/whatis$$ /tmp/whatis$$
! install -o bin -g bin -m 444 /tmp/whatis$$ "$MANDIR/whatis.db"
exit 0
--- 30,33 ----
sort -u -o /tmp/whatis$$ /tmp/whatis$$
! install -o bin -g bin -m 444 /tmp/whatis$$ "$MANDIR/whatis.txt"
exit 0
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->suspended
State-Changed-By: jtc
State-Changed-When: Tue Mar 5 21:43:55 1996
State-Changed-Why:
I don't think we should be constrained by filename extensions -- it's the
contents that are important. I'm suspending this pr instead of closing it
because one could argue that the whatis database *should* be a db database.
State-Changed-From-To: suspended->closed
State-Changed-By: fair
State-Changed-When: Sun Jan 2 01:12:21 PST 2000
State-Changed-Why:
Nearly four years of inactivity; I don't think anyone really cares about
this PR.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.