summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/manpages.bbclass7
1 files changed, 4 insertions, 3 deletions
diff --git a/meta/classes/manpages.bbclass b/meta/classes/manpages.bbclass
index 64b7d8c422..5e09c77fe6 100644
--- a/meta/classes/manpages.bbclass
+++ b/meta/classes/manpages.bbclass
@@ -12,13 +12,14 @@ MAN_PKG ?= "${PN}-doc"
12# only add man-db to RDEPENDS when manual files are built and installed 12# only add man-db to RDEPENDS when manual files are built and installed
13RDEPENDS:${MAN_PKG} += "${@bb.utils.contains('PACKAGECONFIG', 'manpages', 'man-db', '', d)}" 13RDEPENDS:${MAN_PKG} += "${@bb.utils.contains('PACKAGECONFIG', 'manpages', 'man-db', '', d)}"
14 14
15pkg_postinst:append:${MAN_PKG} () { 15pkg_postinst:${MAN_PKG}:append () {
16 # only update manual page index caches when manual files are built and installed 16 # only update manual page index caches when manual files are built and installed
17 if ${@bb.utils.contains('PACKAGECONFIG', 'manpages', 'true', 'false', d)}; then 17 if ${@bb.utils.contains('PACKAGECONFIG', 'manpages', 'true', 'false', d)}; then
18 if test -n "$D"; then 18 if test -n "$D"; then
19 if ${@bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', 'true','false', d)}; then 19 if ${@bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', 'true', 'false', d)}; then
20 sed "s:\(\s\)/:\1$D/:g" $D${sysconfdir}/man_db.conf | ${@qemu_run_binary(d, '$D', '${bindir}/mandb')} -C - -u -q $D${mandir} 20 sed "s:\(\s\)/:\1$D/:g" $D${sysconfdir}/man_db.conf | ${@qemu_run_binary(d, '$D', '${bindir}/mandb')} -C - -u -q $D${mandir}
21 chown -R root:root $D${mandir} 21 chown -R root:root $D${mandir}
22
22 mkdir -p $D${localstatedir}/cache/man 23 mkdir -p $D${localstatedir}/cache/man
23 cd $D${mandir} 24 cd $D${mandir}
24 find . -name index.db | while read index; do 25 find . -name index.db | while read index; do
@@ -36,7 +37,7 @@ pkg_postinst:append:${MAN_PKG} () {
36 fi 37 fi
37} 38}
38 39
39pkg_postrm:append:${MAN_PKG} () { 40pkg_postrm:${MAN_PKG}:append () {
40 # only update manual page index caches when manual files are built and installed 41 # only update manual page index caches when manual files are built and installed
41 if ${@bb.utils.contains('PACKAGECONFIG', 'manpages', 'true', 'false', d)}; then 42 if ${@bb.utils.contains('PACKAGECONFIG', 'manpages', 'true', 'false', d)}; then
42 mandb -q 43 mandb -q