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

Kang Kai Kai.Kang at windriver.com
Tue Jun 5 02:27:36 UTC 2018


On 2018年06月04日 19:42, Alexander Kanavin wrote:
> 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
>
Hi Alex,

Thanks a lot. I'll try it.

-- 
Regards,
Neil | Kai Kang




More information about the Openembedded-core mailing list