Package: xfonts-scalable Version: 1:1.0.0-5 Severity: serious Rationale: policy violation paragraph 11.8.5 (13), renders gsfonts-x11 unusable Tags: patch
1:1.0.0-4 contained fonts.dir as a file in the package. This file is removed in 1:1.0.0-5, which results in removal of fonts.dir. But after all this the postinst (and also postrm) should run update-fonts-scale, update-fonts-alias and update-fonts-dir, but it only runs update-fonts-scale and update-fonts-alias. This is defined in policy 11.8.5: 11. Font packages that provide one or more `fonts.scale' files as described above must invoke `update-fonts-scale' on each directory into which they installed fonts _before_ invoking `update-fonts-dir' on that directory. This invocation must occur in both the `postinst' (for all arguments) and `postrm' (for all arguments except `upgrade') scripts. 12. Font packages that provide one or more `fonts.alias' files as described above must invoke `update-fonts-alias' on each directory into which they installed fonts. This invocation must occur in both the `postinst' (for all arguments) and `postrm' (for all arguments except `upgrade') scripts. 13. Font packages must invoke `update-fonts-dir' on each directory into which they installed fonts. This invocation must occur in both the `postinst' (for all arguments) and `postrm' (for all arguments except `upgrade') scripts. (see especially paragraph 13.). If fonts.dir is missing, this results in the X server ignoring this directory: (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/X11/Type1". Entry deleted from font path. (Run 'mkfontdir' on "/usr/share/fonts/X11/Type1"). As a workaround update-fonts-dir Type1 And manually adding /usr/share/fonts/X11/Type1 to the font path (or restarting the X server) should help. I tagged this bug severity "serious" because the behavior of this package violates the above mentioned policy and implies that other packages with Type1 fonts (like gsfonts-x11) are unusable, which as a result leads to programs like xfig being unusable because they need the unusable fonts. I attached a small patch, which solves this problem. Please let me know, if you want me to NMU the modified package. -- System Information: Debian Release: 4.0 APT prefers testing APT policy: (500, 'testing'), (50, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.17-2-amd64 Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1) Versions of packages xfonts-scalable depends on: ii xfonts-utils 1:1.0.1-1 X Window System font utility progr xfonts-scalable recommends no packages. -- no debconf information Tschoeeee Roland -- * [EMAIL PROTECTED] * http://www.spinnaker.de/ *
diff -u xfonts-scalable-1.0.0/debian/changelog xfonts-scalable-1.0.0/debian/changelog --- xfonts-scalable-1.0.0/debian/changelog +++ xfonts-scalable-1.0.0/debian/changelog @@ -1,3 +1,11 @@ +xfonts-scalable (1:1.0.0-5.1) unstable; urgency=high + + * Non maintainer upload. + * Run update-fonts-dir in postinst and postrm, otherwise the fonts are + not usable. + + -- Roland Rosenfeld <[EMAIL PROTECTED]> Sat, 18 Nov 2006 18:00:28 +0100 + xfonts-scalable (1:1.0.0-5) unstable; urgency=medium [ Eugene Konev ] diff -u xfonts-scalable-1.0.0/debian/xfonts-scalable.postinst.in xfonts-scalable-1.0.0/debian/xfonts-scalable.postinst.in --- xfonts-scalable-1.0.0/debian/xfonts-scalable.postinst.in +++ xfonts-scalable-1.0.0/debian/xfonts-scalable.postinst.in @@ -19,7 +19,7 @@ remove_conffile_commit /etc/X11/fonts/X11R7/Type1/xfonts-scalable.scale FONTDIRS="Type1" -UPDATECMDS="update-fonts-scale update-fonts-alias" +UPDATECMDS="update-fonts-scale update-fonts-alias update-fonts-dir" if which defoma-app >/dev/null 2>&1 && \ [ -e /usr/share/defoma/scripts/fontconfig.defoma ]; then diff -u xfonts-scalable-1.0.0/debian/xfonts-scalable.postrm.in xfonts-scalable-1.0.0/debian/xfonts-scalable.postrm.in --- xfonts-scalable-1.0.0/debian/xfonts-scalable.postrm.in +++ xfonts-scalable-1.0.0/debian/xfonts-scalable.postrm.in @@ -22,7 +22,7 @@ if [ "$1" = "purge" ] || [ "$1" = "remove" ] || [ "$1" = "disappear" ]; then FONTDIRS="Type1" - UPDATECMDS="update-fonts-scale update-fonts-alias" + UPDATECMDS="update-fonts-scale update-fonts-alias update-fonts-dir" if which defoma-app >/dev/null 2>&1 && \ [ -e /usr/share/defoma/scripts/fontconfig.defoma ]; then
pgpWHKbW7jsBg.pgp
Description: PGP signature