[gentoo-user] How to get rid of old gcc?

2013-01-10 Thread Jarry

Hi Gentoo users,

I just updated gcc from 4.5.4 to 4.6.3, switched compiler
version, rebuilt libtool, but emerge --depclean still
does not want to remove old gcc. equery list gcc shows
both are still installed:

[IP-] [  ] sys-devel/gcc-4.5.4:4.5
[IP-] [  ] sys-devel/gcc-4.6.3:4.6

So how can I now remove the old gcc?  I checked again
Gentoo GCC Upgrade Guide, but did not find a single
word about it...

Jarry
--
___
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.



Re: [gentoo-user] How to get rid of old gcc?

2013-01-10 Thread Paul Hartman
On Thu, Jan 10, 2013 at 10:59 AM, Jarry mr.ja...@gmail.com wrote:
 Hi Gentoo users,

 I just updated gcc from 4.5.4 to 4.6.3, switched compiler
 version, rebuilt libtool, but emerge --depclean still
 does not want to remove old gcc. equery list gcc shows
 both are still installed:

 [IP-] [  ] sys-devel/gcc-4.5.4:4.5
 [IP-] [  ] sys-devel/gcc-4.6.3:4.6

 So how can I now remove the old gcc?  I checked again
 Gentoo GCC Upgrade Guide, but did not find a single
 word about it...

If they are in slots, the newer version won't necessarily obsolete the
older version.

You can use emerge --depclean -p -v gcc:4.5 to view any remaining
dependencies on that slotted version.

You can use emerge -C gcc:4.5 to remove only that slot's version of gcc.



Re: [gentoo-user] How to get rid of old gcc?

2013-01-10 Thread Florian Philipp
Am 10.01.2013 19:06, schrieb Paul Hartman:
 On Thu, Jan 10, 2013 at 10:59 AM, Jarry mr.ja...@gmail.com wrote:
 Hi Gentoo users,

 I just updated gcc from 4.5.4 to 4.6.3, switched compiler
 version, rebuilt libtool, but emerge --depclean still
 does not want to remove old gcc. equery list gcc shows
 both are still installed:

 [IP-] [  ] sys-devel/gcc-4.5.4:4.5
 [IP-] [  ] sys-devel/gcc-4.6.3:4.6

 So how can I now remove the old gcc?  I checked again
 Gentoo GCC Upgrade Guide, but did not find a single
 word about it...
 
 If they are in slots, the newer version won't necessarily obsolete the
 older version.
 
 You can use emerge --depclean -p -v gcc:4.5 to view any remaining
 dependencies on that slotted version.
 
 You can use emerge -C gcc:4.5 to remove only that slot's version of gcc.
 

Even better:
emerge -av --depclean gcc:4.5

This will unmerge the gcc slot if and only if there is no dependency.

My guess is you have sys-devel/gcc:4.5 in your world file and not just
sys-devel/gcc and that's the reason why depclean won't clean it up.

Regards,
Florian Philipp



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] How to get rid of old gcc?

2013-01-10 Thread Jarry

On 10-Jan-13 19:21, Florian Philipp wrote:

Am 10.01.2013 19:06, schrieb Paul Hartman:

On Thu, Jan 10, 2013 at 10:59 AM, Jarry mr.ja...@gmail.com wrote:


I just updated gcc from 4.5.4 to 4.6.3, switched compiler
version, rebuilt libtool, but emerge --depclean still
does not want to remove old gcc. equery list gcc shows
both are still installed:
[IP-] [  ] sys-devel/gcc-4.5.4:4.5
[IP-] [  ] sys-devel/gcc-4.6.3:4.6


If they are in slots, the newer version won't necessarily obsolete the
older version.

You can use emerge --depclean -p -v gcc:4.5 to view any remaining
dependencies on that slotted version.

You can use emerge -C gcc:4.5 to remove only that slot's version of gcc.


Even better:
emerge -av --depclean gcc:4.5

This will unmerge the gcc slot if and only if there is no dependency.

My guess is you have sys-devel/gcc:4.5 in your world file and not just
sys-devel/gcc and that's the reason why depclean won't clean it up.


