mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
manpages.bbclass: Fix rootfs host corruption
When running mandb we end up with files owned by the build user, correct this. Also pick up non-default locales and relocate their index.db files to /var/cache. (From OE-Core rev: 844781c5b260a52e8c06b872c74a13a22689bdb9) Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
465efec576
commit
c6b06adb7f
|
@ -18,8 +18,15 @@ pkg_postinst_append_${MAN_PKG} () {
|
|||
if test -n "$D"; then
|
||||
if ${@bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', 'true','false', d)}; then
|
||||
sed "s:\(\s\)/:\1$D/:g" $D${sysconfdir}/man_db.conf | ${@qemu_run_binary(d, '$D', '${bindir}/mandb')} -C - -u -q $D${mandir}
|
||||
chown -R root:root $D${mandir}
|
||||
mkdir -p $D${localstatedir}/cache/man
|
||||
mv $D${mandir}/index.db $D${localstatedir}/cache/man
|
||||
cd $D${mandir}
|
||||
find . -name index.db | while read index; do
|
||||
mkdir -p $D${localstatedir}/cache/man/$(dirname ${index})
|
||||
mv ${index} $D${localstatedir}/cache/man/${index}
|
||||
chown man:man $D${localstatedir}/cache/man/${index}
|
||||
done
|
||||
cd -
|
||||
else
|
||||
$INTERCEPT_DIR/postinst_intercept delay_to_first_boot ${PKG} mlprefix=${MLPREFIX}
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue
Block a user