diff options
author | Jonathan Liu <net147@gmail.com> | 2015-04-21 12:53:02 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-04-27 15:02:25 +0100 |
commit | 0ecccc7e75f2833c4f2599ce46b6fb9a0bc06e22 (patch) | |
tree | 2fac4a999b194a34c6d9bee270e4b84b3a1ad7f4 | |
parent | 88dfdf7f87f5ea9f5b6200896fc7e7f5374929df (diff) | |
download | openembedded-core-0ecccc7e75f2833c4f2599ce46b6fb9a0bc06e22.tar.gz openembedded-core-0ecccc7e75f2833c4f2599ce46b6fb9a0bc06e22.tar.bz2 openembedded-core-0ecccc7e75f2833c4f2599ce46b6fb9a0bc06e22.zip |
postinst-intercepts/update_font_cache: fix ownership of fontconfig cache
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>
-rw-r--r-- | meta/classes/fontcache.bbclass | 2 | ||||
-rw-r--r-- | scripts/postinst-intercepts/update_font_cache | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/fontcache.bbclass b/meta/classes/fontcache.bbclass index dcd1f04064..dfbdfa1e02 100644 --- a/meta/classes/fontcache.bbclass +++ b/meta/classes/fontcache.bbclass @@ -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 diff --git a/scripts/postinst-intercepts/update_font_cache b/scripts/postinst-intercepts/update_font_cache index 78f33651e9..3907f25f19 100644 --- a/scripts/postinst-intercepts/update_font_cache +++ b/scripts/postinst-intercepts/update_font_cache @@ -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 |