Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 455968 - LiveCDs should run makewhatis before generating image
Summary: LiveCDs should run makewhatis before generating image
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: livecd-tools
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-07-19 14:01 UTC by Matt Domsch
Modified: 2008-07-21 18:51 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-07-21 18:51:48 UTC


Attachments (Terms of Use)

Description Matt Domsch 2008-07-19 14:01:37 UTC
Description of problem:
makewhatis is not run after installing all the rpms into a LiveCD image.  This
means 'man -k foo' always fails, even though there are tons of manpages
installed.  Either nuke all the manpages, or add a call to makewhatis somewhere
(maybe kickstart %post, maybe in livecd-creator somewhere).

Comment 1 Matt Domsch 2008-07-19 14:15:25 UTC
fwiw, running time makewhatis from the USB key itself takes about 40 seconds, so
it's not going to add a huge amount of time to the livecd-creator process to do so.

Comment 2 Jeremy Katz 2008-07-21 02:10:16 UTC
We don't want to nuke man pages (or documentation) because it's nice to have
both while using the live image and after installing.

While it's easy to add a makewhatis invocation to the config, I'm not 100%
convinced that we want to do it there and that it doesn't make sense to look at
ways of doing it at package install time.  Because that would also mean that
fresh installs would have working man -k before a cron job runs (if ever)

Comment 3 Ivana Varekova 2008-07-21 12:45:28 UTC
man-pages are ok - they can be displayed and so on, the only non working tool is
"appropos" command - so I think it is not good reason to remove all man-pages. 
whatis database generation seems to be too time consuming for me to add it to
package installation script. 
Potentially there could be add some test which calls 'man -k' and which returns
 information like "whatis database is empty - use makewhatis to generate it" if
whatis file does not exist.

Comment 4 Jeremy Katz 2008-07-21 18:51:48 UTC
The question is how we can better do things to avoid it being too time-consuming
as there's no real reason it should have to be.  But meh, added the cruft to the
livecd config to do it for now I guess.


Note You need to log in before you can comment on or make changes to this bug.