Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

depgraph: Do not trigger rebuilds for some options #1310

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zmedico
Copy link
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

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 <[email protected]>
@mgorny
Copy link
Member

mgorny commented Mar 20, 2024

Still happens with the patch applied on top of 3.0.63.

@mgorny
Copy link
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.

if self._dynamic_config._allow_backtracking:
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
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
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