xbps-triggers: add texmf-dist regeneration trigger

This commit is contained in:
fosslinux 2020-07-05 11:39:30 +10:00 committed by Daniel Kolesa
parent 92fd1c57cc
commit 102841754a
5 changed files with 82 additions and 42 deletions

View file

@ -64,6 +64,7 @@ packages for XBPS, the `Void Linux` native packaging system.
* [pycompile](#triggers_pycompile)
* [register-shell](#triggers_register_shell)
* [system-accounts](#triggers_system_accounts)
* [texmf-dist](#triggers_texmf_dist)
* [update-desktopdb](#triggers_update_desktopdb)
* [x11-fonts](#triggers_x11_fonts)
* [xml-catalog](#triggers_xml_catalog)
@ -1907,6 +1908,20 @@ Example: `transmission unprivileged user - for uninstalled package transmission`
This trigger can only be used by using the `system_accounts` variable.
<a id="triggers_texmf_dist"></a>
#### texmf-dist
The texmf-dist trigger is responsible for regenerating TeXLive's texmf databases.
During both installation and removal, it regenerates both the texhash and format
databases using `texhash` and `fmtutil-sys`, to add or remove any new hashes or
formats.
It runs on every package that changes /usr/share/texmf-dist. This is likely overkill,
but it is much cleaner rather than checking each format directory and each directory
that is hashed. In addition, it is very likely any package touching /usr/share/texmf-dist
requires one of these triggers anyway.
<a id="triggers_update_desktopdb"></a>
#### update-desktopdb