[Pkg-xfce-devel] Bug#316164: xfce4-terminal: doesn't update x-terminal-emulator and x-terminal-emulator.1.gz alternatives correctly

Y Giridhar Appaji Nag Y Giridhar Appaji Nag <debian@appaji.net>, 316164@bugs.debian.org
Wed, 29 Jun 2005 03:15:22 +0530


Package: xfce4-terminal
Version: 0.2.4-2
Severity: important
Tags: patch

The x-terminal-emulator.1.gz slave for man page of xfce4-terminal is
directed to non-existant /usr/share/man/man1/Terminal.1.gz during its
installation (in debian/postinst) and the x-terminal-emulator
alternative that links to /usr/bin/xfce4-terminal.wrapper during
installation is not removed when removing the package (debian/prerm
incorrectly tries to remove the non-existant /usr/bin/Terminal.wrapper)

Tagging this bug as important because it leaves the x-terminal-emulator
as a dangling symlink making all packages that use x-terminal-emulator
internally useless.

Patch follows to correct this.

====== Begin Patch ======

diff -Nur xfce4-terminal-0.2.4.orig xfce4-terminal-0.2.4
diff -Nur xfce4-terminal-0.2.4.orig/debian/postinst xfce4-terminal-0.2.4/debian/postinst
--- xfce4-terminal-0.2.4.orig/debian/postinst   2005-06-29 03:04:06.000000000 +0530
+++ xfce4-terminal-0.2.4/debian/postinst        2005-06-29 03:05:40.000000000 +0530
@@ -6,7 +6,7 @@
   update-alternatives --install /usr/bin/x-terminal-emulator \
   x-terminal-emulator /usr/bin/xfce4-terminal.wrapper 40 \
   --slave /usr/share/man/man1/x-terminal-emulator.1.gz \
-  x-terminal-emulator.1.gz /usr/share/man/man1/Terminal.1.gz
+  x-terminal-emulator.1.gz /usr/share/man/man1/xfce4-terminal.wrapper.1.gz
 fi
 
 #DEBHELPER#
diff -Nur xfce4-terminal-0.2.4.orig/debian/prerm xfce4-terminal-0.2.4/debian/prerm
--- xfce4-terminal-0.2.4.orig/debian/prerm      2005-06-29 03:04:07.000000000 +0530
+++ xfce4-terminal-0.2.4/debian/prerm   2005-06-29 03:05:00.000000000 +0530
@@ -3,7 +3,7 @@
 # remove alternatives links
 
 if [ "$1" = "remove" ]; then
-  update-alternatives --remove x-terminal-emulator /usr/bin/Terminal.wrapper
+  update-alternatives --remove x-terminal-emulator /usr/bin/xfce4-terminal.wrapper

====== End Patch ======

Giridhar

--
Y Giridhar Appaji Nag | http://www.appaji.net/

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11-1-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages xfce4-terminal depends on:
ii  dbus-1                   0.23.4-3        simple interprocess messaging syst
ii  dbus-glib-1              0.23.4-3        simple interprocess messaging syst
ii  libatk1.0-0              1.10.1-2        The ATK accessibility toolkit
ii  libc6                    2.3.2.ds1-22    GNU C Library: Shared libraries an
ii  libexo0.3-0              0.3.0-2         Library with extensions for Xfce
ii  libfontconfig1           2.3.2-1         generic font configuration library
ii  libfreetype6             2.1.10-1        FreeType 2 font engine, shared lib
ii  libglib2.0-0             2.6.5-1         The GLib library of C routines
ii  libgtk2.0-0              2.6.8-1         The GTK+ graphical user interface 
ii  libice6                  4.3.0.dfsg.1-14 Inter-Client Exchange library
ii  libncurses5              5.4-8           Shared libraries for terminal hand
ii  libpango1.0-0            1.8.1-1         Layout and rendering of internatio
ii  libsm6                   4.3.0.dfsg.1-14 X Window System Session Management
ii  libstartup-notification0 0.8-1           library for program launch feedbac
ii  libvte4                  1:0.11.13-2     Terminal emulator widget for GTK+ 
ii  libx11-6                 4.3.0.dfsg.1-14 X Window System protocol client li
ii  libxfce4util-1           4.2.2-1         Utility functions library for Xfce
ii  libxfcegui4-3            4.2.2-1         Basic GUI C functions for Xfce4
ii  libxft2                  2.1.7-1         FreeType-based font drawing librar
ii  libxrender1              1:0.9.0-2       X Rendering Extension client libra
ii  xlibs                    4.3.0.dfsg.1-14 X Keyboard Extension (XKB) configu
ii  zlib1g                   1:1.2.2-4       compression library - runtime

Versions of packages xfce4-terminal recommends:
pn  dbus-1-utils                  <none>     (no description available)

-- no debconf information