Bug#349462: xterm: wrong update-alternatives man page x-terminal-emulator.1.gz

2006-01-22 Thread Vincent Lefevre
Package: xterm
Version: 208-3.1
Severity: normal

I get the following error:

dixsept:~> man x-terminal-emulator
man: warning: /usr/share/man/man1/x-terminal-emulator.1.gz is a dangling symlink
No manual entry for x-terminal-emulator

dixsept:~> update-alternatives --display x-terminal-emulator
x-terminal-emulator - status is manual.
 link currently points to /usr/bin/uxterm
/usr/bin/mlterm - priority 20
 slave x-terminal-emulator.1.gz: /usr/share/man/man1/mlterm.1.gz
/usr/bin/aterm-xterm - priority 20
 slave x-terminal-emulator.1.gz: /usr/share/man/man1/aterm.1.gz
/usr/bin/gnome-terminal.wrapper - priority 40
 slave x-terminal-emulator.1.gz: /usr/share/man/man1/gnome-terminal.1.gz
/usr/bin/xfce4-terminal.wrapper - priority 40
 slave x-terminal-emulator.1.gz: /usr/share/man/man1/xfce4-terminal.wrapper.1.gz
/usr/bin/rxvt-xpm - priority 8
 slave x-terminal-emulator.1.gz: /usr/share/man/man1/rxvt.1.gz
/usr/bin/rxvt-xterm - priority 10
 slave x-terminal-emulator.1.gz: /usr/share/man/man1/rxvt.1.gz
/usr/bin/xterm - priority 20
 slave x-terminal-emulator.1x.gz: /usr/share/man/man1/xterm.1x.gz
/usr/bin/uxterm - priority 20
 slave x-terminal-emulator.1x.gz: /usr/share/man/man1/uxterm.1x.gz
/usr/bin/koi8rxterm - priority 20
 slave x-terminal-emulator.1x.gz: /usr/share/man/man1/koi8rxterm.1x.gz
/usr/bin/lxterm - priority 30
 slave x-terminal-emulator.1x.gz: /usr/share/man/man1/lxterm.1x.gz
Current `best' version is /usr/bin/gnome-terminal.wrapper.

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

Versions of packages xterm depends on:
ii  libc6 2.3.5-12   GNU C Library: Shared libraries an
ii  libfontconfig12.3.2-1.1  generic font configuration library
ii  libfreetype6  2.1.10-1   FreeType 2 font engine, shared lib
ii  libice6   6.9.0.dfsg.1-4 Inter-Client Exchange library
ii  libncurses5   5.5-1  Shared libraries for terminal hand
ii  libsm66.9.0.dfsg.1-4 X Window System Session Management
ii  libx11-6  6.9.0.dfsg.1-4 X Window System protocol client li
ii  libxaw8   6.9.0.dfsg.1-4 X Athena widget set library
ii  libxext6  6.9.0.dfsg.1-4 X Window System miscellaneous exte
ii  libxft2   2.1.7-1FreeType-based font drawing librar
ii  libxmu6   6.9.0.dfsg.1-4 X Window System miscellaneous util
ii  libxrender1   1:0.9.0.2-1X Rendering Extension client libra
ii  libxt66.9.0.dfsg.1-4 X Toolkit Intrinsics
ii  xlibs-data6.9.0.dfsg.1-4 X Window System client data
ii  zlib1g1:1.2.3-9  compression library - runtime

Versions of packages xterm recommends:
ii  xutils6.9.0.dfsg.1-4 X Window System utility programs

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#349462: xterm: wrong update-alternatives man page x-terminal-emulator.1.gz

2006-11-07 Thread Joey Hess
Julien Cristau wrote:
> I tried to reproduce this by upgrading xterm from sarge to etch and
> didn't get any dangling symlink.  I tried an upgrade with xterm as the
> only x-terminal-emulator package installed, as well as with xterm and
> rxvt, and I also tried setting the link to uxterm manually before the
> upgrade.  This choice seems to be lost on upgrade (probably due to the
> path change for *xterm), but I got no dangling symlink.
> I'd appreciate your help in trying to understand how things went wrong
> for you, and if it's still possible for them to go wrong in case of a
> sarge->etch upgrade.

A sarge->etch upgrade does not enter into it to me; my laptop has had
etch installed from the time I bought it (early June), and still has the
broken symlink that I described.

The problem seems to be due to different terminal emulators registering
slave symlinks with different names for x-terminal-emulator.

[EMAIL PROTECTED]:/var/lib/dpkg/info>grep x-terminal-emulator.1.gz *.p*
gnome-terminal.postinst:--slave 
/usr/share/man/man1/x-terminal-emulator.1.gz \
gnome-terminal.postinst:x-terminal-emulator.1.gz 
/usr/share/man/man1/gnome-terminal.1.gz

[EMAIL PROTECTED]:/var/lib/dpkg/info>grep x-terminal-emulator.1x.gz *.p*
xterm.postinst: /usr/share/man/man1/x-terminal-emulator.1x.gz 
x-terminal-emulator.1x.gz \
xterm.postinst: /usr/share/man/man1/x-terminal-emulator.1x.gz 
x-terminal-emulator.1x.gz \
xterm.postinst: /usr/share/man/man1/x-terminal-emulator.1x.gz 
x-terminal-emulator.1x.gz \
xterm.postinst: /usr/share/man/man1/x-terminal-emulator.1x.gz 
x-terminal-emulator.1x.gz \

This inconsistency causes a broken symlink if the alternative is
changed:

[EMAIL PROTECTED]:~>dir /usr/share/man/man1/x-terminal-emulator.1.gz 
lrwxrwxrwx 1 root root 42 Oct 31  2005 
/usr/share/man/man1/x-terminal-emulator.1.gz -> 
/etc/alternatives/x-terminal-emulator.1.gz
[EMAIL PROTECTED]:~>dir /etc/alternatives/x-terminal-emulator.1.gz 
lrwxrwxrwx 1 root root 39 Nov  7 20:49 
/etc/alternatives/x-terminal-emulator.1.gz -> 
/usr/share/man/man1/gnome-terminal.1.gz

[EMAIL PROTECTED]:~>update-alternatives --config x-terminal-emulator

There are 5 alternatives which provide `x-terminal-emulator'.

  SelectionAlternative
