Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
--depclean wants to remove ... gcc !
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
el muchacho
Tux's lil' helper
Tux's lil' helper


Joined: 26 Mar 2015
Posts: 77

PostPosted: Mon Oct 05, 2015 8:53 am    Post subject: --depclean wants to remove ... gcc ! Reply with quote

Curiously, recently my Gentoo started wanting to unmerge gcc when running a --depclean...

How can Portage want to remove such a key package without which it wouldn't be able anymore to merge any new package ??
Back to top
View user's profile Send private message
xaviermiller
Administrator
Administrator


Joined: 23 Jul 2004
Posts: 7972
Location: ~Brussels - Belgique

PostPosted: Mon Oct 05, 2015 9:10 am    Post subject: Reply with quote

Hi,

Can you provide us the output of emerge --depclean?
Do you have more than one version of gcc?
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
el muchacho
Tux's lil' helper
Tux's lil' helper


Joined: 26 Mar 2015
Posts: 77

PostPosted: Mon Oct 05, 2015 12:24 pm    Post subject: Reply with quote

Hello, here it is:

Code:

Calculating dependencies... done!
>>> Calculating removal order...

>>> These are the packages that would be unmerged:

 sys-devel/gcc
    selected: 4.8.5
   protected: none
     omitted: 4.9.3

All selected packages: =sys-devel/gcc-4.8.5

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

Would you like to unmerge these packages? [Yes/No]


Quote:
~ $ gcc --version
gcc (Gentoo Hardened 4.8.5 p1.3, pie-0.6.2) 4.8.5
Copyright (C) 2015 Free Software Foundation, Inc.
Back to top
View user's profile Send private message
genoobish
n00b
n00b


Joined: 18 Feb 2015
Posts: 73

PostPosted: Mon Oct 05, 2015 1:06 pm    Post subject: Reply with quote

Code:

omitted: 4.9.3


omitted means it is not going to be removed. so You have an old version being removed, and the newest version will be kept (omitted).

edit: perhaps the use of "packages" instead of "package" consfued you... so maybe you were tricked by a spelling bug. :?
Back to top
View user's profile Send private message
el muchacho
Tux's lil' helper
Tux's lil' helper


Joined: 26 Mar 2015
Posts: 77

PostPosted: Mon Oct 05, 2015 1:17 pm    Post subject: Reply with quote

Indeed, makes sense.

But that's a bit surprising, because when i upgrade whatever package, --depclean (which i often run) never asks me to delete older versions of packages which i upgraded.
Back to top
View user's profile Send private message
jfp
Apprentice
Apprentice


Joined: 08 Jul 2007
Posts: 279
Location: Virginia, USA

PostPosted: Mon Oct 05, 2015 2:25 pm    Post subject: Reply with quote

You can't just remove the older version of gcc. There are actually some steps you must follow before allowing --depclean to remove the older gcc version.
Those steps are detailed in the following link:
https://wiki.gentoo.org/wiki/Upgrading_GCC
Once you have completed the upgrade to the new gcc, as detailed above, you can go ahead and let depclean remove the older version.
_________________
jfp
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43198
Location: 56N 3W

PostPosted: Mon Oct 05, 2015 5:32 pm    Post subject: Reply with quote

el muchacho,

Having multiple versions of the same package installed depends a a technique that Gentoo calls Slotting.
Its only provided for a small number of packages, like the kernel and gcc. There are a few others.

In the majority of cases, updating removes the old version when the new one is installed.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Irre
Guru
Guru


Joined: 09 Nov 2013
Posts: 340
Location: Stockholm

PostPosted: Mon Oct 05, 2015 9:25 pm    Post subject: Reply with quote

I lost some hours (on a slow machine) when I did this emerge --depclean :?

I run a "genkernel" when the active compiler disappeared. It was a foolish mistake!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum