]> code.ossystems Code Review - openembedded-core.git/commitdiff
fontcache: fix postinst for nativesdk case
authorAlexander Kanavin <alex.kanavin@gmail.com>
Wed, 23 Jan 2019 16:17:36 +0000 (17:17 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 24 Jan 2019 17:45:28 +0000 (17:45 +0000)
Both installing the binary into the correct place, and passing that place
to postinst_intercept were missing.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/fontcache.bbclass
meta/recipes-graphics/fontconfig/fontconfig_2.12.6.bb

index f71a754a4dd4b47d88a41f4a8d84b9e03873f987..13f9df1592ffe0f2de9f908fc9af83d944e88cc0 100644 (file)
@@ -20,6 +20,7 @@ if [ -n "$D" ] ; then
        $INTERCEPT_DIR/postinst_intercept update_font_cache ${PKG} mlprefix=${MLPREFIX} binprefix=${MLPREFIX} \
                'bindir="${bindir}"' \
                'libdir="${libdir}"' \
+                'libexecdir="${libexecdir}"' \
                'base_libdir="${base_libdir}"' \
                'fontconfigcachedir="${FONTCONFIG_CACHE_DIR}"' \
                'fontconfigcacheparams="${FONTCONFIG_CACHE_PARAMS}"' \
index beeae7fb108a4d8670e2a3fe56030a7ddce68680..8fa739de24924f580360fe25697186f84256b6b3 100644 (file)
@@ -42,6 +42,12 @@ do_install_append_class-target() {
     ln ${D}${bindir}/fc-cache ${D}${libexecdir}/${MLPREFIX}fc-cache
 }
 
+do_install_append_class-nativesdk() {
+    # duplicate fc-cache for postinstall script
+    mkdir -p ${D}${libexecdir}
+    ln ${D}${bindir}/fc-cache ${D}${libexecdir}/${MLPREFIX}fc-cache
+}
+
 PACKAGES =+ "fontconfig-utils"
 FILES_${PN} =+ "${datadir}/xml/*"
 FILES_fontconfig-utils = "${bindir}/* ${libexecdir}/*"