Gentoo Archives: gentoo-user

From: Jarry <mr.jarry@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How to get rid of old gcc?
Date: Thu, 10 Jan 2013 19:39:09
Message-Id: 50EF183C.4050605@gmail.com
In Reply to: Re: [gentoo-user] How to get rid of old gcc? by Florian Philipp
1 On 10-Jan-13 19:54, Florian Philipp wrote:
2 > Am 10.01.2013 19:39, schrieb Jarry:
3 >> On 10-Jan-13 19:21, Florian Philipp wrote:
4 >>> Am 10.01.2013 19:06, schrieb Paul Hartman:
5 >>>> On Thu, Jan 10, 2013 at 10:59 AM, Jarry <mr.jarry@×××××.com> wrote:
6 >>>>>
7 >>>>> I just updated gcc from 4.5.4 to 4.6.3, switched compiler
8 >>>>> version, rebuilt libtool, but "emerge --depclean" still
9 >>>>> does not want to remove old gcc. "equery list gcc" shows
10 >>>>> both are still installed:
11 >>>>> [IP-] [ ] sys-devel/gcc-4.5.4:4.5
12 >>>>> [IP-] [ ] sys-devel/gcc-4.6.3:4.6
13 >>>>
14 >>>> If they are in slots, the newer version won't necessarily obsolete the
15 >>>> older version.
16 >>>>
17 >>>> You can use "emerge --depclean -p -v gcc:4.5" to view any remaining
18 >>>> dependencies on that slotted version.
19 >>>>
20 >>>> You can use "emerge -C gcc:4.5" to remove only that slot's version of
21 >>>> gcc.
22 >>>
23 >>> Even better:
24 >>> emerge -av --depclean gcc:4.5
25 >>>
26 >>> This will unmerge the gcc slot if and only if there is no dependency.
27 >>>
28 >>> My guess is you have sys-devel/gcc:4.5 in your world file and not just
29 >>> sys-devel/gcc and that's the reason why depclean won't clean it up.
30 >>
31 >> Well, I have *both* sys-devel/gcc *and* sys-devel/gcc:4.5 in
32 >> /var/lib/portage/world, but how did this happen? I have never
33 >> put it there! I did not install gcc, I think it came as part
34 >> of stage3 (system), so why is it suddenly in my world-file?
35 >
36 > The only thing that comes to mind is that you once did something like
37 > `emerge -avu gcc:4.5`. The behavior of -u/--update changed some time ago
38 > so that it now adds packages to world if -1/--oneshot is not specified.
39
40 Maybe time to update "Gentoo GCC Upgrade Guide". There is nothing
41 about this. I just followed it and did only "emerge -u gcc"...
42
43 Anyway my problem is now solved. Thanks to all who replied.
44
45 Jarry
46
47 --
48 _______________________________________________________________
49 This mailbox accepts e-mails only from selected mailing-lists!
50 Everything else is considered to be spam and therefore deleted.