diff options
author | Ross Burton <ross.burton@intel.com> | 2016-01-08 20:44:15 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-11 23:23:18 +0000 |
commit | 541315d6c56df6448f64c262f99d43d5c1e9400b (patch) | |
tree | ed191cb6b8542fd8b77b080f16857f9074753f6b /scripts/postinst-intercepts/update_font_cache | |
parent | 065ebeb3e15311d0d45385e15bf557b1c95b1669 (diff) | |
download | openembedded-core-541315d6c56df6448f64c262f99d43d5c1e9400b.tar.gz openembedded-core-541315d6c56df6448f64c262f99d43d5c1e9400b.tar.bz2 openembedded-core-541315d6c56df6448f64c262f99d43d5c1e9400b.zip |
update_font_cache: only scan system font directories
By default fc-cache will scan both system and user directories, which means it
attempts to scan $HOME/.fonts. As this is the build host's idea of $HOME this
generally doesn't exist, and causes fc-cache to exit with a failure.
Solve this by passing --system-only so that fc-cache will only scan system
directories, as is appropriate for a rootfs-time invocation.
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/postinst-intercepts/update_font_cache')
-rw-r--r-- | scripts/postinst-intercepts/update_font_cache | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/postinst-intercepts/update_font_cache b/scripts/postinst-intercepts/update_font_cache index 0deab3c115..2e6daedeb5 100644 --- a/scripts/postinst-intercepts/update_font_cache +++ b/scripts/postinst-intercepts/update_font_cache @@ -1,5 +1,5 @@ #!/bin/sh PSEUDO_UNLOAD=1 qemuwrapper -L $D -E LD_LIBRARY_PATH=$D/${libdir}:$D/${base_libdir} \ - -E ${fontconfigcacheenv} $D${bindir}/fc-cache --sysroot=$D ${fontconfigcacheparams} + -E ${fontconfigcacheenv} $D${bindir}/fc-cache --sysroot=$D --system-only ${fontconfigcacheparams} chown -R root:root $D${fontconfigcachedir} |