* [PATCH 0/2] mandb: fix runtime problem and rootfs time problem
@ 2018-08-13 9:43 Chen Qi
2018-08-13 9:43 ` [PATCH 1/2] man-db: add volatile configuration file for sysvinit Chen Qi
2018-08-13 9:43 ` [PATCH 2/2] man-db: rdepend on base-passwd to ensure installation order Chen Qi
0 siblings, 2 replies; 3+ messages in thread
From: Chen Qi @ 2018-08-13 9:43 UTC (permalink / raw)
To: openembedded-core
The following changes since commit 028a292001f64ad86c6b960a05ba1f6fd72199de:
binutils: enable x86_64-pep for producing EFI binaries on x86-64 (2018-08-09 23:47:56 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib ChenQi/yocto12872
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/yocto12872
Chen Qi (2):
man-db: add volatile configuration file for sysvinit
man-db: rdepend on base-passwd to ensure installation order
meta/recipes-extended/man-db/files/99_mandb | 1 +
meta/recipes-extended/man-db/man-db_2.8.3.bb | 13 ++++++++++++-
2 files changed, 13 insertions(+), 1 deletion(-)
create mode 100644 meta/recipes-extended/man-db/files/99_mandb
--
1.9.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] man-db: add volatile configuration file for sysvinit
2018-08-13 9:43 [PATCH 0/2] mandb: fix runtime problem and rootfs time problem Chen Qi
@ 2018-08-13 9:43 ` Chen Qi
2018-08-13 9:43 ` [PATCH 2/2] man-db: rdepend on base-passwd to ensure installation order Chen Qi
1 sibling, 0 replies; 3+ messages in thread
From: Chen Qi @ 2018-08-13 9:43 UTC (permalink / raw)
To: openembedded-core
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]
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
meta/recipes-extended/man-db/files/99_mandb | 1 +
meta/recipes-extended/man-db/man-db_2.8.3.bb | 12 +++++++++++-
2 files changed, 12 insertions(+), 1 deletion(-)
create mode 100644 meta/recipes-extended/man-db/files/99_mandb
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 0000000..9b8a171
--- /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 a214bd7..e1a7ad9 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"
LIC_FILES_CHKSUM = "file://docs/COPYING.LIB;md5=a6f89e2100d9b6cdffcea4f398e37343 \
file://docs/COPYING;md5=eb723b61539feef013de476e68b5c50a"
-SRC_URI = "${SAVANNAH_NONGNU_MIRROR}/man-db/man-db-${PV}.tar.xz"
+SRC_URI = "${SAVANNAH_NONGNU_MIRROR}/man-db/man-db-${PV}.tar.xz \
+ file://99_mandb"
SRC_URI[md5sum] = "6f3055e18fdd1ce5cbbdb30403991ec7"
SRC_URI[sha256sum] = "5932a1ca366e1ec61a3ece1a3afa0e92f2fdc125b61d236f20cc6ff9d80cc4ac"
@@ -17,6 +18,15 @@ inherit gettext pkgconfig autotools
EXTRA_OECONF = "--with-pager=less"
+do_install() {
+ autotools_do_install
+
+ if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
+ install -d ${D}/etc/default/volatiles
+ install -m 0644 ${WORKDIR}/99_mandb ${D}/etc/default/volatiles
+ fi
+}
+
do_install_append_libc-musl() {
rm -f ${D}${libdir}/charset.alias
}
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* [PATCH 2/2] man-db: rdepend on base-passwd to ensure installation order
2018-08-13 9:43 [PATCH 0/2] mandb: fix runtime problem and rootfs time problem Chen Qi
2018-08-13 9:43 ` [PATCH 1/2] man-db: add volatile configuration file for sysvinit Chen Qi
@ 2018-08-13 9:43 ` Chen Qi
1 sibling, 0 replies; 3+ messages in thread
From: Chen Qi @ 2018-08-13 9:43 UTC (permalink / raw)
To: openembedded-core
Make man-db rdepend on base-passwd to ensure that base-passwd is
installed before man-db at rootfs time. This is to avoid the following
warning at rootfs time.
warning: user man does not exist - using root
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
meta/recipes-extended/man-db/man-db_2.8.3.bb | 1 +
1 file changed, 1 insertion(+)
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 e1a7ad9..97e5a3d 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
@@ -10,6 +10,7 @@ SRC_URI[md5sum] = "6f3055e18fdd1ce5cbbdb30403991ec7"
SRC_URI[sha256sum] = "5932a1ca366e1ec61a3ece1a3afa0e92f2fdc125b61d236f20cc6ff9d80cc4ac"
DEPENDS = "libpipeline gdbm groff-native base-passwd"
+RDEPENDS_${PN} += "base-passwd"
# | /usr/src/debug/man-db/2.8.0-r0/man-db-2.8.0/src/whatis.c:939: undefined reference to `_nl_msg_cat_cntr'
USE_NLS_libc-musl = "no"
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-08-13 9:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-13 9:43 [PATCH 0/2] mandb: fix runtime problem and rootfs time problem Chen Qi
2018-08-13 9:43 ` [PATCH 1/2] man-db: add volatile configuration file for sysvinit Chen Qi
2018-08-13 9:43 ` [PATCH 2/2] man-db: rdepend on base-passwd to ensure installation order Chen Qi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.