Date: Mon, 23 Dec 1996 11:00:05 -0800 (PST) From: J Wunsch <j@uriah.heep.sax.de> To: freebsd-bugs Subject: Re: bin/2183: whereis returns environment and database errors - FDIV046 Message-ID: <199612231900.LAA15853@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/2183; it has been noted by GNATS. 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. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199612231900.LAA15853>