Re: man-db's cron warns about dangling symlink

2007-09-03 Thread Michael Banck
Hi,

On Sun, Aug 05, 2007 at 12:57:38AM +0200, Samuel Thibault wrote:
 The bug is that although the mpich-bin package uses
 update-alternatives --install on postinst for all these files, it uses
 update-alternatives --remove only on /usr/lib/mpich/bin/mpirun, leaving
 a bunch of dangling symlinks...
 
 The reason why I'm mailing debian-devel is that I've seen this behavior
 quite often in the past, in various packages.  I hence guess there
 should be some automatic way to check that a package correctly removes
 the alternatives it provides.

Sounds like an issue lintian could catch, so I suggest filing a wishlist
bug on lintian for that, if there is none already.


thanks,

Michael


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



Re: man-db's cron warns about dangling symlink

2007-09-03 Thread Lars Wirzenius
ma, 2007-09-03 kello 16:04 +0200, Michael Banck kirjoitti:
 On Sun, Aug 05, 2007 at 12:57:38AM +0200, Samuel Thibault wrote:
  The bug is that although the mpich-bin package uses
  update-alternatives --install on postinst for all these files, it uses
  update-alternatives --remove only on /usr/lib/mpich/bin/mpirun, leaving
  a bunch of dangling symlinks...
  
  The reason why I'm mailing debian-devel is that I've seen this behavior
  quite often in the past, in various packages.  I hence guess there
  should be some automatic way to check that a package correctly removes
  the alternatives it provides.
 
 Sounds like an issue lintian could catch, so I suggest filing a wishlist
 bug on lintian for that, if there is none already.

FWIW, piuparts should be able to detect that.

-- 
Never underestimate the power of a small tactical Lisp interpreter.


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



Re: man-db's cron warns about dangling symlink

2007-09-03 Thread Russ Allbery
Michael Banck [EMAIL PROTECTED] writes:
 On Sun, Aug 05, 2007 at 12:57:38AM +0200, Samuel Thibault wrote:

 The bug is that although the mpich-bin package uses
 update-alternatives --install on postinst for all these files, it uses
 update-alternatives --remove only on /usr/lib/mpich/bin/mpirun, leaving
 a bunch of dangling symlinks...

 The reason why I'm mailing debian-devel is that I've seen this behavior
 quite often in the past, in various packages.  I hence guess there
 should be some automatic way to check that a package correctly removes
 the alternatives it provides.

 Sounds like an issue lintian could catch, so I suggest filing a wishlist
 bug on lintian for that, if there is none already.

There is none about this in particular, but #53490 (second-oldest bug
against lintian) is similar.  Both require parsing the command-line
arguments of update-alternatives, which is why it's not been done before
now.  Patches welcome.

-- 
Russ Allbery ([EMAIL PROTECTED])   http://www.eyrie.org/~eagle/


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