Gentoo Archives: gentoo-user

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

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] How to get rid of old gcc? Jarry <mr.jarry@×××××.com>