Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Alexander Kanavin <alexander.kanavin@linux.intel.com>
To: Kai Kang <kai.kang@windriver.com>,
	openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] man-db: create man db index file
Date: Mon, 4 Jun 2018 14:42:59 +0300	[thread overview]
Message-ID: <3518da0e-6a89-1288-d6ab-89a8537467f1@linux.intel.com> (raw)
In-Reply-To: <20180604105828.24004-1-kai.kang@windriver.com>

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


  reply	other threads:[~2018-06-04 11:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-04 10:58 [PATCH] man-db: create man db index file Kai Kang
2018-06-04 11:42 ` Alexander Kanavin [this message]
2018-06-05  2:27   ` Kang Kai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3518da0e-6a89-1288-d6ab-89a8537467f1@linux.intel.com \
    --to=alexander.kanavin@linux.intel.com \
    --cc=kai.kang@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox