Skip to content

[6.42] [CMake] Always patch the builtins starting from the pristine sources - #24046

Open
root-project-bot wants to merge 1 commit into
root-project:v6-42-00-patchesfrom
root-project-bot:BP_6.42_pull_24016
Open

root-project-bot wants to merge 1 commit into
root-project:v6-42-00-patchesfrom
root-project-bot:BP_6.42_pull_24016

Conversation

@root-project-bot

Copy link
Copy Markdown

Backport of #24016, requested by @guitargeek.

ExternalProject re-runs the patch step not only after a new download, but
also when the patch command changes, and then on the already patched tree.
Since 0db7792 changed the unuran patch command, this breaks the
incremental opensuse CI build. The configure-time checks of the other
builtins with patches fail the other way around: after a new download, they
skip the patches.

Add ROOT_BUILTIN_PATCH_COMMAND, whose patch step commits the pristine
sources to a git repository in the source directory and resets to them
before applying the patches, so it can always run. Trees patched by the old
commands are handled by undoing their patches first, or, if that fails, by
downloading the sources again. Use it for all builtins with patches.

🤖 Done with the help of AI

(cherry picked from commit 5122f94)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants