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

Bug#498189: xfonts-scalable: unnecesary use of fmt breaks when not on a tty

Package: xfonts-scalable
Version: 1:1.0.0-6
Followup-For: Bug #498189

The postinst for this seems to contain a _load_ of code that seems to
duplicate various bits of functionallity that are part of the packaging
system.  If they're needed (which I doubt) they point to bugs in dpkg.

Part of this seems to be the assumption that you need to wrap messages
for the user.

The error being thrown by fmt would seem to be due to the fact that it's
being run behind a debconf backend (noninteractive in my vase) that
doesn't define a terminal width.

I'd suggest that this postinst (and the others that contain all the same
baggage) need a code review, and that the same result could be better
achieved by use of a few debconf calls, with the added bonus that the
warning messages could then be templates and so would get translated.

-- System Information:
Debian Release: 5.0
  APT prefers testing
  APT policy: (501, 'testing'), (50, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages xfonts-scalable depends on:
ii  xfonts-utils                  1:7.4+1    X Window System font utility progr

xfonts-scalable recommends no packages.

Versions of packages xfonts-scalable suggests:
ii  tightvncserver [xserver]      1.3.9-4    virtual network computing server s
ii  xserver-xorg-core [xserver]   2:1.4.2-9  Xorg X server - core server

-- no debconf information

Reply to: