Bug 48330
Summary: | after upgrading man package, whatis no longer works | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Henning Schmiedehausen <hps> | ||||||
Component: | man | Assignee: | Eido Inoue <havill> | ||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Ben Levenson <benl> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 6.2 | CC: | aewell, marc.schmitt | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | i386 | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2004-08-23 20:33:07 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Henning Schmiedehausen
2001-07-10 09:37:31 UTC
Can't reproduce this. Does it work if you remove and reinstall the package? Does it work if you rm -rf /var/cache/man? % rpm -qa | grep man-1.5 man-1.5i2-0.6x % ls -la /usr/X11R6/man/man1/xauth.1x.gz -r--r--r-- 1 root root 4057 Apr 16 14:15 /usr/X11R6/man/man1/xauth.1x.gz % /usr/sbin/makewhatis -u -w % whatis xauth xauth: nothing appropriate rm'ing /var/cache/man doesn't help much, because: % rpm -qf /usr/bin/man man-1.5i2-0.6x % rpm -ql man | grep var /var/catman you're back on /var/catman, didn't you know? I meant rm -rf /var/catman, of course. # whatis xauth xauth: nothing appropriate # cd /var/catman ; rm -rf * # ls -la /var/catman total 8 drwxr-xr-x 2 root root 4096 Jul 11 15:14 . drwxr-xr-x 22 root root 4096 Jul 9 15:54 .. # /etc/cron.daily/makewhatis.cron # whatis xauth xauth: nothing appropriate No change. BTW: Another cool feature: % rpm -qa | grep man-1.5 man-1.5i2-0.6x % makewhatis -V makewhatis from man-1.5i1 The problem gets solved if you simply delete all whatis files from all man directories. After this, makewhatis -u -w collects all man pages and puts them into /usr/man/whatis. If you really want to move all of the whatis stuff into a single directory, why not use /var/catman? After you mangled the makewhatis to use just a single whatis file, why not also mangle the whatis program to actually only read this single file? I attached you a patch that fixes whatis and makewhatis against the man-1.5i2 source. If I apply this patch, rebuild the RPM, I get working whatis and makewhatis. It also moves the single whatis file into /var/catman You may also want to add a %post script to the RPM which deletes the whatis file after an upgrade to rebuild the whatis database. Created attachment 23307 [details]
The patch mentioned above
Created attachment 23308 [details]
Sorry, this is the right patch.
Hi All, I do believe I stumbled across the same problem. After upgrading from 7.2 (fresh install) to 7.3 (upgrade install), "apropos" kept giving me "nothing appropriate". ("apropos" uses "whatis".) A posting to comp.os.linux.redhat only got one response from a 7.3 fresh install that said he had no problem. So that means that the problem is with the upgrade. Or, what is left on the disk before the upgrade. So, I removed man (rpm -e man) and reinstalled it (rpm -ivh) from disk one. No change in symptom. Them I download the rawhide version of man and ran the upgraded (rpm -Uvh man-1.5j-9.i386.rpm). Also, no symptom change. Then I tried an "info" on "whatis" and got told to run the following to rebuild the database: /usr/sbin/makewhatis And, this cured it. So, my humble suggestion to the developer is to stick "makewhatis" in the rpm install script for "man". This would completely cure the problem. Many thanks, --Tony aewell |