Bug#233836: gcc-3.3: dangling 'altertnatives' symlink
Package: gcc-3.3
Version: 1:3.3.2-4
Severity: normal
After upgrading from gcc 3.2.1 to 3.3, I get the following
email from cron:
--report /etc/cron.daily
/etc/cron.daily/man-db:
mandb: warning: /usr/share/man/man1/cc.1.gz is a dangling symlink
mandb: warning: /usr/share/man/man1/emacs.1.gz is a dangling symlink
Following the symlinks reveals:
dione:/# cd /etc/alternatives
dione:/etc/alternatives# ls -ld cc*
lrwxrwxrwx 1 root root 16 Feb 15 10:48 cc -> /usr/bin/gcc-3.2
lrwxrwxrwx 1 root root 32 Feb 15 10:48 cc.1.gz -> /usr/share/man/man1/gcc-3.2.1.gz
dione:/etc/alternatives# ls -ldL cc*
ls: cc: No such file or directory
ls: cc.1.gz: No such file or directory
Actually I guess from the above, that the problem was already there
following upgrade from an even earlier version.
I have only one version of gcc installed (I have older cpp, which is
prereq for other packages, which in turn depends on gcc-*-base), but
I have only one gcc:
dione:/etc/alternatives# dpkg -l | grep gcc
ii gcc 3.3.2-2 The GNU C compiler
ii gcc-3.2-base 3.2.3-9 The GNU Compiler Collection (base package)
ii gcc-3.3 3.3.2-4 The GNU C compiler
ii gcc-3.3-base 3.3.2-4 The GNU Compiler Collection (base package)
ii libgcc1 3.3.2-4 GCC support library
Shouldn't some post-install script be saying something like:
if (only one gcc installed)
default version = that single version
else
ask the user which to make the default
delete any existing 'alternative' symlinks for cc
create new ones pointing to just-determined default
If you need more info, please let me know!
Alexis
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux dione 2.4.16 #1 Sat Mar 9 19:04:14 CET 2002 i686
Locale: LANG=C, LC_CTYPE=C
Versions of packages gcc-3.3 depends on:
ii binutils 2.14.90.0.7-3 The GNU assembler, linker and bina
ii cpp-3.3 1:3.3.2-4 The GNU C preprocessor
ii gcc-3.3-base 1:3.3.2-4 The GNU Compiler Collection (base
ii libc6 2.3.2.ds1-10 GNU C Library: Shared libraries an
ii libgcc1 1:3.3.2-4 GCC support library
-- no debconf information
Reply to: