Project

General

Profile

Bug #11683

Automatically maintain whatis database

Added by Andy Fiddaman about 1 month ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
manpage - manual pages
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:

Description

When man pages are installed or removed during a package operation, it would be good if the man page index (whatis database) was automatically refreshed.

History

#1

Updated by Andy Fiddaman about 1 month ago

Review at: https://www.illumos.org/rb/r/2270/

This is based on a change that has been in OmniOS for a while.

I tested it by installing packages which contain man pages and ensuring that the whatis database was rebuilt automatically, for example:

bloody% apropos zyd
bloody% pfexec pkg install zyd
           Packages to install:  1
            Services to change:  1
bloody% apropos zyd
zyd(7d)                  - ZyDAS ZD1211/ZD1211B USB 802.11b/g Wireless Driver

bloody% tail `svcs -L update-man-index`
[ Sep 18 08:19:17 Method "start" exited with status 0. ]
[ Sep 18 08:20:23 Stopping because service restarting. ]
[ Sep 18 08:20:23 Executing stop method (null). ]
[ Sep 18 08:20:23 Executing start method ("/lib/svc/method/update-man-index /usr/share/man:/usr/has/man"). ]
Rebuilding man page index using /opt/ooce/share/man:/usr/gnu/share/man:/usr/has/man:/usr/man:/usr/share/man
[ Sep 18 08:20:23 Method "start" exited with status 0. ]
...

#2

Updated by Electric Monk about 1 month ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100

git commit 2b77347cd95dc12475fe2af8a715097166d0523a

commit  2b77347cd95dc12475fe2af8a715097166d0523a
Author: Andy Fiddaman <omnios@citrus-it.co.uk>
Date:   2019-09-20T07:10:46.000Z

    11683 Automatically maintain whatis database
    Reviewed by: Rich Lowe <richlowe@richlowe.net>
    Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF