summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/fontcache.bbclass20
1 files changed, 7 insertions, 13 deletions
diff --git a/meta/classes/fontcache.bbclass b/meta/classes/fontcache.bbclass
index 83817356c3..d3c1562f24 100644
--- a/meta/classes/fontcache.bbclass
+++ b/meta/classes/fontcache.bbclass
@@ -8,21 +8,15 @@ inherit qemu
8 8
9FONT_PACKAGES ??= "${PN}" 9FONT_PACKAGES ??= "${PN}"
10 10
11#
12# On host, the postinstall MUST return 1 because we do not know if the intercept
13# hook will succeed. If it does succeed, than the packages will be marked as
14# installed.
15#
11fontcache_common() { 16fontcache_common() {
12if [ "x$D" != "x" ] ; then 17if [ "x$D" != "x" ] ; then
13 if [ ! -f $INTERCEPT_DIR/update_font_cache ]; then 18 $INTERCEPT_DIR/postinst_intercept update_font_cache ${PKG} bindir=${bindir}
14 cat << "EOF" > $INTERCEPT_DIR/update_font_cache 19 exit 1
15#!/bin/sh
16
17${@qemu_run_binary(d, '$D', '/usr/bin/fc-cache')} --sysroot=$D >/dev/null 2>&1
18
19if [ $? -ne 0 ]; then
20 exit 1
21fi
22
23EOF
24 fi
25 exit 0
26fi 20fi
27 21
28fc-cache 22fc-cache