mandb-ondemand: free up your terminal on mandb rebuilds

Make a PKGBUILD? Submit it here for user review and possible placement into the repository.

mandb-ondemand: free up your terminal on mandb rebuilds

Postby graysky » Sat Jul 23, 2016 6:17 pm

Purpose
With the deployment of pacman hooks, maintenance of the manpage index database (/var/cache/man/index.db) has been integrated into pacman operations. Anytime a package writes or removes a file to/from /usr/share/man, a hook triggers a rebuild which can be slow. Really slow. This is particularly noticeable on low powered devices such as Arch ARM PCs. These delays can be annoying as the terminal (more likely the ssh window) remains locked while the rebuild is in progress.

This software simply flags the index database for a rebuild via a pacman hook that triggers a systemd unit to the dirty work leaving your shell window free of the dreaded pause!

Solution
This software simply flags the index database for a rebuild or a rebuild/purge via a pacman hook that triggers a systemd unit to the dirty work leaving your shell window free of the dreaded pause!

Without mandb-ondemand:
$this->bbcode_second_pass_code('', '...
:: Running post-transaction hooks...
(1/1) Updating manpage index...
<<<WAIT>>> <<<WAIT>>> <<<WAIT>>>
...
$
')

With mandb-ondemand:
$this->bbcode_second_pass_code('', '
...
:: Running post-transaction hooks...
(1/1) Asking for an update to mandb's database...
$
')

Links
AUR package: https://aur.archlinux.org/packages/mandb-ondemand
Upsteam code: https://github.com/graysky2/mandb-ondemand
graysky
Developer
 
Posts: 1728
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Return to User-Submitted Packages

Who is online

Users browsing this forum: No registered users and 2 guests