diff -u fontconfig-2.6.0/debian/fontconfig.postinst fontconfig-2.6.0/debian/fontconfig.postinst --- fontconfig-2.6.0/debian/fontconfig.postinst +++ fontconfig-2.6.0/debian/fontconfig.postinst @@ -3,12 +3,14 @@ set -e if [ "$1" = configure ]; then - # Ensure Defoma subst file exists, with some default substitutions - if ! defoma-subst check-rule fontconfig; then - defoma-subst new-rule fontconfig \ - 'serif --GeneralFamily,* Roman --Shape Serif Upright --Weight Medium' \ - 'sans-serif --GeneralFamily,* SansSerif --Shape NoSerif Upright --Weight Medium' \ - 'monospace --Width,* Fixed --GeneralFamily,2 Typewriter --Shape Upright --Weight Medium' +# If defoma is installed, ensure Defoma subst file exists, with some default substitutions + if [ -x "`which defoma-subst`" ]; then + if ! defoma-subst check-rule fontconfig; then + defoma-subst new-rule fontconfig \ + 'serif --GeneralFamily,* Roman --Shape Serif Upright --Weight Medium' \ + 'sans-serif --GeneralFamily,* SansSerif --Shape NoSerif Upright --Weight Medium' \ + 'monospace --Width,* Fixed --GeneralFamily,2 Typewriter --Shape Upright --Weight Medium' + fi fi fi diff -u fontconfig-2.6.0/debian/changelog fontconfig-2.6.0/debian/changelog --- fontconfig-2.6.0/debian/changelog +++ fontconfig-2.6.0/debian/changelog @@ -1,3 +1,10 @@ +fontconfig (2.6.0-1ubuntu13) lucid; urgency=low + + * debian/fontconfig.postinst: check for presence of defoma before + attempting to use it. Fixed in debian 2.8.0-2. (LP: #503351) + + -- SevenMachines Tue, 05 Jan 2010 13:18:19 +0000 + fontconfig (2.6.0-1ubuntu12) jaunty; urgency=low * more config rules cleanup; dont create 10-no-sub-pixel.conf link in package