Package: ccontrol Version: 0.9.1+20060806-4 Severity: important Tags: patch
The ccontrol package includes a number of symlinks (for example on my x86 machine): --- lrwxrwxrwx 1 root root 18 2007-10-24 11:34 c++ -> ../../bin/ccontrol lrwxrwxrwx 1 root root 18 2007-10-24 11:34 cc -> ../../bin/ccontrol lrwxrwxrwx 1 root root 18 2007-10-24 11:34 g++ -> ../../bin/ccontrol lrwxrwxrwx 1 root root 18 2007-10-24 11:34 g++-2.95 -> ../../bin/ccontrol lrwxrwxrwx 1 root root 18 2007-10-24 11:34 g++-3.3 -> ../../bin/ccontrol lrwxrwxrwx 1 root root 18 2007-10-24 11:34 g++-3.4 -> ../../bin/ccontrol lrwxrwxrwx 1 root root 18 2007-10-24 11:34 g++-4.1 -> ../../bin/ccontrol lrwxrwxrwx 1 root root 18 2007-10-24 11:34 g++-4.2 -> ../../bin/ccontrol lrwxrwxrwx 1 root root 18 2007-10-24 11:34 gcc -> ../../bin/ccontrol lrwxrwxrwx 1 root root 18 2007-10-24 11:34 gcc-2.95 -> ../../bin/ccontrol lrwxrwxrwx 1 root root 18 2007-10-24 11:34 gcc-3.3 -> ../../bin/ccontrol lrwxrwxrwx 1 root root 18 2007-10-24 11:34 gcc-3.4 -> ../../bin/ccontrol lrwxrwxrwx 1 root root 18 2007-10-24 11:34 gcc-4.1 -> ../../bin/ccontrol lrwxrwxrwx 1 root root 18 2007-10-24 11:34 gcc-4.2 -> ../../bin/ccontrol lrwxrwxrwx 1 root root 18 2007-10-24 11:34 i486-linux-gnu-g++ -> ../../bin/ccontrol lrwxrwxrwx 1 root root 18 2007-10-24 11:34 i486-linux-gnu-g++-2.95 -> ../../bin/ccontrol lrwxrwxrwx 1 root root 18 2007-10-24 11:34 i486-linux-gnu-g++-3.3 -> ../../bin/ccontrol lrwxrwxrwx 1 root root 18 2007-10-24 11:34 i486-linux-gnu-g++-3.4 -> ../../bin/ccontrol lrwxrwxrwx 1 root root 18 2007-10-24 11:34 i486-linux-gnu-g++-4.1 -> ../../bin/ccontrol lrwxrwxrwx 1 root root 18 2007-10-24 11:34 i486-linux-gnu-g++-4.2 -> ../../bin/ccontrol lrwxrwxrwx 1 root root 18 2007-10-24 11:34 i486-linux-gnu-gcc -> ../../bin/ccontrol lrwxrwxrwx 1 root root 18 2007-10-24 11:34 i486-linux-gnu-gcc-2.95 -> ../../bin/ccontrol lrwxrwxrwx 1 root root 18 2007-10-24 11:34 i486-linux-gnu-gcc-3.3 -> ../../bin/ccontrol lrwxrwxrwx 1 root root 18 2007-10-24 11:34 i486-linux-gnu-gcc-3.4 -> ../../bin/ccontrol lrwxrwxrwx 1 root root 18 2007-10-24 11:34 i486-linux-gnu-gcc-4.1 -> ../../bin/ccontrol lrwxrwxrwx 1 root root 18 2007-10-24 11:34 i486-linux-gnu-gcc-4.2 -> ../../bin/ccontrol lrwxrwxrwx 1 root root 18 2007-10-24 11:34 ld -> ../../bin/ccontrol lrwxrwxrwx 1 root root 18 2007-10-24 11:34 make -> ../../bin/ccontrol --- With these symlinks installed and ccontrol in your path running gcc-4.2, may NOT give you version 4.2 of the compiler. --- [EMAIL PROTECTED]:~$ which gcc-4.2 /usr/lib/ccontrol/gcc-4.2 [EMAIL PROTECTED]:~$ gcc-4.2 --version i386-linux-gcc-4.0 (GCC) 4.0.4 20060904 (prerelease) (Debian 4.0.3-7) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --- This is due the the design and implementation of ccontrol. A resonable amount of work would need to be done to ccontrol to make this work as explected. In the mean time I request that these symlinks are removed from the package. I have included a stab at a patch to do this. --- ccontrol-0.9.1+20060806/debian/rules 2007-10-24 11:33:45.000000000 +1000 +++ ccontrol-0.9.1+20060806.local/debian/rules 2007-10-24 11:46:32.000000000 +1000 @@ -78,17 +78,6 @@ # This sed script is idempotent sed -i -e 's,\([^^]\)\.sp,\1\n.sp,' `find debian/*/usr/share/man -name '*.[123456789]'` - # Massive compiler linkage copied almost verbatim from ccache packaging, - # Copyright 2002 Paul Russell <[EMAIL PROTECTED]> - ln -s ../../bin/ccontrol $(CURDIR)/debian/ccontrol/usr/lib/ccontrol/$(DEB_HOST_GNU_TYPE)-gcc - ln -s ../../bin/ccontrol $(CURDIR)/debian/ccontrol/usr/lib/ccontrol/$(DEB_HOST_GNU_TYPE)-g++ - set -e; for ver in 2.95 3.3 3.4 4.1 4.2; do \ - ln -s ../../bin/ccontrol $(CURDIR)/debian/ccontrol/usr/lib/ccontrol/$(DEB_HOST_GNU_TYPE)-gcc-$$ver; \ - ln -s ../../bin/ccontrol $(CURDIR)/debian/ccontrol/usr/lib/ccontrol/gcc-$$ver; \ - ln -s ../../bin/ccontrol $(CURDIR)/debian/ccontrol/usr/lib/ccontrol/$(DEB_HOST_GNU_TYPE)-g++-$$ver; \ - ln -s ../../bin/ccontrol $(CURDIR)/debian/ccontrol/usr/lib/ccontrol/g++-$$ver; \ - done - # Build architecture-independent files here. binary-indep: build install -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.23-rc8 (SMP w/1 CPU core) Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages ccontrol depends on: ii binutils 2.18-1 The GNU assembler, linker and bina ii ccache 2.4-10 Compiler results cacher, for fast ii gcc 4:4.2.1-6 The GNU C compiler ii make 3.81-3 The GNU version of the "make" util ii python 2.4.4-6 An interactive high-level object-o ccontrol recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]