Package: fontconfig
Version: 2.3.1-2
Severity: normal

fontconfig's postinst script should be a little more robust than this:

sisyphus:~# apt-get --purge remove libfontconfig1
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
  fontconfig* libfontconfig1*
0 upgraded, 0 newly installed, 2 to remove and 54 not upgraded.
Need to get 0B of archives.
After unpacking 643kB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 12429 files and directories currently installed.)
Removing libfontconfig1 ...
Purging configuration files for libfontconfig1 ...
Removing fontconfig ...
Purging font configuration of fontconfig...
Purging category cid..
Purging category truetype..
Purging category type1..
fc-cache: error while loading shared libraries: libfontconfig.so.1: cannot open 
shared object file: No such file or directory
Purging configuration files for fontconfig ...
dpkg - warning: while removing fontconfig, directory `/etc/fonts/conf.d' not 
empty so not removed.
dpkg - warning: while removing fontconfig, directory `/etc/fonts' not empty so 
not removed.
sisyphus:~# l /usr/X11R6/lib/X11/fonts/Type1/

If the circular dependency between libfontconfig1 and fontconfig cannot be
broken, then the error message from the dynamic loader should be suppressed.

Note that you have to use apt-get to reproduce this problem.  Plain dpkg won't
work, as it makes sure to always remove fontconfig *before* libfontconfig1.

Here's some more detailed output:

# apt-get --purge -o "DPkg::Options::=-D7" remove libfontconfig1
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
  fontconfig* libfontconfig1*
0 upgraded, 0 newly installed, 2 to remove and 54 not upgraded.
Need to get 0B of archives.
After unpacking 643kB disk space will be freed.
Do you want to continue? [Y/n]
D000001: deferred_remove package fontconfig
D000001: checking dependencies for remove `fontconfig'
D000001: deferred_remove package libfontconfig1
D000001: checking dependencies for remove `libfontconfig1'
D000001: deferred_remove package fontconfig
D000001: checking dependencies for remove `fontconfig'
D000001: deferred_remove package libfontconfig1
D000001: checking dependencies for remove `libfontconfig1'
D000001: deferred_remove package fontconfig
D000001: checking dependencies for remove `fontconfig'
D000001: deferred_remove package libfontconfig1
D000001: checking dependencies for remove `libfontconfig1'
D000001: deferred_remove package fontconfig
D000001: checking dependencies for remove `fontconfig'
D000001: deferred_remove package libfontconfig1
D000001: checking dependencies for remove `libfontconfig1'
D000001: deferred_remove package fontconfig
D000001: checking dependencies for remove `fontconfig'
D000001: deferred_remove package libfontconfig1
D000001: checking dependencies for remove `libfontconfig1'
D000001: deferred_remove package fontconfig
D000001: checking dependencies for remove `fontconfig'
D000001: deferred_remove package libfontconfig1
D000001: checking dependencies for remove `libfontconfig1'
D000001: deferred_remove package fontconfig
D000001: checking dependencies for remove `fontconfig'
D000001: deferred_remove package libfontconfig1
D000001: checking dependencies for remove `libfontconfig1'
(Reading database ... 12429 files and directories currently installed.)
Removing libfontconfig1 ...
D000002: maintainer_script_installed nonexistent prerm
D000001: removal_bulk package libfontconfig1
D000002: fork/exec /var/lib/dpkg/info/libfontconfig1.postrm ( )
D000001: removal_bulk cleaning info directory
D000002: removal_bulk info unlinked /var/lib/dpkg/info/libfontconfig1.shlibs
D000002: removal_bulk info unlinked /var/lib/dpkg/info/libfontconfig1.postinst
D000002: removal_bulk info unlinked /var/lib/dpkg/info/libfontconfig1.md5sums
D000001: removal_bulk purging? foundpostrm=1
Purging configuration files for libfontconfig1 ...
D000002: fork/exec /var/lib/dpkg/info/libfontconfig1.postrm ( )
D000001: removal_bulk purge done, removing list 
`/var/lib/dpkg/info/libfontconfig1.list'
D000001: removal_bulk purge done, removing postrm 
`/var/lib/dpkg/info/libfontconfig1.postrm'
D000001: removal done
D000001: deferred_remove package fontconfig
D000001: checking dependencies for remove `fontconfig'
Removing fontconfig ...
D000002: fork/exec /var/lib/dpkg/info/fontconfig.prerm ( )
Purging font configuration of fontconfig...
Purging category cid..
Purging category truetype..
Purging category type1..
fc-cache: error while loading shared libraries: libfontconfig.so.1: cannot open 
shared object file: No such file or directory
D000001: removal_bulk package fontconfig
D000002: fork/exec /var/lib/dpkg/info/fontconfig.postrm ( )
D000001: removal_bulk cleaning info directory
D000002: removal_bulk info unlinked /var/lib/dpkg/info/fontconfig.config
D000002: removal_bulk info unlinked /var/lib/dpkg/info/fontconfig.templates
D000002: removal_bulk info unlinked /var/lib/dpkg/info/fontconfig.postinst
D000002: removal_bulk info unlinked /var/lib/dpkg/info/fontconfig.prerm
D000002: removal_bulk info unlinked /var/lib/dpkg/info/fontconfig.conffiles
D000002: removal_bulk info unlinked /var/lib/dpkg/info/fontconfig.md5sums
D000001: removal_bulk purging? foundpostrm=1
Purging configuration files for fontconfig ...
D000002: fork/exec /var/lib/dpkg/info/fontconfig.postrm ( )
dpkg - warning: while removing fontconfig, directory `/etc/fonts/conf.d' not 
empty so not removed.
dpkg - warning: while removing fontconfig, directory `/etc/fonts' not empty so 
not removed.
D000001: removal_bulk purge done, removing list 
`/var/lib/dpkg/info/fontconfig.list'
D000001: removal_bulk purge done, removing postrm 
`/var/lib/dpkg/info/fontconfig.postrm'
D000001: removal done

Looking at fontconfig's prerm script, maybe the problem is defoma-app's fault?

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.9-powerpc-smp
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages fontconfig depends on:
ii  debconf [debconf-2.0]       1.4.47       Debian configuration management sy
ii  defoma                      0.11.8-0.1   Debian Font Manager -- automatic f
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  libfontconfig1              2.3.1-2      generic font configuration library
ii  ttf-bitstream-vera          1.10-3       The Bitstream Vera family of free 
ii  ttf-freefont                20031008-1.1 Freefont Serif, Sans and Mono True
ii  ucf                         1.17         Update Configuration File: preserv

-- debconf information:
* fontconfig/rendering_type: Bytecode interpreter (CRT screens)
* fontconfig/subpixel_rendering: Automatic
  fontconfig/enable_bitmaps: false
  fontconfig/hinting_type: Native
  fontconfig/enable_autohinter: true


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to