Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically maintain the whatis database #495

Merged
merged 1 commit into from
Jun 12, 2019
Merged

Conversation

citrus-it
Copy link
Member

@citrus-it citrus-it commented Jun 11, 2019

Fixes #494

Packages now get their man pages tagged with a restart_fmri action:

% pkg contents -mg packages/i386/nightly-nd/repo.redist fss | grep man
dir group=bin mode=0755 owner=root path=usr/share/man
dir facet.doc.man=true group=bin mode=0755 owner=root path=usr/share/man/man7
file feda492d099cc87d4674fbbb3e859ef2af35fb3d chash=4dcc635a03b98b051a1243be45771d2327910cf2 facet.doc.man=true group=bin mode=0444 owner=root path=usr/share/man/man7/FSS.7 pkg.content-hash=file:sha512t_256:4284e5c4e44a8b7692b147780a9c0c36c3a20569e8f8e33c23e39b01af380329 pkg.content-hash=gzip:sha512t_256:d4d943badc489cf3d1981f377027bff7ce16c0b227b311261cb0b2b346887f4a pkg.csize=3293 pkg.size=8128 restart_fmri=svc:/system/rebuild-whatis:default

Installing a new package which delivers a man page causes a database rebuild, and apropos works for the new page:

bloody% apropos pppd
bloody% tail -f `svcs -L rebuild-whatis` &
[1] 671
bloody% [ Jun 12 13:14:15 Enabled. ]
[ Jun 12 13:14:17 Executing start method ("/usr/bin/man -w"). ]
man: /usr/share/man/man3ssl/bio.3: No such file or directory
[ Jun 12 13:14:31 Method "start" exited with status 0. ]

bloody%
bloody% pfexec pkg install ppp
           Packages to install:  1
            Services to change:  1
       Create boot environment: No
Create backup boot environment: No

Planning linked: 0/1 done; 1 working: zone:test
Linked image 'zone:test' output:
|
`
Planning linked: 1/1 done
DOWNLOAD                                PKGS         FILES    XFER (MB)   SPEED
Completed                                1/1         25/25      0.3/0.3      --

Downloading linked: 0/1 done; 1 working: zone:test
Downloading linked: 1/1 done
PHASE                                          ITEMS
Installing new actions                         66/66
Updating package state database                 Done
Updating package cache                           0/0
Updating image state                            Done
[ Jun 12 13:15:00 Stopping because service restarting. ]
[ Jun 12 13:15:00 Executing stop method (null). ]
[ Jun 12 13:15:00 Executing start method ("/usr/bin/man -w"). ]
man: /usr/share/man/man3ssl/bio.3: No such file or directory
[ Jun 12 13:15:00 Method "start" exited with status 0. ]
Creating fast lookup database                   Done
Reading search index                            Done
Updating search index                            1/1
Executing linked: 0/1 done; 1 working: zone:test
Executing linked: 1/1 done

bloody% apropos pppd
pppd(1m)                 - point to point protocol daemon

@hadfl hadfl merged commit eff1dcd into omniosorg:master Jun 12, 2019
@citrus-it citrus-it deleted the catman branch June 17, 2019 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

whatis database not created automatically
3 participants