Set XDG_CONFIG_HOME explicitly at %post to avoid creating directories

at non-root HOME with root. (#1003495)
This commit is contained in:
Akira TAGOH 2013-09-02 18:36:46 +09:00
parent 8c50a45d2d
commit 027b96b574

View File

@ -3,7 +3,7 @@
Summary: Font configuration and customization library
Name: fontconfig
Version: 2.10.95
Release: 1%{?dist}
Release: 2%{?dist}
# src/ftglue.[ch] is in Public Domain
# src/fccache.c contains Public Domain code
# fc-case/CaseFolding.txt is in the UCD
@ -95,7 +95,7 @@ mkdir -p %{_localstatedir}/cache/fontconfig
# copy of fontconfig might install the binary instead of the first)
# The HOME setting is to avoid problems if HOME hasn't been reset
if [ -x /usr/bin/fc-cache ] && /usr/bin/fc-cache --version 2>&1 | grep -q %{version} ; then
HOME=/root /usr/bin/fc-cache -f
HOME=/root XDG_CONFIG_HOME=/root/.config /usr/bin/fc-cache -f
fi
%postun -p /sbin/ldconfig
@ -133,6 +133,10 @@ fi
%doc fontconfig-devel.txt fontconfig-devel
%changelog
* Mon Sep 2 2013 Akira TAGOH <tagoh@redhat.com> - 2.10.95-2
- Set XDG_CONFIG_HOME explicitly at %%post to avoid creating directories
at non-root HOME with root. (#1003495)
* Sat Aug 31 2013 Akira TAGOH <tagoh@redhat.com> - 2.10.95-1
- Fix a crash issue (#1003069)