Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#387928: Bug #387928: fontconfig: Cannot write cache files

305 views
Skip to first unread message

Pablo Di Noto

unread,
Nov 11, 2006, 5:50:11 PM11/11/06
to
Had the same problem when installing sid from scratch with cdebootstrap.

In my case, the problem arises when installing package ttf-opensymbol
(as dependency to OpenOffice 2.0.4-5 packages).

fc-cache fails:

> roxstolen:/root# fc-cache -v
> /usr/share/fonts: skipping, 0 fonts, 3 dirs
> /usr/share/fonts/X11: caching, 0 fonts, 6 dirs
> usr/share/fonts/X11: failed to write cache
> /usr/share/fonts/X11/100dpi: skipping, 358 fonts, 0 dirs
> /usr/share/fonts/X11/75dpi: skipping, 358 fonts, 0 dirs
> /usr/share/fonts/X11/Type1: skipping, 43 fonts, 0 dirs
> /usr/share/fonts/X11/encodings: caching, 0 fonts, 1 dirs
> /usr/share/fonts/X11/encodings: failed to write cache
...and so on until...
> /usr/X11R6/lib/X11/fonts/encodings/large: failed to write cache
> /usr/local/share/fonts: skipping, 0 fonts, 0 dirs
> /root/.fonts: skipping, no such directory
> /var/lib/defoma/fontconfig.d: skipping, 0 fonts, 5 dirs
> /var/lib/defoma/fontconfig.d/C: skipping, 4 fonts, 0 dirs
> /var/lib/defoma/fontconfig.d/D: skipping, 22 fonts, 0 dirs
> /var/lib/defoma/fontconfig.d/N: skipping, 16 fonts, 0 dirs
> /var/lib/defoma/fontconfig.d/S: skipping, 1 fonts, 0 dirs
> /var/lib/defoma/fontconfig.d/U: skipping, 13 fonts, 0 dirs
> /var/cache/fontconfig: cleaning cache directory
> /root/.fontconfig: not cleaning unwritable cache directory
> fc-cache: failed

Seems like fc-cache does not write cache if the destination directory
"seems newer" that now, and fails.

That gives debconf a reason to fail, and the entire install stops.

Simply touching the directories where fc-cache refuses to write its
cache files fixes the problem.

> for dir in `/usr/share/fonts/X11 ...`
> do
> touch $dir
> done

In my case, the time difference comes from the fact the bootstrapping
machine has correct timezone, while the new system did not.

Perhaps fc-cache should exit with non-error code in this case?

HTH!
///Pablo


--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

0 new messages