]> code.ossystems Code Review - openembedded-core.git/commitdiff
postinst-intercepts/update_font_cache: fix ownership of fontconfig cache
authorJonathan Liu <net147@gmail.com>
Mon, 9 Mar 2015 02:28:37 +0000 (13:28 +1100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 16 Mar 2015 17:38:33 +0000 (17:38 +0000)
The file ownership of the cache files in /var/cache/fontconfig needs to
be set to root:root otherwise it inherits the user and group id of the
build user.

[YOCTO #7411]

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/fontcache.bbclass
scripts/postinst-intercepts/update_font_cache

index 2bf1e4bd1bab5510d79718196fb377892aa26e08..ad5892cda186ad10ac0cedf533e0187416a76caf 100644 (file)
@@ -12,7 +12,7 @@ FONT_EXTRA_RDEPENDS ?= "fontconfig-utils"
 fontcache_common() {
 if [ "x$D" != "x" ] ; then
        $INTERCEPT_DIR/postinst_intercept update_font_cache ${PKG} mlprefix=${MLPREFIX} bindir=${bindir} \
-               libdir=${libdir} base_libdir=${base_libdir}
+               libdir=${libdir} base_libdir=${base_libdir} localstatedir=${localstatedir}
 else
        fc-cache
 fi
index 78f33651e9e15930c9d27b80e569bac9776e9785..3907f25f19b23297ca8f03012771cb155fe12aa5 100644 (file)
@@ -2,5 +2,6 @@
 
 PSEUDO_UNLOAD=1 qemuwrapper -L $D -E LD_LIBRARY_PATH=$D/${libdir}:$D/${base_libdir}\
                                        $D${bindir}/fc-cache --sysroot=$D
+chown -R root:root $D${localstatedir}/cache/fontconfig