fontconfig: don't "clean up" on new installs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
fontconfig (Debian) |
Fix Released
|
Unknown
|
|||
fontconfig (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
This is a re-reporting of Debian #636173, since the actual failure is only triggered on Ubuntu.
debian/
if dpkg --compare-versions "$2" lt 2.4.0-1; then
printf "Cleaning up old fontconfig caches... "
for dir in /usr/share/fonts /var/lib/
if [ -d $dir ]; then
find $dir -name fonts.cache-1 -exec rm -f \{\} \;
find $dir -depth -mindepth 1 -type d -exec rmdir --ignore-
fi
done
...
This block gets run when fontconfig is initially installed, as well as when upgrading from fontconfig (<< 2.4.0-1). This interacts poorly with Ubuntu's ttf-mscorefonts
I proposed to Debian that it would suffice to just use "lt-nl" instead of "lt", so that an empty $2 (a new install) causes dpkg
--compare-versions to return false. That way the cleanup code only runs on upgrade from the old version of fontconfig, where it is presumably actually needed, and not on first install.
For more context, see
https:/
comments 14 (which prompted packaging the empty directory) and 29
http://
comments "Pretty sure this is entirely different..." and "Anders and I found the bug..."
Changed in fontconfig (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in fontconfig (Debian): | |
status: | Unknown → New |
Changed in fontconfig (Debian): | |
status: | New → Fix Released |