---
*+1/usr/bin/gnome-terminal.wrapper
  2/usr/bin/xterm
  3/usr/bin/uxterm
  4/usr/bin/koi8rxterm
  5/usr/bin/lxterm

Press enter to keep the default[*], or type selection number: 2
Using `/usr/bin/xterm' to provide `x-terminal-emulator'.

[EMAIL PROTECTED]:~>dir /usr/share/man/man1/x-terminal-emulator.1.gz 
lrwxrwxrwx 1 root root 42 Oct 31  2005 
/usr/share/man/man1/x-terminal-emulator.1.gz -> 
/etc/alternatives/x-terminal-emulator.1.gz
[EMAIL PROTECTED]:~>dir /etc/alternatives/x-terminal-emulator.1.gz  
ls: /etc/alternatives/x-terminal-emulator.1.gz: No such file or directory
[EMAIL PROTECTED]:~>dir /etc/alternatives/x-terminal-emulator.1x.gz 
lrwxrwxrwx 1 root root 31 Nov  7 20:56 
/etc/alternatives/x-terminal-emulator.1x.gz -> /usr/share/man/man1/xterm.1x.gz

-- 
see shy jo


signature.asc
Description: Digital signature


Bug#349462: xterm: wrong update-alternatives man page x-terminal-emulator.1.gz

2006-11-07 Thread Vincent Lefevre
On 2006-11-08 02:35:56 +0100, Julien Cristau wrote:
> I tried to reproduce this by upgrading xterm from sarge to etch and
> didn't get any dangling symlink.  I tried an upgrade with xterm as the
> only x-terminal-emulator package installed, as well as with xterm and
> rxvt, and I also tried setting the link to uxterm manually before the
> upgrade.  This choice seems to be lost on upgrade (probably due to the
> path change for *xterm), but I got no dangling symlink.
> I'd appreciate your help in trying to understand how things went wrong
> for you, and if it's still possible for them to go wrong in case of a
> sarge->etch upgrade.

The machine no longer exists, but on another one, I've just changed the
x-terminal-emulator alternative from /usr/bin/xfce4-terminal.wrapper to
/usr/bin/uxterm, and I also get a dangling symlink.

