diff options
author | Laurentiu Palcu <laurentiu.palcu@intel.com> | 2013-02-12 18:12:40 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-02-12 16:35:14 +0000 |
commit | a14faa3b9c55574a096d517431393e4ac3c86823 (patch) | |
tree | 33aabd508c9a6e4832af80575bdffee18c4cb4f1 /meta/classes/fontcache.bbclass | |
parent | d7ddae84165b5b84dc6ac640fd492ade891ddd4e (diff) | |
download | openembedded-core-contrib-a14faa3b9c55574a096d517431393e4ac3c86823.tar.gz |
fontcache.bbclass: use the postinst_intercept script
"Link" the package to the postinstall hook by running the
postinst_intercept script.
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/fontcache.bbclass')
-rw-r--r-- | meta/classes/fontcache.bbclass | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/meta/classes/fontcache.bbclass b/meta/classes/fontcache.bbclass index 83817356c3d..d3c1562f243 100644 --- a/meta/classes/fontcache.bbclass +++ b/meta/classes/fontcache.bbclass @@ -8,21 +8,15 @@ inherit qemu FONT_PACKAGES ??= "${PN}" +# +# On host, the postinstall MUST return 1 because we do not know if the intercept +# hook will succeed. If it does succeed, than the packages will be marked as +# installed. +# fontcache_common() { if [ "x$D" != "x" ] ; then - if [ ! -f $INTERCEPT_DIR/update_font_cache ]; then - cat << "EOF" > $INTERCEPT_DIR/update_font_cache -#!/bin/sh - -${@qemu_run_binary(d, '$D', '/usr/bin/fc-cache')} --sysroot=$D >/dev/null 2>&1 - -if [ $? -ne 0 ]; then - exit 1 -fi - -EOF - fi - exit 0 + $INTERCEPT_DIR/postinst_intercept update_font_cache ${PKG} bindir=${bindir} + exit 1 fi fc-cache |