diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2019-01-23 17:17:36 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-01-26 13:39:37 +0000 |
commit | b8473eb82201d8646fb6aadadc18796856b6523f (patch) | |
tree | acae7f224c49350523240ba90369e377e25e21f0 | |
parent | 1979d9162a335b7d4718a6697ca57bfa16237f0e (diff) | |
download | poky-b8473eb82201d8646fb6aadadc18796856b6523f.tar.gz |
fontcache: fix postinst for nativesdk case
Both installing the binary into the correct place, and passing that place
to postinst_intercept were missing.
(From OE-Core rev: 9ac7415464b7817aa5cc0c2167ff61f4344660dd)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/fontcache.bbclass | 1 | ||||
-rw-r--r-- | meta/recipes-graphics/fontconfig/fontconfig_2.12.6.bb | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/meta/classes/fontcache.bbclass b/meta/classes/fontcache.bbclass index f71a754a4d..13f9df1592 100644 --- a/meta/classes/fontcache.bbclass +++ b/meta/classes/fontcache.bbclass | |||
@@ -20,6 +20,7 @@ if [ -n "$D" ] ; then | |||
20 | $INTERCEPT_DIR/postinst_intercept update_font_cache ${PKG} mlprefix=${MLPREFIX} binprefix=${MLPREFIX} \ | 20 | $INTERCEPT_DIR/postinst_intercept update_font_cache ${PKG} mlprefix=${MLPREFIX} binprefix=${MLPREFIX} \ |
21 | 'bindir="${bindir}"' \ | 21 | 'bindir="${bindir}"' \ |
22 | 'libdir="${libdir}"' \ | 22 | 'libdir="${libdir}"' \ |
23 | 'libexecdir="${libexecdir}"' \ | ||
23 | 'base_libdir="${base_libdir}"' \ | 24 | 'base_libdir="${base_libdir}"' \ |
24 | 'fontconfigcachedir="${FONTCONFIG_CACHE_DIR}"' \ | 25 | 'fontconfigcachedir="${FONTCONFIG_CACHE_DIR}"' \ |
25 | 'fontconfigcacheparams="${FONTCONFIG_CACHE_PARAMS}"' \ | 26 | 'fontconfigcacheparams="${FONTCONFIG_CACHE_PARAMS}"' \ |
diff --git a/meta/recipes-graphics/fontconfig/fontconfig_2.12.6.bb b/meta/recipes-graphics/fontconfig/fontconfig_2.12.6.bb index beeae7fb10..8fa739de24 100644 --- a/meta/recipes-graphics/fontconfig/fontconfig_2.12.6.bb +++ b/meta/recipes-graphics/fontconfig/fontconfig_2.12.6.bb | |||
@@ -42,6 +42,12 @@ do_install_append_class-target() { | |||
42 | ln ${D}${bindir}/fc-cache ${D}${libexecdir}/${MLPREFIX}fc-cache | 42 | ln ${D}${bindir}/fc-cache ${D}${libexecdir}/${MLPREFIX}fc-cache |
43 | } | 43 | } |
44 | 44 | ||
45 | do_install_append_class-nativesdk() { | ||
46 | # duplicate fc-cache for postinstall script | ||
47 | mkdir -p ${D}${libexecdir} | ||
48 | ln ${D}${bindir}/fc-cache ${D}${libexecdir}/${MLPREFIX}fc-cache | ||
49 | } | ||
50 | |||
45 | PACKAGES =+ "fontconfig-utils" | 51 | PACKAGES =+ "fontconfig-utils" |
46 | FILES_${PN} =+ "${datadir}/xml/*" | 52 | FILES_${PN} =+ "${datadir}/xml/*" |
47 | FILES_fontconfig-utils = "${bindir}/* ${libexecdir}/*" | 53 | FILES_fontconfig-utils = "${bindir}/* ${libexecdir}/*" |