#80144 dpkg: overwrites "alternatives" symlinks without warning

Package:
dpkg
Source:
dpkg
Description:
Debian package management system
Submitter:
Joey Hess
Date:
2015-03-29 00:03:06 UTC
Severity:
normal
#80144#5
Date:
2000-12-20 21:10:03 UTC
From:
To:
As we have seen with the perl-5.6-base fiasco, update-alternatives and dpkg
don't get along as well as they should. If you read bug #(awaiting number),
I think that bug report illistrates at least two problems with dpkg and
update-alternatives:

1. If /usr/bin/foo is managed by update-alternatives, any package may
   include a /usr/bin/foo and dpkg will not notice it is an alternative,
   and will just overwrite the /usr/bin/foo symlink. Dpkg should, IMHO,
   add all alternatives to the file list (the one in builds in memory), and
   refuse to install the package containing /usr/bin/foo unless
   --force-overwrite is on. This would prevent people accidentially
   stabbing themselves in their backs as the perl maintainer did.
2. update-alternatives should not clobber /usr/bin/foo if /usr/bin/foo is
   not a symlink. That is pretty bad behavior in a number of ways I think.

#80144#14
Date:
2002-10-10 14:58:19 UTC
From:
To:
severity 25759 normal
merge 25759 80144
thanks

Both of these ask for better behavior when a package
contains a file of the same pathname as a generic name
in the alternatives system.