Package: console-tools
Version: 1:0.2.3dbs-67
Severity: important
Tags: patch

console-screen.sh relies on a "if [ $? -eq 0 ]" test in setup_fonts(), which is
incompatible with the set -e added in the most recent upload, making the script
fail and the package therefore unconfigurable if it's *not* run from a virtual
console.  In particular, it'll fail if the console is any pts device, making
upgrades within X impossible.

Simple patch:

--- console-screen.sh.orig      2010-01-03 14:24:33.643473775 -0800
+++ console-screen.sh   2010-01-03 14:24:33.643473775 -0800
@@ -82,8 +82,7 @@
     CONSOLE_TYPE=`fgconsole 2>/dev/null` || return 0

     if [ ! $CONSOLE_TYPE = "serial" ]  ; then
-       readlink /proc/self/fd/0 | grep -q -e /dev/vc -e '/dev/tty[^p]' -e 
/dev/console
-       if [ $? -eq 0 ] ; then
+       if ! readlink /proc/self/fd/0 | grep -q -e /dev/vc -e '/dev/tty[^p]' -e 
/dev/console ; then
            VT="yes"
            reset_vga_palette
        fi




-- 
Nicholas Breen
nbr...@ofb.net



-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32.1 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages console-tools depends on:
ii  debconf [debconf-2.0]      1.5.28        Debian configuration management sy
ii  libc6                      2.10.2-3      Embedded GNU C Library: Shared lib
ii  libconsole                 1:0.2.3dbs-67 Shared libraries for Linux console
ii  lsb-base                   3.2-23        Linux Standard Base 3.2 init scrip

Versions of packages console-tools recommends:
ii  console-common                0.7.85     basic infrastructure for text cons
ii  console-data                  2:1.10-2   keymaps, fonts, charset maps, fall

Versions of packages console-tools suggests:
pn  kbd-compat                    <none>     (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to