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-13 16:52:29 +0000 |
commit | b4c89bdae3778f2bf7596c1f3ca9fdaf7d480614 (patch) | |
tree | 7927d5a15f1d229b043e167478a8e7de3f07be5d /meta | |
parent | ceabaf626538ccdbd06ec4e8d87024216a064f52 (diff) | |
download | poky-b4c89bdae3778f2bf7596c1f3ca9fdaf7d480614.tar.gz |
fontcache.bbclass: use the postinst_intercept script
"Link" the package to the postinstall hook by running the
postinst_intercept script.
(From OE-Core rev: a14faa3b9c55574a096d517431393e4ac3c86823)
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-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 83817356c3..d3c1562f24 100644 --- a/meta/classes/fontcache.bbclass +++ b/meta/classes/fontcache.bbclass | |||
@@ -8,21 +8,15 @@ inherit qemu | |||
8 | 8 | ||
9 | FONT_PACKAGES ??= "${PN}" | 9 | FONT_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 | # | ||
11 | fontcache_common() { | 16 | fontcache_common() { |
12 | if [ "x$D" != "x" ] ; then | 17 | if [ "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 | |||
19 | if [ $? -ne 0 ]; then | ||
20 | exit 1 | ||
21 | fi | ||
22 | |||
23 | EOF | ||
24 | fi | ||
25 | exit 0 | ||
26 | fi | 20 | fi |
27 | 21 | ||
28 | fc-cache | 22 | fc-cache |