Well, I have *both* sys-devel/gcc *and* sys-devel/gcc:4.5 in
/var/lib/portage/world, but how did this happen? I have never
put it there! I did not install gcc, I think it came as part
of stage3 (system), so why is it suddenly in my world-file?

Jarry
--
___
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.



Re: [gentoo-user] How to get rid of old gcc?

2013-01-10 Thread Florian Philipp
Am 10.01.2013 19:39, schrieb Jarry:
 On 10-Jan-13 19:21, Florian Philipp wrote:
 Am 10.01.2013 19:06, schrieb Paul Hartman:
 On Thu, Jan 10, 2013 at 10:59 AM, Jarry mr.ja...@gmail.com wrote:

 I just updated gcc from 4.5.4 to 4.6.3, switched compiler
 version, rebuilt libtool, but emerge --depclean still
 does not want to remove old gcc. equery list gcc shows
 both are still installed:
 [IP-] [  ] sys-devel/gcc-4.5.4:4.5
 [IP-] [  ] sys-devel/gcc-4.6.3:4.6

 If they are in slots, the newer version won't necessarily obsolete the
 older version.

 You can use emerge --depclean -p -v gcc:4.5 to view any remaining
 dependencies on that slotted version.

 You can use emerge -C gcc:4.5 to remove only that slot's version of
 gcc.

 Even better:
 emerge -av --depclean gcc:4.5

 This will unmerge the gcc slot if and only if there is no dependency.

 My guess is you have sys-devel/gcc:4.5 in your world file and not just
 sys-devel/gcc and that's the reason why depclean won't clean it up.
 
 Well, I have *both* sys-devel/gcc *and* sys-devel/gcc:4.5 in
 /var/lib/portage/world, but how did this happen? I have never
 put it there! I did not install gcc, I think it came as part
 of stage3 (system), so why is it suddenly in my world-file?
 
 Jarry

The only thing that comes to mind is that you once did something like
`emerge -avu gcc:4.5`. The behavior of -u/--update changed some time ago
so that it now adds packages to world if -1/--oneshot is not specified.

Regards,
Florian Philipp




signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] How to get rid of old gcc?

2013-01-10 Thread Jarry

On 10-Jan-13 19:54, Florian Philipp wrote:

Am 10.01.2013 19:39, schrieb Jarry:

On 10-Jan-13 19:21, Florian Philipp wrote:

Am 10.01.2013 19:06, schrieb Paul Hartman:

On Thu, Jan 10, 2013 at 10:59 AM, Jarry mr.ja...@gmail.com wrote:


I just updated gcc from 4.5.4 to 4.6.3, switched compiler
version, rebuilt libtool, but emerge --depclean still
does not want to remove old gcc. equery list gcc shows
both are still installed:
[IP-] [  ] sys-devel/gcc-4.5.4:4.5
[IP-] [  ] sys-devel/gcc-4.6.3:4.6


If they are in slots, the newer version won't necessarily obsolete the
older version.

You can use emerge --depclean -p -v gcc:4.5 to view any remaining
dependencies on that slotted version.

You can use emerge -C gcc:4.5 to remove only that slot's version of
gcc.


Even better:
emerge -av --depclean gcc:4.5

This will unmerge the gcc slot if and only if there is no dependency.

My guess is you have sys-devel/gcc:4.5 in your world file and not just
sys-devel/gcc and that's the reason why depclean won't clean it up.


Well, I have *both* sys-devel/gcc *and* sys-devel/gcc:4.5 in
/var/lib/portage/world, but how did this happen? I have never
put it there! I did not install gcc, I think it came as part
of stage3 (system), so why is it suddenly in my world-file?


The only thing that comes to mind is that you once did something like
`emerge -avu gcc:4.5`. The behavior of -u/--update changed some time ago
so that it now adds packages to world if -1/--oneshot is not specified.


Maybe time to update Gentoo GCC Upgrade Guide. There is nothing
about this. I just followed it and did only emerge -u gcc...

Anyway my problem is now solved. Thanks to all who replied.

Jarry

--
___
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.