[OE-core] [PATCH] man-db: create man db index file

Alexander Kanavin alexander.kanavin at linux.intel.com
Mon Jun 4 11:42:59 UTC 2018


On 06/04/2018 01:58 PM, Kai Kang wrote:

> +pkg_postinst_ontarget_${PN} () {
> +        ${bindir}/mandb -q
> +}
> +

man-db is only the tools for manpages, but not the actual pages. So this 
will not work as expected when installing or removing packages that 
contain manpages. It should be added to classes/manpages.bbclass 
instead, with a RDEPENDS += "man-db". You can also fix man-pages_4.14.bb 
to inherit the class at the same time.

Oh, and you can also take qemu into use, so that this works also for 
read only rootfs, and doesn't add to first boot time, like this:
https://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=akanavin/package-version-updates&id=b42a7a733c7a6b51118ccb3fe6e33c35ac12b4ae

Alex



More information about the Openembedded-core mailing list