Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 245442 - sys-apps/portage-2.2_rc13: virtual in set prevents unmerging old version
Summary: sys-apps/portage-2.2_rc13: virtual in set prevents unmerging old version
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Dependencies (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 144480
  Show dependency tree
 
Reported: 2008-11-03 19:52 UTC by Thomas Arnett
Modified: 2011-05-12 20:04 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 Thomas Arnett 2008-11-03 19:52:45 UTC
@basic contains virtual/linux-sources, which resolves to sys-kernel/hardened-sources.  Two versions are installed, 2.6.25-r8 and -r9.  When calculating dependencies, Portage chooses the new version.

$ emerge -pq virtual/linux-sources
[ebuild   R   ] sys-kernel/hardened-sources-2.6.25-r9

But it won't remove the old one, even with the complete atom.

$ emerge -pq --prune
Not unmerging package sys-kernel/hardened-sources-2.6.25-r8 as it is
still referenced by the following package sets:
    basic

$ emerge -pqC =sys-kernel/hardened-sources-2.6.25-r8
Not unmerging package sys-kernel/hardened-sources-2.6.25-r8 as it is
still referenced by the following package sets:
    basic

If @basic contains sys-kernel/hardened-sources instead of the virtual, portage works as expected.

$ emerge -pq --prune
sys-kernel/hardened-sources: 2.6.25-r8 none 2.6.25-r9 

It also works with the virtual in @world.
Comment 1 Zac Medico gentoo-dev 2008-11-03 20:52:57 UTC
This is somewhat difficult to fix given the way that the set protection is currently implemented. It think what we should do is remove the --unmerge set protection as suggested in bug 243020, and rely on --depclean <atom> for this sort of functionality. I can add support in --depclean so that sets nested in the world are represented separately in the graph and in --verbose mode you'll be able to see which set(s) prevented a given package from being removed.
Comment 2 Zac Medico gentoo-dev 2011-05-12 20:04:25 UTC
I think we can consider this fixed by the fact that unmerge of packages referenced by sets has been allowed for some time now:

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=cdb5a4554b9c73c6d4f32d0f20cb4157b77b6e71