From owner-freebsd-bugs Sat Jun 8 15:30:16 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id BB8F837B408 for ; Sat, 8 Jun 2002 15:30:03 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g58MU3672961; Sat, 8 Jun 2002 15:30:03 -0700 (PDT) (envelope-from gnats) Date: Sat, 8 Jun 2002 15:30:03 -0700 (PDT) Message-Id: <200206082230.g58MU3672961@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Giorgos Keramidas Subject: Re: misc/18255: whatis(1) doesn't know about /usr/local Reply-To: Giorgos Keramidas Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR misc/18255; it has been noted by GNATS. From: Giorgos Keramidas To: lowell@world.std.com Cc: bug-followup@FreeBSD.org Subject: Re: misc/18255: whatis(1) doesn't know about /usr/local Date: Sun, 9 Jun 2002 01:20:30 +0300 On 2000-04-27 09:31 -0400, lowell@world.std.com wrote: > The period script that runs makewhatis doesn't have /usr/local in > its path, so manpath(1) doesn't include /usr/local/man, so ports and > packages don't get included in the database. The most obvious fix > is to put /usr/local into the /etc/crontab PATH setting, but that's > a bad idea (because root crontab runs *shouldn't* be running > anything from /usr/local in a default system anyway). Hammering it > into the periodic script that calls makewhatis seems like a better > way. I think care should be taken to make sure that the correct value of LOCALBASE is used. The default value is /usr/local as shown in /usr/ports/Mk/bsd.port.mk: 01:18 [charon@hades /usr/ports/Mk]$ grep -n '^LOCALBASE' bsd.port.mk 685:LOCALBASE?= ${DESTDIR}/usr/local Since this can be customized in /etc/make.conf, the following part of the patch might not always be correct: + PATH=${PATH}:/usr/local/bin - Giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message