aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2016-10-24 05:47:38 -0400
committerHongxu Jia <hongxu.jia@windriver.com>2016-10-25 22:21:31 -0400
commitf1a7d03a68bf628db677027d48281c55f2b8dfba (patch)
treec8bcad701f374525634e47f7fe0a4ce9948c2fad
parentef627ab364d52fe19994c94c1a78fbe21620a32c (diff)
downloadopenembedded-core-contrib-hongxu/fix-font.tar.gz
openembedded-core-contrib-hongxu/fix-font.tar.bz2
openembedded-core-contrib-hongxu/fix-font.zip
fontcache: fix fonts postinst failedhongxu/fix-font
While instal liberation-fonts to image, the fonts postinst failed at do_rootfs time: ----------------------------------------------- |WARNING: core-image-minimal-1.0-r0 do_rootfs: The postinstall intercept hook 'update_font_cache' failed (exit code: 139)! See log for details! |WARNING: core-image-minimal-1.0-r0 do_rootfs: The postinstalls for the following packages will be postponed for first boot: liberation-fonts ----------------------------------------------- Since the following commit applied in oe-core ----------------------------------------------- commit ce1e7fcc60276040477c1d5e3129e029bb9f204b Author: Richard Purdie <richard.purdie@linuxfoundation.org> Date: Fri Sep 30 17:43:23 2016 +0100 allarch: Fixes to stop rebuilds when change multilibs ----------------------------------------------- It assignes base_libdir="/none" which caused fonts postinst failed at do_rootfs. The fonts postinst invoke qemu to update font cache which requires base_libdir arch relative(such as base_libdir="/lib64"). We refer what meta/conf/multilib.conf does, assign it with arch relative. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
-rw-r--r--meta/classes/fontcache.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/fontcache.bbclass b/meta/classes/fontcache.bbclass
index 8ebdfc4f5c..ce22170e25 100644
--- a/meta/classes/fontcache.bbclass
+++ b/meta/classes/fontcache.bbclass
@@ -38,6 +38,10 @@ python () {
}
python add_fontcache_postinsts() {
+ baselib = d.getVar('BASE_LIB_tune-' + (d.getVar('DEFAULTTUNE', True) or 'INVALID'), True) or \
+ d.getVar('BASELIB', True)
+ d.setVar("baselib", baselib)
+
for pkg in d.getVar('FONT_PACKAGES', True).split():
bb.note("adding fonts postinst and postrm scripts to %s" % pkg)
postinst = d.getVar('pkg_postinst_%s' % pkg, True) or d.getVar('pkg_postinst', True)