tags 394954 + patch tags 398830 + patch thanks Attached patch should fix postrm issues in xfonts-x3270-misc. See debian/changelog part of the patch for description of changes.
Patch attached. -- Regards, Andreas Henriksson
diff -ur ibm-3270-3.3.4p6.orig/debian/changelog ibm-3270-3.3.4p6/debian/changelog --- ibm-3270-3.3.4p6.orig/debian/changelog 2006-11-16 17:27:57.000000000 +0100 +++ ibm-3270-3.3.4p6/debian/changelog 2006-11-16 17:43:36.000000000 +0100 @@ -1,3 +1,13 @@ +ibm-3270 (3.3.4p6-3.3) unstable; urgency=medium + + * NMU + * Safeguard mkfontdir and update-fonts-alias in xfonts-x3270-misc.postrm + since they may not be available at that time (Closes: #394954, #398830) + * Let xfonts-x3270-misc depend on xfonts-utils instead of xutils. + * Upgrade dependency on debhelper to >= 5.0.29, and change compat to 5. + + -- Andreas Henriksson <[EMAIL PROTECTED]> Thu, 16 Nov 2006 17:38:42 +0100 + ibm-3270 (3.3.4p6-3.2) unstable; urgency=low * Non-maintainer upload. diff -ur ibm-3270-3.3.4p6.orig/debian/compat ibm-3270-3.3.4p6/debian/compat --- ibm-3270-3.3.4p6.orig/debian/compat 2006-11-16 17:27:57.000000000 +0100 +++ ibm-3270-3.3.4p6/debian/compat 2006-11-16 17:42:46.000000000 +0100 @@ -1 +1 @@ -4 +5 diff -ur ibm-3270-3.3.4p6.orig/debian/control ibm-3270-3.3.4p6/debian/control --- ibm-3270-3.3.4p6.orig/debian/control 2006-11-16 17:27:57.000000000 +0100 +++ ibm-3270-3.3.4p6/debian/control 2006-11-16 17:44:12.000000000 +0100 @@ -3,7 +3,7 @@ Priority: optional Maintainer: Bastian Blank <[EMAIL PROTECTED]> Standards-Version: 3.6.2 -Build-Depends: debhelper (>> 4.0.0), libncurses5-dev, libssl-dev, libxaw7-dev, libxt-dev, xutils, xbitmaps +Build-Depends: debhelper (>= 5.0.29), libncurses5-dev, libssl-dev, libxaw7-dev, libxt-dev, xutils, xbitmaps Package: x3270 Architecture: any @@ -81,7 +81,7 @@ Package: xfonts-x3270-misc Architecture: all Section: x11 -Depends: xutils (>= 4.0.3) +Depends: xfonts-utils Description: Font files for the x3270(1) IBM 3270 emulator x3270-fonts provides only the fonts required for x3270 operation, so that the fonts may be installed separately on a font-server. diff -ur ibm-3270-3.3.4p6.orig/debian/xfonts-x3270-misc.postrm ibm-3270-3.3.4p6/debian/xfonts-x3270-misc.postrm --- ibm-3270-3.3.4p6.orig/debian/xfonts-x3270-misc.postrm 2006-11-16 17:27:57.000000000 +0100 +++ ibm-3270-3.3.4p6/debian/xfonts-x3270-misc.postrm 2006-11-16 17:45:00.000000000 +0100 @@ -5,8 +5,13 @@ case "$1" in purge|remove) if [ -d /usr/share/fonts/X11/misc ]; then - ( cd /usr/share/fonts/X11/misc; mkfontdir ) - update-fonts-alias misc + if which mkfontdir >/dev/null 2>&1 ; then + ( cd /usr/share/fonts/X11/misc; mkfontdir ) + fi + + if which update-fonts-alias >/dev/null 2>&1 ; then + update-fonts-alias misc + fi fi ;;