Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 621324 - group multiple slots on --depclean
Summary: group multiple slots on --depclean
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-09 17:29 UTC by Bodo Thiesen
Modified: 2017-06-10 20:43 UTC (History)
1 user (show)

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 Bodo Thiesen 2017-06-09 17:29:36 UTC
I'm going to depclean and while going over the list, I see things like this:

 sys-devel/automake
    selected: 1.9.6-r3 
   protected: none 
     omitted: 1.11.6-r1 1.15-r2 

 sys-devel/automake
    selected: 1.10.3 
   protected: none 
     omitted: 1.11.6-r1 1.15-r2 

 sys-devel/automake
    selected: 1.12.6 
   protected: none 
     omitted: 1.11.6-r1 1.15-r2 

 sys-devel/automake
    selected: 1.13.4 
   protected: none 
     omitted: 1.11.6-r1 1.15-r2 

 sys-devel/automake
    selected: 1.14.1 
   protected: none 
     omitted: 1.11.6-r1 1.15-r2 

For all slots, that will remain installed, only one line "omitted" is printed listing all version, but for all version to be unmerged, the group will be repeated. I'd like to see this collapsed into one group like so:

 sys-devel/automake
    selected: 1.9.6-r3 1.10.3 1.12.6 1.13.4 1.14.1 
   protected: none 
     omitted: 1.11.6-r1 1.15-r2 


Reproducible: Always
Comment 1 Zac Medico gentoo-dev 2017-06-09 20:45:39 UTC
The thing is, the list is ordered based on dependencies, so your desired output could conflict with the ordering constraint.
Comment 2 Bodo Thiesen 2017-06-10 20:43:01 UTC
Ok, so, question: Does ordering matter at all? (It doesn't to me, up to now I didn't even know there is an intended ordering at all.)

And even if it does: At least if dep order wouldn't conflict (like in the easy cases of multiple slots of the same package following immediatelly on each other), the collapsing should be done.