ay:~> ll /usr/share/man/man1/x-terminal-emulator.1.gz
lrwxrwxrwx 1 root root 42 2003-07-18 22:14:13 
/usr/share/man/man1/x-terminal-emulator.1.gz -> 
/etc/alternatives/x-terminal-emulator.1.gz
ay:~> ll /etc/alternatives/x-terminal-emulator.1.gz
ls: /etc/alternatives/x-terminal-emulator.1.gz: No such file or directory

But there's the following symlink:

lrwxrwxrwx 1 root root 32 2006-11-08 02:45:07 
/etc/alternatives/x-terminal-emulator.1x.gz -> /usr/share/man/man1/uxterm.1x.gz

This is with xterm 210-3.1 (from testing).

-- 
Vincent Lefèvre <[EMAIL PROTECTED]> - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)



Bug#349462: xterm: wrong update-alternatives man page x-terminal-emulator.1.gz

2006-11-07 Thread Julien Cristau
On Wed, Nov  8, 2006 at 02:50:47 +0100, Vincent Lefevre wrote:

> The machine no longer exists, but on another one, I've just changed the
> x-terminal-emulator alternative from /usr/bin/xfce4-terminal.wrapper to
> /usr/bin/uxterm, and I also get a dangling symlink.
> 
> ay:~> ll /usr/share/man/man1/x-terminal-emulator.1.gz
> lrwxrwxrwx 1 root root 42 2003-07-18 22:14:13 
> /usr/share/man/man1/x-terminal-emulator.1.gz -> 
> /etc/alternatives/x-terminal-emulator.1.gz
> ay:~> ll /etc/alternatives/x-terminal-emulator.1.gz
> ls: /etc/alternatives/x-terminal-emulator.1.gz: No such file or directory
> 
ok, so when different alternatives for the same command have different
slaves, update-alternatives seems to badly handle the situation. In this
case, it doesn't change the link from
/usr/share/man/man1/x-terminal-emulator.1.gz to /etc/alternatives, only
the link in /etc/alternatives to /usr/share/man/man1/whatever-term.1.gz.

The solution for this is probably to have the same slave as other
terminal emulators (revert to x-terminal-emulator.1.gz), and somehow
handle the upgrade from previous versions of xterm, if necessary.
I'll try to implement and test this for the next xterm upload.

Thanks,
Julien


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#349462: xterm: wrong update-alternatives man page x-terminal-emulator.1.gz

2006-11-07 Thread Julien Cristau
On Mon, Jan 23, 2006 at 08:37:32 +0100, Vincent Lefevre wrote:

> Package: xterm
> Version: 208-3.1
> Severity: normal
> 
> I get the following error:
> 
> dixsept:~> man x-terminal-emulator
> man: warning: /usr/share/man/man1/x-terminal-emulator.1.gz is a dangling 
> symlink

Hi,

I tried to reproduce this by upgrading xterm from sarge to etch and
didn't get any dangling symlink.  I tried an upgrade with xterm as the
only x-terminal-emulator package installed, as well as with xterm and
rxvt, and I also tried setting the link to uxterm manually before the
upgrade.  This choice seems to be lost on upgrade (probably due to the
path change for *xterm), but I got no dangling symlink.
I'd appreciate your help in trying to understand how things went wrong
for you, and if it's still possible for them to go wrong in case of a
sarge->etch upgrade.

Thanks,
Julien


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#349462: xterm: wrong update-alternatives man page x-terminal-emulator.1.gz

2006-05-09 Thread Vincent Lefevre
On 2006-01-23 08:37:32 +0100, Vincent Lefevre wrote:
> I get the following error:
> 
> dixsept:~> man x-terminal-emulator
> man: warning: /usr/share/man/man1/x-terminal-emulator.1.gz is a dangling 
> symlink
> No manual entry for x-terminal-emulator

The problem is still there in xterm 210-3.

dixsept:~> ls -l /usr/share/man/man1/x-terminal-emulator.1.gz
lrwxr-xr-x 1 root root 42 2004-11-19 19:12:18 
/usr/share/man/man1/x-terminal-emulator.1.gz -> 
/etc/alternatives/x-terminal-emulator.1.gz
dixsept:~> ls -l /etc/alternatives/x-terminal-emulator.*
lrwxrwxrwx 1 root root 32 2006-01-17 16:48:55 
/etc/alternatives/x-terminal-emulator.1x.gz -> /usr/share/man/man1/uxterm.1x.gz

-- 
Vincent Lefèvre <[EMAIL PROTECTED]> - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / SPACES project at LORIA


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]