From owner-freebsd-questions Thu Apr 27 6:20:51 2000 Delivered-To: freebsd-questions@freebsd.org Received: from europe.std.com (europe.std.com [199.172.62.20]) by hub.freebsd.org (Postfix) with ESMTP id 687ED37B83F for ; Thu, 27 Apr 2000 06:20:43 -0700 (PDT) (envelope-from lowell@world.std.com) Received: from world.std.com (lowell@world-f.std.com [199.172.62.5]) by europe.std.com (8.9.3/8.9.3) with ESMTP id JAA25501 for ; Thu, 27 Apr 2000 09:20:36 -0400 (EDT) Received: (from lowell@localhost) by world.std.com (8.9.3/8.9.3) id JAA13023; Thu, 27 Apr 2000 09:20:35 -0400 (EDT) To: freebsd-questions@freebsd.org Subject: Re: makewhatis References: <973597126BDDD11197AA00805FA7EBC90297CDA8@ntas0026.gi.com> From: Lowell Gilbert Date: 27 Apr 2000 09:20:35 -0400 In-Reply-To: MMcClain@gi.com's message of 26 Apr 2000 20:07:31 +0200 Message-ID: Lines: 38 X-Mailer: Gnus v5.5/Emacs 20.2 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG MMcClain@gi.com (McClain, Michael SD-EX) writes: > In FreeBSD 3.4, is makewhatis broken? > 'man bash' shows the man page, .apropos bash' says nothing appropriate. Hmm. /usr/local isn't in root's path in /etc/crontab, so manpath(1) doesn't kick back /usr/local/man, so makewhatis doesn't get told to check /usr/local. I'm not sure what The Right Thing is as a fix for this. Putting /usr/local into the crontab path isn't a good idea, because it shouldn't be needed for anything else run from the default crontab (for obvious reasons). I'm kind of tempted to say that the right fix would be to modify /etc/periodic/weekly/320.whatis to add /usr/local there. It's not the prettiest fix, but other fixes seem like they could break with some local settings. I'll submit a PR for such a patch (which I'm also including in a signature to this message). Be well. Lowell -- *** /etc/periodic/weekly/320.whatis Fri Sep 17 00:02:18 1999 --- 320.whatis Thu Apr 27 09:19:32 2000 *************** *** 3,8 **** --- 3,12 ---- # $FreeBSD: src/etc/periodic/weekly/320.whatis,v 1.2.2.1 1999/08/29 14:19:51 peter Exp $ # + # root cron jobs don't normally have /usr/local in the PATH; + # make sure it gets picked up by manpath + PATH=${PATH}:/usr/local/bin + if [ -x /usr/libexec/makewhatis.local -a -x /usr/bin/manpath ] ; then echo "" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message