Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 669154 - sys-apps/portage: disable backtracking for USE dependency conflicts, add emerge --use-conflict-backtrack=<y|n> option
Summary: sys-apps/portage: disable backtracking for USE dependency conflicts, add eme...
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Portage team
Depends on:
Blocks: 155723 667132
  Show dependency tree
Reported: 2018-10-20 23:59 UTC by Zac Medico
Modified: 2019-01-02 15:10 UTC (History)
3 users (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 2018-10-20 23:59:26 UTC
When a USE dependency conflict occurs, backtracking is risky, and if --autounmask is enabled then it can create spurious package.mask or keyword changes as reported in bug 667132.

I think a reasonable approach would be to disable backtracking by default when a USE dependency conflict is detected, and add a new --use-conflict-backtrack=<y|n> option which can be used to force it to continue backtracking (similar to the --autounmask-backtrack=<y|n> option). The documentation can advise people that if --use-conflict-backtrack=y is used with --autounmask, then the --autounmask-keep-masks=y and --autounmask-keep-keywords=y options are also recommended in order to prevent spurious package.mask and keywords adjustments.