First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 23848
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Tavis Ormandy (RETIRED) <taviso@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Owen Gunden <ogunden@phauna.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 23848 depends on: Show dependency tree
Bug 23848 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2003-07-01 20:25 0000
when running makewhatis from /etc/cron.daily/makewhatis.cron, it makes the
whatis database for /usr/share/man and then goes through /usr/man, and guess
what?  they're symlinked to the same directory!  

Reproducible: Always
Steps to Reproduce:
1. run /usr/sbin/makewhatis -v
2. examine the paths that go flying by
3.

Actual Results:  
the same directory was makewhatis'd twice.

Expected Results:  
only /usr/share/man should have gotten makewhatis'd.

a possible solution would be to use the -w option to makewhatis in
/etc/cron.daily/makewhatis.cron.

------- Comment #1 From Tavis Ormandy (RETIRED) 2003-09-05 16:11:06 0000 -------
Assigning to me...

------- Comment #2 From Tavis Ormandy (RETIRED) 2003-09-06 06:24:48 0000 -------
adding -w fixes it on the console, but the cron daemon wont have MANPATH set,
so will use the default path, which traverses the manpages twice...

the two obvious fixes are either removing one of the paths from the default
path, or getting MANPATH set.

an update to man is available, ive added a `source /etc/profile.env` line to
the makewhatis.cron and used -w.

Any testing appreciated :)

------- Comment #3 From Owen Gunden 2003-09-06 08:34:02 0000 -------
I tested the fix, that is I changed makewhatis.cron to be

source /etc/profile.env
/usr/sbin/makewhatis -w

but it doesn't work at all, because it can't find simple things like basename and sh :).  The problem is that /etc/profile.env doesn't put /bin and /usr/bin in the PATH, because its not designed to be sourced directly.  However, sourcing /etc/profile works great:

source /etc/profile
/usr/sbin/makewhatis -w

------- Comment #4 From Tavis Ormandy (RETIRED) 2003-09-06 10:05:43 0000 -------
Yup, your right, my mistake :)

i've decided to change it and remove the duplicate paths from makewhatis, we already apply a patch from Redhat that changes the default paths, so ive just amended that.

------- Comment #5 From Tavis Ormandy (RETIRED) 2003-10-31 11:03:10 0000 -------
This should be closed, Fixing status....

First Last Prev Next    No search results available      Search page      Enter new bug