From nemesis!uhclem  Sun Dec  8 21:35:16 1996
Received: from nemesis.lonestar.org (fw19-26.ppp.iadfw.net [207.136.16.59])
          by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id VAA02370
          for <FreeBSD-gnats-submit>; Sun, 8 Dec 1996 21:35:14 -0800 (PST)
Received: by nemesis.lonestar.org (Smail3.1.27.1 #22)
	id m0vWyKM-000uPJC; Sun, 8 Dec 96 23:32 CST
Message-Id: <m0vWyKM-000uPJC@nemesis.lonestar.org>
Date: Sun, 8 Dec 96 23:32 CST
From: uhclem@nemesis.lonestar.org
Reply-To: uhclem@nemesis.lonestar.org
To: FreeBSD-gnats-submit@freebsd.org
Cc: uhclem@nemesis.lonestar.org
Subject: whereis returns environment and database errors - FDIV046
X-Send-Pr-Version: 3.2

>Number:         2183
>Category:       bin
>Synopsis:       whereis returns environment and database errors - FDIV046
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec  8 21:40:07 PST 1996
>Closed-Date:    Mon Dec 23 19:55:39 MET 1996
>Last-Modified:  Mon Dec 23 11:00:04 PST 1996
>Originator:     Frank Durda IV (uhclem@nemesis.lonestar.org)
>Release:        FreeBSD 2.2-ALPHA i386
>Organization:
>Environment:

[FDIV046]

Freshly installed 2.2-ALPHA system, logged-in as root, with stock
.cshrc and .login files.  "Developer" installation + DES selected.

>Description:

If you type  whereis pkg_add,    
you get:
	(Warning: MANPATH emvironment variable set)
	database too small: /var/db/locate.database
	pkg_add: /usr/sbin/pkg_add /usr/share/man/man1/pkg_add.1.gz

MANPATH is defined in /root/.login, spread over two setenv commands.

Doing an unsetenv MANPATH just generates more error messages when
the whereis command is performed.

The database complaint may be due to something not being correctly
installed or initialized during the install process.  The system has
been running for about 24 hours (long enough for a 'make world' to run).

>How-To-Repeat:

See above.

>Fix:
	
Not known.


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: joerg 
State-Changed-When: Mon Dec 23 19:55:39 MET 1996 
State-Changed-Why:  
Fixed in rev 1.2 of whereis.pl. 


From: J Wunsch <j@uriah.heep.sax.de>
To: uhclem@nemesis.lonestar.org
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: bin/2183: whereis returns environment and database errors - FDIV046
Date: Mon, 23 Dec 1996 19:49:20 +0100 (MET)

 As uhclem@nemesis.lonestar.org wrote:
 
 > If you type  whereis pkg_add,    
 > you get:
 > 	(Warning: MANPATH emvironment variable set)
 > 	database too small: /var/db/locate.database
 > 	pkg_add: /usr/sbin/pkg_add /usr/share/man/man1/pkg_add.1.gz
 > 
 > MANPATH is defined in /root/.login, spread over two setenv commands.
 
 ...with the Interviews stuff being really silly there.
 
 > Doing an unsetenv MANPATH just generates more error messages when
 > the whereis command is performed.
 
 That's surprising, since it's just what i'm going to do now.  The
 error message rather uncovered a logico in whereis, since the call to
 manpath(1) was supposed to return the system's default manpath, not
 the user's setting (which is considered later anyway).  I've fixed
 this to match my original intention.
 
 > The database complaint may be due to something not being correctly
 > installed or initialized during the install process.  The system has
 > been running for about 24 hours (long enough for a 'make world' to run).
 
 The database is being rebuilt once a week in the regular distribution.
 locate(1) is only consulted if the source hasn't been found elsewhere,
 since it can take much longer than perusing a few well-known source
 dirs.
 
 I'm not sure whether it'd not be better to leave the warning there,
 but it's fairly easy to drop locate's stderr to /dev/null, so i'm
 doing this right now.  Either way, the intended information could not
 be obtained anyway, so what gives.
 
 -- 
 cheers, J"org
 
 joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
 Never trust an operating system you don't have sources for. ;-)
>Unformatted:
