[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#303693: ttf-opensymbol postinst uses unconfigured fontconfig



Package: ttf-opensymbol
Version: 1.1.3-8
Severity: minor

Postinst script of ttf-opensymbol package contains the following lines:

if [ "$1" = "configure" ] && [ -x /usr/bin/fc-cache ]; then
        echo "Updating fontconfig cache..."
	fc-cache -f
fi

This causes fc-cache to run during initial installation, when fontconfig
is unpacked, but not yet configured. So fc-cache claims that fontconfig
configuration file is not available.

I think that a good workaround is to test also that /etc/fonts/fonts.conf
exists before running fc-cache. Later, when fontconfig package will be
configured, cache font will be created anyway. 

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (620, 'testing'), (600, 'unstable'), (550, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.10-1-zigzag
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R)

-- no debconf information



Reply to: