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

dpkg: should it remove in reverse depends order?

Below is a log of a transaction with apt-get and dpkg to first install
fontconfig and libfontconfig1, and then removing them. Installation goes
nicely, but the removal fails, because dpkg removes libfontconfig1 first
and only after it's done that does it remove fontconfig. Unfortunately,
fontconfig's maintainer script calls fc-cache (via defoma Perl scripts
that I don't really understand), which is linked against libfontconfig1
and therefore fails in the dynamic linker. fontconfig does depend on
libfontconfig1, so I expected dpkg to remove the packages in the right

Before I start bugging the dpkg maintainers, would someone like to
confirm that I'm not misunderstanding something?

root@gytha:/# apt-get install fontconfig libfontconfig1
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
  fontconfig libfontconfig1
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 219kB of archives.
After unpacking 598kB of additional disk space will be used.
Get:1 http://liw.iki.fi sarge/main libfontconfig1 2.3.1-2 [112kB]
Get:2 http://liw.iki.fi sarge/main fontconfig 2.3.1-2 [106kB]
Fetched 219kB in 0s (2853kB/s)
Preconfiguring packages ...
Selecting previously deselected package libfontconfig1.
(Reading database ... 9171 files and directories currently installed.)
Unpacking libfontconfig1 (from .../libfontconfig1_2.3.1-2_i386.deb) ...
Selecting previously deselected package fontconfig.
Unpacking fontconfig (from .../fontconfig_2.3.1-2_i386.deb) ...
Setting up fontconfig (2.3.1-2) ...

Creating config file /etc/fonts/local.conf with new version
Updating font configuration of fontconfig...
Cleaning up category cid..
Cleaning up category truetype..
Cleaning up category type1..
Updating category type1..
Updating category truetype..
Updating category cid..
Regenerating fonts cache... done.

Setting up libfontconfig1 (2.3.1-2) ...

root@gytha:/# dpkg --remove fontconfig libfontconfig1
(Reading database ... 9211 files and directories currently installed.)
Removing 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

Reply to: