Summary: | sys-apps/portage: wrongly triggers REQUIRED_USE conflicts due to slot operator rebuilds when using --buildpkgonly | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Michał Górny <mgorny> |
Component: | Core - Dependencies | Assignee: | Portage team <dev-portage> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | zmedico |
Priority: | Normal | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://bugs.gentoo.org/show_bug.cgi?id=161422 https://github.com/gentoo/portage/pull/1310 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Michał Górny
2024-03-19 19:22:05 UTC
Seems like this should fix it: --- a/lib/_emerge/depgraph.py +++ b/lib/_emerge/depgraph.py @@ -1942,7 +1942,10 @@ class depgraph: for conflict in self._dynamic_config._package_tracker.slot_conflicts(): self._process_slot_conflict(conflict) - if self._dynamic_config._allow_backtracking: + if ( + self._dynamic_config._allow_backtracking + and "--buildpkgonly" not in self._frozen_config.myopts + ): self._slot_operator_trigger_reinstalls() def _process_slot_conflict(self, conflict): |