summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2018-08-13 17:43:22 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-08-14 11:36:31 +0100
commit2da3314fa5f8627333cc2f0646a0fa3162a01e01 (patch)
tree24fde01ad85f42a090110278ee36ab24c6ba9016 /meta/recipes-extended
parent4bd37c66f24e8d2b344307cde23050d7854a3094 (diff)
downloadpoky-2da3314fa5f8627333cc2f0646a0fa3162a01e01.tar.gz
man-db: add volatile configuration file for sysvinit
Add volatile configuraiton file for man-db so that in sysvinit systems we don't get failure when running `mandb'. The error message is like below. mandb: can't create index cache /var/cache/man/579: No such file or directory [YOCTO #12872] (From OE-Core rev: 2c480b363ae80dcc55ec0228f8af0311e023fbf4) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r--meta/recipes-extended/man-db/files/99_mandb1
-rw-r--r--meta/recipes-extended/man-db/man-db_2.8.3.bb12
2 files changed, 12 insertions, 1 deletions
diff --git a/meta/recipes-extended/man-db/files/99_mandb b/meta/recipes-extended/man-db/files/99_mandb
new file mode 100644
index 0000000000..9b8a1712b7
--- /dev/null
+++ b/meta/recipes-extended/man-db/files/99_mandb
@@ -0,0 +1 @@
d man man 0755 /var/cache/man none
diff --git a/meta/recipes-extended/man-db/man-db_2.8.3.bb b/meta/recipes-extended/man-db/man-db_2.8.3.bb
index a214bd7dd1..e1a7ad9d1e 100644
--- a/meta/recipes-extended/man-db/man-db_2.8.3.bb
+++ b/meta/recipes-extended/man-db/man-db_2.8.3.bb
@@ -4,7 +4,8 @@ LICENSE = "LGPLv2.1 & GPLv2"
4LIC_FILES_CHKSUM = "file://docs/COPYING.LIB;md5=a6f89e2100d9b6cdffcea4f398e37343 \ 4LIC_FILES_CHKSUM = "file://docs/COPYING.LIB;md5=a6f89e2100d9b6cdffcea4f398e37343 \
5 file://docs/COPYING;md5=eb723b61539feef013de476e68b5c50a" 5 file://docs/COPYING;md5=eb723b61539feef013de476e68b5c50a"
6 6
7SRC_URI = "${SAVANNAH_NONGNU_MIRROR}/man-db/man-db-${PV}.tar.xz" 7SRC_URI = "${SAVANNAH_NONGNU_MIRROR}/man-db/man-db-${PV}.tar.xz \
8 file://99_mandb"
8SRC_URI[md5sum] = "6f3055e18fdd1ce5cbbdb30403991ec7" 9SRC_URI[md5sum] = "6f3055e18fdd1ce5cbbdb30403991ec7"
9SRC_URI[sha256sum] = "5932a1ca366e1ec61a3ece1a3afa0e92f2fdc125b61d236f20cc6ff9d80cc4ac" 10SRC_URI[sha256sum] = "5932a1ca366e1ec61a3ece1a3afa0e92f2fdc125b61d236f20cc6ff9d80cc4ac"
10 11
@@ -17,6 +18,15 @@ inherit gettext pkgconfig autotools
17 18
18EXTRA_OECONF = "--with-pager=less" 19EXTRA_OECONF = "--with-pager=less"
19 20
21do_install() {
22 autotools_do_install
23
24 if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
25 install -d ${D}/etc/default/volatiles
26 install -m 0644 ${WORKDIR}/99_mandb ${D}/etc/default/volatiles
27 fi
28}
29
20do_install_append_libc-musl() { 30do_install_append_libc-musl() {
21 rm -f ${D}${libdir}/charset.alias 31 rm -f ${D}${libdir}/charset.alias
22} 32}