Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 499370 - Portage keeps installed non-world packages when USE dependencies are no longer satisfied
Summary: Portage keeps installed non-world packages when USE dependencies are no longe...
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Dependencies (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-26 18:24 UTC by Michał Górny
Modified: 2016-12-17 22:05 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 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-01-26 18:24:42 UTC
For example, games-board/pysolfc requires python[tk].

I can do something like this:

1. USE=tk emerge -1v python

2. emerge -1v pysolfc

3. USE=-tk emerge -1v python

Since no @world package requires python[tk], portage happily rebuilds python without tk support. However, this means that pysolfc is now broken.

Portage should either:

1. prevent changing USE flags if that breaks any @installed package,

2. automatically unmerge (as blockers) packages that are no longer satisfied after the change.
Comment 1 Zac Medico gentoo-dev 2016-12-17 22:05:58 UTC
This is one of the reasons that emerge suggests to run --depclean after deep @world updates:

https://gitweb.gentoo.org/proj/portage.git/commit/?id=550795df709cfa9ec4a9502a4ad835319f778e95