poky/scripts/postinst-intercepts
Ross Burton d42904ba0c manpages: use an intercept to run mandb
If you build an image with lots of manpages in, then each package will
run mandb inside qemu-user at rootfs time.  This is a slow operation
and should be done once when all of the packages have installed using an
intercept instead.

The call to mandb has been changed too. mandb doesn't actually allow
the configuration file to be read from stdin so that was being ignored,
instead write the file to a temporary file and use that.

This means we then don't need to tell it where to search explicitly, and
it writes the indexes to the correct paths so we don't need to move
files afterwards either.

Sadly we do still need to run mandb inside qemu-user, as the underlying
database is a gdbm file and they are byte-order dependent.

For my test case of core-image-base with api-documentation
DISTRO_FEATURES and doc-pkgs IMAGE_FEATURES enabled, the performance
gain is significant:

  core-image-base do_rootfs  -1303.1s   -73.6%   1771.6s -> 468.5s

(From OE-Core rev: fbd8a57aa307bfda70a08cb78af3c97f05c39a3a)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-08 10:21:05 +00:00
..
delay_to_first_boot meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
postinst_intercept meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
update_desktop_database mime-xdg.bbclass: initial add 2020-01-19 13:24:38 +00:00
update_font_cache base/bitbake.conf: Enable pseudo path filtering 2020-10-07 11:18:38 +01:00
update_gio_module_cache meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
update_gtk_icon_cache gtk-icon-cache: rename intercept to update_gtk_icon_cache 2019-06-27 12:20:36 +01:00
update_gtk_immodules_cache meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
update_mandb manpages: use an intercept to run mandb 2023-03-08 10:21:05 +00:00
update_mime_database mime.bbclass: rework 2020-01-19 13:24:38 +00:00
update_pixbuf_cache meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
update_udev_hwdb update_udev_hwdb: fix multilib issue with systemd 2022-04-19 14:14:12 +01:00