Summary: | If all ebuilds are gone Portage doesn't consider installed stuff as providing a virtual | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Petteri Räty (RETIRED) <betelgeuse> |
Component: | Core - Dependencies | Assignee: | Portage team <dev-portage> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | daviebdawg, esigra, gizmo, jakub, stkabugs |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 252167 | ||
Bug Blocks: | 155723 | ||
Attachments: | emerge --debug output |
Description
Petteri Räty (RETIRED)
![]() Created attachment 116184 [details]
emerge --debug output
Hmmm, looks like another variant of Bug 173366; old- and new-style virtuals' handling is weird in the same way. (In reply to comment #2) > Hmmm, looks like another variant of Bug 173366; old- and new-style virtuals' > handling is weird in the same way. Yes, it's essentially the same situation. There should at least be a warning if different package is selected over an installed package due to lack of an ebuild or masking of an ebuild. *** Bug 173366 has been marked as a duplicate of this bug. *** *** Bug 195028 has been marked as a duplicate of this bug. *** There are actually two problem scenarios. One is pulling in a package you don't need when the virtual is already satisfied, and possibly linking to the wrong package. The second is actually failing out because all other dependencies are genuinely masked. I would give portage the benefit of the doubt on the first issue because it thinks it's found a workable solution and it just jumped the gun a bit on the decision, but in the second scenario it actually fails out when there is no real dependency problem. It's interesting also that it looks like the dependency installed doesn't need to be the same version as the ebuild to be considered met. For instance, I had "|| ( dev-lang/python-2.5 >=dev-python/pysqlite-2.3.4-r1 )" with pysqlite-2.3.4-r1 installed, and if I unmasked pysqlite-2.3.5, which did still have an ebuild but wasn't installed, portage didn't try to pull in pysqlite-2.3.5. Having 2.3.4-r1 installed but masked and 2.3.5 unmasked but not installed was enough. By way of a workaround, is there any way to make 'emerge -u --deep' work for everything else without giving in and installing the other dependency? (In reply to comment #6) > By way of a workaround, is there any way to make 'emerge -u --deep' work for > everything else without giving in and installing the other dependency? At the moment the best you can do is to put the unwanted package in /etc/portage/package.mask so that it will never be considered. *** Bug 206978 has been marked as a duplicate of this bug. *** This is in direct conflict with the behavior from bug 252167 which assumes that packages that don't have corresponding ebuilds are undesirable for some reason. So, we'll have to add an option to control this behavior to suite different people's tastes. |