fontconfig only suggests defoma but will fail to install in postinst if it isnt available

Bug #503351 reported by Niall Creech
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
fontconfig (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: fontconfig

without defoma installed fontconfig.postinst will fail, but fontconfig only suggests defoma so its not guaranteed to be available

Setting up fontconfig (2.6.0-1ubuntu12) ...
/var/lib/dpkg/info/fontconfig.postinst: 13: defoma-subst: not found
/var/lib/dpkg/info/fontconfig.postinst: 13: defoma-subst: not found
dpkg: error processing fontconfig (--install):
 subprocess installed post-installation script returned error exit status 127
Processing triggers for doc-base ...
Processing 1 changed doc-base file(s)...
Registering documents with scrollkeeper...
Processing triggers for man-db ...
Errors were encountered while processing:
 fontconfig

ProblemType: Bug
Architecture: amd64
Date: Tue Jan 5 13:08:18 2010
DistroRelease: Ubuntu 10.04
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
NonfreeKernelModules: nvidia
Package: fontconfig 2.6.0-1ubuntu12
ProcEnviron:
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-9.13-generic
SourcePackage: fontconfig
Tags: lucid
Uname: Linux 2.6.32-9-generic x86_64

Revision history for this message
Niall Creech (sevenmachines-deactivatedaccount) wrote :
Changed in fontconfig (Ubuntu):
assignee: nobody → SevenMachines (sevenmachines)
Revision history for this message
Niall Creech (sevenmachines-deactivatedaccount) wrote :

the solution in debian 2.8.0-2 is to use a which defoma-subst check in postinst.

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)

Changed in fontconfig (Ubuntu):
assignee: SevenMachines (sevenmachines) → nobody
Revision history for this message
Niall Creech (sevenmachines-deactivatedaccount) wrote :

sorry, 2.8.0-2 is in debian testing so this should be a sync request

Revision history for this message
Daniel Holbach (dholbach) wrote :

SevenMachines: are you absolutely sure that all the Ubuntu changes in fontconfig can be overwritten by the Debian verison?

Revision history for this message
Niall Creech (sevenmachines-deactivatedaccount) wrote :

i was going to look into it but the last upload fixes this bug so if someone could close it that would be great. thanks

Revision history for this message
Niall Creech (sevenmachines-deactivatedaccount) wrote :

this bug was fixed on auto-sync with debian. can someone please change this to 'fix released'. thanks

fontconfig (2.8.0-2) unstable; urgency=low

  * Updated postinst script to follow defoma debhelper style for detecting
    presence of defoma

Revision history for this message
Kamal Mostafa (kamalmostafa) wrote :

Marking "Fix Released" per your request.

-----

fontconfig (2.8.0-2ubuntu1) lucid; urgency=low

  * Merge from Debian testing, remaining changes: (LP: #490326)
    - fix buildd bustage by ignoring errors in postinst and prerm (taken
      from debian NMU by Riku Voipio < <email address hidden>>)
      - add debian/fontconfig.prerm
      - update debian/fontconfig.postinst
    - debian/fontconfig-config.postinst: drop debconf transition;
      we remove conf.d links for hinting, subpixel and bitmap configs
      and stop looking at debconf, excluding 70-no-bitmaps.conf.
    - debian/fontconfig-config.postinst: also exclude 70-no-bitmaps.conf
      from "drop debconf transition" to ensure that it doesn't get removed
      automatically
      - keep adding it in CONF_FILES through 07_no_bitmaps.patch as well.
    - debian/patches/00_old_diff_gz.patch:
      - add MgOpen Moderna family to 40-nonlatin.conf
      - reorder Bitstream Vera and DejaVu families in 60-latin.conf
    - debian/patches/00_old_diff_gz.patch,
      debian/patches/04_ubuntu_monospace_lcd_filter_conf.patch,
      debian/patches/05_ubuntu_add_hinting_and_antialiasing_confs.patch:
      - add extra config files:
        - antialias and hinting.
        - 52-languageselector.conf
        - 53-monospace-lcd-filter.conf
    - debian/patches/05_lcdfilterlegacy.patch: Recognize const value
      "lcdfilterlegacy", introduced before upstream did introduce "lcdlegacy"
    - debian/patches/06_ubuntu_lcddefault.patch: set lcddefault as default
    - drop debian/fontconfig-config.templates, debian/fontconfig-config.config,
      and associtated po files.
  * purge debconf database when upgrading from previous versions.
 -- Mathieu Trudel < <email address hidden>> Thu, 14 Jan 2010 13:23:47 -0500

Changed in fontconfig (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.