insufficient dependency on xfonts-utils

Bug #52803 reported by Michael Bienia
44
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gsfonts-x11 (Ubuntu)
Fix Released
High
Fabio Massimo Di Nitto

Bug Description

I tried to upgrade gsfonts-x11 to the version in edgy (0.20). It failed with the following error:

usage error: unrecognized option
Usage: update-fonts-dir DIRECTORY ...
       update-fonts-dir { -h | --help }
This program is a wrapper for mkfontdir(1x) that is primarily useful to Debian
package maintainer scripts. See update-fonts-dir(8) for more information.
Options:
    -h, --help display this usage message and exit
dpkg: error processing gsfonts-x11 (--configure):
 subprocess post-installation script returned error exit status 2

After I also upgrade xfonts-utils to the latest version (1.0.0-6ubuntu1) gsfonts-x11 could also be successfully upgraded.
The dependency of gsfonts-x11 on xfonts-utils should be versioned.

Revision history for this message
James Troup (elmo) wrote :

I've seen the same problem on ia64 - setting to confirmed and high since it breaks upgrades.

Changed in gsfonts-x11:
importance: Untriaged → High
status: Unconfirmed → Confirmed
Revision history for this message
Patrick Ohearn (patoh) wrote :

This is still an issue, i also had to upgrade my xfonts-utils to fix this.

Revision history for this message
Roland Rosenfeld (roland) wrote :

What version of xfonts-utils are you using when you run into this problem? As far as I can see, there are only 1.0.6 versions available in Debian and Ubuntu (in any release), which should not trigger this issue.

The solution would be to modify debhelper, which adds the dependency on xfonts-utils using ${misc:Depends}. The current version (including 5.0.37.3) adds a dependeny without versioning.

I don't think that it is necessary to fix debhelper in this point because there is no version of xfonts-utils available that doesn't understand the --x11r7-layout parameter of update-fonts-dir, neither in old releases nor in current test releases. So it's a "alpha testing only" problem, which is already solved.

Revision history for this message
Michael Bienia (geser) wrote :

I saw this problem when I upgraded from dapper to edgy.
According to packages.ubuntu.com dapper has xfonts-utils 6.8.2.1-5 and update-fonts-dir from this package doesn't understand --x11r7-layout yet.

When edgy gets released people will run into this problem if xfonts-utils isn't upgraded before gsfonts-x11.

Revision history for this message
Roland Rosenfeld (roland) wrote :

You're right. I missed that xfonts-utils 6.8.2.1-5 were build from xfonts-core in Ubuntu, so launchpad didn't show me these versions when searching for xfonts-utils.
Anyway, I'm not sure, whether this should be fixed in Debian or in Ubuntu, since the problem doesn't occur in Debian. Maybe some Ubuntu developer want's to file a bug report against debhelper to change dh_installfonts to add a versioned dependency on xfonts-utils to ${misc:Depends}

Revision history for this message
Heitzso (heitzso) wrote :

This morning, Oct. 5, tried to upgrade from Dapper to Edgy (x86 arch) and hit this bug. I'm surprised it is still there if you're aiming for an October release. This is not good. It really needs to be fixed asap because everyone who upgrades is going to get bit by it and it is a mess to work around by hand.

Revision history for this message
Jonty (jonnty) wrote :

I got caught by this as well, upgrading to Edgy (x86). I'm now in between the two, which isn't fun - I now have a situation where even apt-get -f install can't help me, so I can't install anything.

Revision history for this message
Jonty (jonnty) wrote :

Ah, I finally got this sorted by installing the required packages (xfonts-utils) and dependencies using the --download-only option, and installing them directly from /var/cache/apt/archives/, if it helps anyone.

Changed in gsfonts-x11:
assignee: nobody → fabbione
Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :

This bug affects all packages that use dh_installxfonts and not just gsfonts-x11. The reason why it doesn't show in Debian is because there was never a version of update-fonts-dir that does not understand the --x11--r7-layout option.

The best solution would be, as suggested by Roland, a versioned Depends added by dh_installxfonts and a rebuild of all xfonts packages.

Fabio

Changed in gsfonts-x11:
status: Confirmed → In Progress
Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :

debhelper has been uploaded and propagated. All fonts in main have been uploaded and should hit archive within the next few hours.

universe/multiverse fonts will transition within today.

Fabio

Changed in gsfonts-x11:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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