Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Apr 2000 09:31:29 -0400 (EDT)
From:      lowell@world.std.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   misc/18255: whatis(1) doesn't know about /usr/local
Message-ID:  <200004271331.JAA39410@be-well.ilk.org>

next in thread | raw e-mail | index | archive | help
>Number:         18255
>Category:       misc
>Synopsis:       makewhatis weekly job doesn't look at /usr/local
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 27 06:40:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Lowell Gilbert
>Release:        FreeBSD 3.4-STABLE i386
>Organization:
n/a
>Environment:

3.4-STABLE, but this probably applies to all versions.

>Description:

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.

>How-To-Repeat:

As "McClain, Michael" posted to freebsd-questions:
> In FreeBSD 3.4, is makewhatis broken?
> 'man bash' shows the man page, .apropos bash' says nothing appropriate.

Obviously, this will apply to any installed ports or packages.

>Fix:

This isn't very pretty, but cron jobs shouldn't by default be running
anything from /usr/local, so it shouldn't otherwise be in the path.
Better fixes would be fine with me...

	
*** /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 ""

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200004271331.JAA39410>