Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 634092

Summary: sys-apps/portage: emerge --unmerge should respect --exclude
Product: Portage Development Reporter: Joakim Tjernlund <joakim.tjernlund>
Component: Core - Interface (emerge)Assignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: enhancement CC: esigra, fturco
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 322883    
Bug Blocks: 155723    

Description Joakim Tjernlund 2017-10-12 11:45:48 UTC
emerge -pC sys-kernel/vanilla-sources --exclude sys-kernel/vanilla-sources:4.9.53
 * This action can remove important packages! In order to be safer, use
 * `emerge -pv --depclean <atom>` to check for reverse dependencies before
 * removing packages.

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

 sys-kernel/vanilla-sources
    selected: 4.4.23 4.4.24 4.4.25 4.4.27 4.4.30 4.4.31 4.8.9 4.8.17 4.9.10 4.9.11 4.9.12 4.9.13 4.9.14 4.9.15 4.9.16 4.9.17 4.9.20 4.9.23 4.9.24 4.9.25 4.9.33 4.9.36 4.9.42 4.9.44 4.9.51 4.9.52 4.9.53 4.12.8 
   protected: none 
     omitted: none 

All selected packages: =sys-kernel/vanilla-sources-4.8.9 =sys-kernel/vanilla-sources-4.12.8 =sys-kernel/vanilla-sources-4.9.36 =sys-kernel/vanilla-sources-4.9.33 =sys-kernel/vanilla-sources-4.4.31 =sys-kernel/vanilla-sources-4.4.30 =sys-kernel/vanilla-sources-4.9.52 =sys-kernel/vanilla-sources-4.9.53 =sys-kernel/vanilla-sources-4.9.51 =sys-kernel/vanilla-sources-4.9.16 =sys-kernel/vanilla-sources-4.9.17 =sys-kernel/vanilla-sources-4.9.14 =sys-kernel/vanilla-sources-4.9.15 =sys-kernel/vanilla-sources-4.9.12 =sys-kernel/vanilla-sources-4.9.13 =sys-kernel/vanilla-sources-4.9.10 =sys-kernel/vanilla-sources-4.9.11 =sys-kernel/vanilla-sources-4.9.23 =sys-kernel/vanilla-sources-4.9.20 =sys-kernel/vanilla-sources-4.9.25 =sys-kernel/vanilla-sources-4.9.24 =sys-kernel/vanilla-sources-4.4.24 =sys-kernel/vanilla-sources-4.4.25 =sys-kernel/vanilla-sources-4.4.27 =sys-kernel/vanilla-sources-4.4.23 =sys-kernel/vanilla-sources-4.9.42 =sys-kernel/vanilla-sources-4.9.44 =sys-kernel/vanilla-sources-4.8.17

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

emerge still wants to remove 4.9.53
Comment 1 Joakim Tjernlund 2017-10-23 07:30:25 UTC
gentle ping
Comment 2 Zac Medico gentoo-dev 2017-10-23 07:40:24 UTC
Seems like a reasonable idea.
Comment 3 Joakim Tjernlund 2017-11-04 10:24:40 UTC
Gentle ping ;-)
Comment 4 Joakim Tjernlund 2017-12-29 16:38:10 UTC
ohh, today I need --exclude @system, like in

emerge -e @system 
emerge -e @world --exclude @system

Pretty please :)
Comment 5 Joakim Tjernlund 2018-01-18 18:48:22 UTC
ping?
Comment 6 Zac Medico gentoo-dev 2018-01-18 18:55:32 UTC
Still not implemented, but will be very easy to do.
Comment 7 Zac Medico gentoo-dev 2018-03-22 00:38:29 UTC
(In reply to Joakim Tjernlund from comment #4)
> ohh, today I need --exclude @system, like in
> 
> emerge -e @system 
> emerge -e @world --exclude @system

Please file a separate bug for each action. This bug is for --unmerge only. Adding support for --depclean would be a separate action, separate bug.
Comment 8 Zac Medico gentoo-dev 2018-03-22 00:56:06 UTC
The "emerge -e @world --exclude @system" thing from comment #4 can be considered as a command line set operator expression for an installation action, which could make use of the set operator expressions discussed in bug 322883.

The "emerge -pC sys-kernel/vanilla-sources --exclude sys-kernel/vanilla-sources:4.9.53" thing from comment #0 can be considered as a command line set operator expression for an unmerge action, which could also make use of the set operator expressions discussed in bug 322883.
Comment 9 Joakim Tjernlund 2018-03-22 01:13:10 UTC
(In reply to Zac Medico from comment #7)
> (In reply to Joakim Tjernlund from comment #4)
> > ohh, today I need --exclude @system, like in
> > 
> > emerge -e @system 
> > emerge -e @world --exclude @system
> 
> Please file a separate bug for each action. This bug is for --unmerge only.
> Adding support for --depclean would be a separate action, separate bug.

bug 
  https://bugs.gentoo.org/651130
and
  https://bugs.gentoo.org/651128
filed, thanks.