]> code.ossystems Code Review - openembedded-core.git/commitdiff
postinst-intercepts/update_font_cache: fix ownership of fontconfig cache
authorJonathan Liu <net147@gmail.com>
Tue, 21 Apr 2015 10:53:02 +0000 (12:53 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 27 Apr 2015 14:02:25 +0000 (15:02 +0100)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/fontcache.bbclass
scripts/postinst-intercepts/update_font_cache

index dcd1f0406466c57b18a732f9eb6e0d5b1b34b16e..dfbdfa1e02fa5505492426e4a4faaa702b0e7ce2 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