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

Bug#220713: xbase-clients: preinst script truncates error string on line 311



X-Debbugs-Cc: csirac2@yahoo.com.au
Subject: xbase-clients: preinst script truncates error string on line 311
Package: xbase-clients
Version: 4.2.1-13
Severity: normal
Tags: patch

This bug concerns the preinstallation script for
base-clients_4.2.1-13_i386.deb.

The DEBIAN/preinst script trashes the error string on line 311, preventing the
user from knowing what made the script fail (in my case, building the plain
vanilla official XFree86 4.3.0 sources and installing them upsets the debs
using slightly different symlink setups).

Line 310 will report the important info needed to fix the problem:
      errmsg="$symlink exists and is not a symbolic link; this package cannot"
But on line 311 it's truncated:
      errmsg="be installed until this"

A small mistake but it caused me much frustration! Obviously it is supposed to
be:
      errmsg="$errmsg be installed until this"

Here's a bash session excerpt of the problem I am describing:
	root@singularity-3:/usr/X11R6/lib/X11# ln -sf /etc/X11/xinit/ .
	root@singularity-3:/usr/X11R6/lib/X11# dpkg -i
/var/cache/apt/archives/xbase-clients_4.2.1-13_i386.deb
	(Reading database ... 178082 files and directories currently installed.)
	Preparing to replace xbase-clients 4.2.1-11 (using
.../xbase-clients_4.2.1-13_i386.deb) ...
	xbase-clients preinst error: be installed until this file is removed
	dpkg: error processing /var/cache/apt/archives/xbase-clients_4.2.1-13_i386.deb
(--install):
	 subprocess pre-installation script returned error exit status 74
	Errors were encountered while processing:
	 /var/cache/apt/archives/xbase-clients_4.2.1-13_i386.deb
	root@singularity-3:/usr/X11R6/lib/X11#
	
And here's output of the same package rebuilt with the fix I have proposed:
	root@singularity-0:/tmp# dpkg -i xbase.deb
	(Reading database ... 179640 files and directories currently installed.)
	Preparing to replace xbase-clients 4.2.1-11 (using xbase.deb) ...
	xbase-clients preinst error: /etc/X11/xkb/xkbcomp exists and is not a symbolic
	link; this package cannot be installed until this file is removed
	dpkg: error processing xbase.deb (--install):
	 subprocess pre-installation script returned error exit status 74
	Errors were encountered while processing:
	 xbase.deb
	root@singularity-0:/tmp# 
	
So, it turns out I had an actual binary of xkbcomp (probably thanks to "make
install"
 of the official X sources; I had no choice as the Debian pkgs were not playing
nice
 with my via KT400/Radion 9000 - putting my monitor to sleep and X sitting
there eating
 99% CPU forcing me to ssh in and reboot) instead of a symlink to it.
 
So.. My first Debian bug report? A patch is at the end but I only put it there
so I could add the "patch" tag, I'm sure it'd be eaiser for you guys to dive
into the file with vim..
 
 - Paul
 
                                                                               
                    -- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux singularity 2.6.0-test9-1-386 #1 Sun Oct 26 22:32:52 EST 2003
i686
Locale: LANG=C, LC_CTYPE=C
                                                                               
                   
Versions of packages xbase-clients depends on:
ii  cpp-3.2                   1:3.2.3-8      The GNU C preprocessor
ii  libc6                     2.3.2.ds1-8    GNU C Library: Shared libraries an
ii  libdps1                   4.2.1-13       Display PostScript (DPS) client li
ii  libfreetype6              2.1.5-3        FreeType 2 font engine, shared lib
ii  libncurses5               5.3.20030719-3 Shared libraries for terminal hand
ii  libxaw7                   4.2.1-13       X Athena widget set library
ii  xlibmesa3-gl [libgl1]     4.2.1-13       Mesa 3D graphics library [XFree86]
ii  xlibmesa3-glu [libglu1]   4.2.1-13       Mesa OpenGL utility library [XFree
ii  xlibs                     4.2.1-13       X Window System client libraries
                                                                               
                   
-- no debconf information

--- ../../unpatched/DEBIAN/preinst    2003-10-30 17:56:23.000000000 +1000
+++ preinst     2003-11-01 23:03:54.000000000 +1000
@@ -308,7 +308,7 @@
       fi
     elif [ -e "$symlink" ]; then
       errmsg="$symlink exists and is not a symbolic link; this package cannot"
-      errmsg="be installed until this"
+      errmsg="$errmsg be installed until this"
       if [ -f "$symlink" ]; then
         errmsg="$errmsg file"
       elif [ -d "$symlink" ]; then

http://personals.yahoo.com.au - Yahoo! Personals
New people, new possibilities. FREE for a limited time.




Reply to: