Skip to content

depgraph: Do not trigger rebuilds for some options#1310

Draft
zmedico wants to merge 1 commit intogentoo:masterfrom
zmedico:bug_927301_depgraph_do_not_trigger_rebuilds_for_no_merge_opts
Draft

depgraph: Do not trigger rebuilds for some options#1310
zmedico wants to merge 1 commit intogentoo:masterfrom
zmedico:bug_927301_depgraph_do_not_trigger_rebuilds_for_no_merge_opts

Conversation

@zmedico
Copy link
Copy Markdown
Member

@zmedico zmedico commented Mar 20, 2024

Do not trigger rebuilds for options which do not merge packages like --buildpkgonly, --fetchonly, and --fetch-all-uri.

Bug: https://bugs.gentoo.org/927301

@zmedico zmedico requested review from mgorny and thesamesam March 20, 2024 04:04
@mgorny
Copy link
Copy Markdown
Member

mgorny commented Mar 20, 2024

Still happens with the patch applied on top of 3.0.63.

@mgorny
Copy link
Copy Markdown
Member

mgorny commented Mar 20, 2024

Still happens with the patch applied on top of 3.0.63.

Though the conditions seem to work. I guess some other code needs to be disabled as well.

Comment thread lib/_emerge/depgraph.py
if self._dynamic_config._allow_backtracking and not any(
opt in self._frozen_config.myopts for opt in _NO_MERGE_OPTS
):
self._slot_operator_trigger_reinstalls()
Copy link
Copy Markdown
Member Author

@zmedico zmedico Mar 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like --buildpkgonly needs to be in a class of its own here, since --fetch* should behave mostly like regular build commands in order to avoid prevent discrepancies in behavior (like the slot conflicts in https://bugs.gentoo.org/161422 though those would exist without --fetchonly you get the idea).

@zmedico zmedico marked this pull request as draft March 20, 2024 14:45
Do not trigger rebuilds for options which do not merge packages
like --buildpkgonly, --fetchonly, and --fetch-all-uri.

Bug: https://bugs.gentoo.org/927301
Signed-off-by: Zac Medico <zmedico@gentoo.org>
@zmedico zmedico force-pushed the bug_927301_depgraph_do_not_trigger_rebuilds_for_no_merge_opts branch from 3b2b59d to 2a257bd Compare November 9, 2025 04:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants