Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 686564 - depclean should check active gcc version before considering it is candidate for removal
Summary: depclean should check active gcc version before considering it is candidate f...
Status: RESOLVED DUPLICATE of bug 283587
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-22 17:22 UTC by David Carlos Manuelda
Modified: 2019-05-22 17:26 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Carlos Manuelda 2019-05-22 17:22:33 UTC
This is a nasty bug that if you don't realize in time might lead to system breakage or severe annoyances.

It might happen that you have more than 1 gcc version, in my current case for this example they are 8.3.0-r1 (active) and 9.1.0 (not active, for testing).

Once I do my corresponding updates, as usual I run emerge --depclean, and I got this time:

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

 sys-devel/gcc
    selected: 8.3.0-r1 
   protected: none 
     omitted: 9.1.0 

 sys-kernel/gentoo-sources
    selected: 5.1.3 
   protected: none 
     omitted: 5.1.4

Despite that it clearly says and ask user to study the list, I think such an issue should be checked by invoking `gcc-config -c` and removing active version automatically rather than rely on the user to double check for such an important package.

In my case, gcc-config -c gives:
x86_64-pc-linux-gnu-8.3.0

Reproducible: Always
Comment 1 Zac Medico gentoo-dev 2019-05-22 17:26:17 UTC

*** This bug has been marked as a duplicate of bug 283587 ***