Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 635540 - sys-apps/portage: || ( foo <bar-10 ) downgrades bar by default
Summary: sys-apps/portage: || ( foo <bar-10 ) downgrades bar by default
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Portage team
Keywords: InVCS
Depends on:
Blocks: 155723 glibc-2.26 637452
  Show dependency tree
Reported: 2017-10-26 22:07 UTC by Zac Medico
Modified: 2018-02-01 23:59 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Zac Medico gentoo-dev 2017-10-26 22:07:17 UTC
When solving cases like || ( foo <bar-10 ), generally it's better to pull in foo rather than downgrade bar. Currently, emerge tends to downgrade bar.
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2017-11-01 22:33:57 UTC
|| ( sys-libs/glibc[rpc(-)]  net-libs/libtirpc ) 

^ the same happens here if the currently installed glibc has no rpc useflag... it also prefers downgrading glibc (impossible) to pulling in libtirpc
Comment 3 Larry the Git Cow gentoo-dev 2017-11-02 19:44:31 UTC
The bug has been referenced in the following commit(s):

commit 7c58e37376166b787abae4713c398feee8abf902
Author:     Zac Medico <>
AuthorDate: 2017-11-02 08:29:11 +0000
Commit:     Zac Medico <>
CommitDate: 2017-11-02 19:41:56 +0000

    dep_zapdeps: install new package, avoid downgrade (bug 635540)
    Prefer to install a new package rather than to downgrade an
    installed package. If the installed package should be
    downgraded due to it being masked, then allow the downgrade.
    Acked-by: Brian Dolbec <>

 pym/portage/dep/                       | 11 ++-
 .../tests/resolver/  | 97 ++++++++++++++++++++++
 2 files changed, 107 insertions(+), 1 deletion(-)}