Summary: | sys-apps/portage: automatically disable backtracking if autounmask changes are needed, and add --autounmask-backtrack=<y|n> option | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Zac Medico <zmedico> |
Component: | Core - Interface (emerge) | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bircoph, esigra, pacho |
Priority: | Normal | Keywords: | InVCS |
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
See Also: |
https://bugs.gentoo.org/show_bug.cgi?id=536926 https://bugs.gentoo.org/show_bug.cgi?id=598503 https://bugs.gentoo.org/show_bug.cgi?id=595224 https://bugs.gentoo.org/show_bug.cgi?id=540562 https://bugs.gentoo.org/show_bug.cgi?id=618228 https://bugs.gentoo.org/show_bug.cgi?id=687668 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 155723, 540562, 619102 |
Description
Zac Medico
2017-04-15 22:06:32 UTC
The --autounmask-continue option should imply --autounmask-backtrack=y, because otherwise users of --autounmask-continue will find that if fails where it once succeeded. In addition to autounmask config changes, other foreshadowers of backtracking failure include blockers and slot conflicts. However, it's often difficult to predict whether or not blockers and slot conflicts will ultimately be solved by backtracking, so we can't predict when user intervention will be necessary. For autounmask config changes, user intervention is always necessary, so we can change the default behavior without breaking anyone's automated emerge calls (but --autounmask-continue must imply --autounmask-backtrack=y for backward compatibility). I'm working on a patch in this branch: https://github.com/zmedico/portage/tree/bug_615680 Six of the existing cases fail unless --autounmask-backtrack=y is added to the options. It looks like the behavior can be improved for some of these without too much work, so I'm planning submit a series of patches to improve the behavior. After my improvements, at least some of the test cases should succeed without having to add --autounmask-backtrack=y to the options. Only 5 tests now required --autounmask-backtrack=y to succeed. The behavior seems acceptable for these cases when --autounmask-backtrack=y is not enabled. Before I submit the patch for review, I just need to update it to display a suggestion about --autounmask-backtrack=y when appropriate. Patch posted for review: https://archives.gentoo.org/gentoo-portage-dev/message/12b068cdecbf85209fcc5782b127907e https://github.com/gentoo/portage/pull/162 This is in the master branch: https://gitweb.gentoo.org/proj/portage.git/commit/?id=40505ceeadc769f4f01c66e52a19ce0bf2f59761 Fixed in portage-2.3.5. Actually this is in portage-2.3.6. Fixed in 2.3.6. |