From: Kai Kang <kai.kang@windriver.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH] man-db: create man db index file
Date: Mon, 4 Jun 2018 03:58:28 -0700 [thread overview]
Message-ID: <20180604105828.24004-1-kai.kang@windriver.com> (raw)
The man db index file doesn't exist, it causes commands whatis, apropos
and 'man -f' don't work as expect:
| root@qemux86-64:# whatis hosts
| hosts: nothing appropriate.
Run command mandb to create man db index file when first boot.
Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
meta/recipes-extended/man-db/man-db_2.8.2.bb | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/meta/recipes-extended/man-db/man-db_2.8.2.bb b/meta/recipes-extended/man-db/man-db_2.8.2.bb
index 797f770408d..f47d66ce3df 100644
--- a/meta/recipes-extended/man-db/man-db_2.8.2.bb
+++ b/meta/recipes-extended/man-db/man-db_2.8.2.bb
@@ -21,6 +21,10 @@ do_install_append_libc-musl() {
rm -f ${D}${libdir}/charset.alias
}
+pkg_postinst_ontarget_${PN} () {
+ ${bindir}/mandb -q
+}
+
FILES_${PN} += "${prefix}/lib/tmpfiles.d"
FILES_${PN}-dev += "${libdir}/man-db/libman.so ${libdir}/${BPN}/libmandb.so"
--
2.11.0
next reply other threads:[~2018-06-04 10:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-04 10:58 Kai Kang [this message]
2018-06-04 11:42 ` [PATCH] man-db: create man db index file Alexander Kanavin
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=20180604105828.24004-1-kai.kang@windriver.com \
--to=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