[Slackbuilds-users] RFC: Proposed mandb additions to doinst/douninst template
KB_SBo
sbo at linuxgalaxy.org
Wed Sep 11 02:15:28 UTC 2024
On 8/23/24 23:32, B. Watson wrote:
> Thinking of adding this to the doinst template:
>
> ### in doinst.sh:
> # DESCRIPTION: Updates the man database (for "man -k").
> # Use one "man -f" command for each man page in the package.
> if [ -x usr/bin/mandb ]; then
> usr/bin/mandb -f usr/man/man1/program.1.gz
> fi
After lurking around this idea a bit, I'm still having trouble
understanding why this is needed. Speed? Convenience? Purity of Spirit?
Adding mandb to doinst seems to add extra complexity without any
significant gain. After all, we don't run
# updatedb
on package installation since updates eventually occur in a system cron.
Also, I've never experienced any issues accessing a manpage immediately
after package installation, i.e., no updates to mandb.
(Or maybe after given up on 32-bit and 20th century hardware I don't
notice any "lag".)
-Ed
More information about the SlackBuilds-users
mailing list