Open nanonyme opened 2 years ago
I've seen this when patch application wants to go interactive:
patching file deps/wxWidgets/wxWidgets.cmake
Reversed (or previously applied) patch detected! Assume -R? [n]
I guess passing -f
is one way to make patch never ask questions.
Wouldn't there be silent failures in such case? -f
is to force the patch even if it looks wrong which is opposite of what we need - always fail immediately.
Would it work to give /dev/null as stdin to patch to make it not ask for input?
This suggests -f
will exit with non-zero code when patching wrong file. I'm not sure about:
Assume that the user knows exactly what he or she is doing, and do not ask any questions. Skip patches whose headers do not say which file is to be patched; patch files even though they have the wrong version for the Prereq: line in the patch; and assume that patches are not reversed even if they look like they are. This option does not suppress commentary; use -s for that.
Checklist
flatpak-builder version
1.2.0
Flatpak version
1.12.2
How to reproduce
Spotted on Flathub builder
https://flathub.org/builds/#/builders/8/builds/8829
Expected Behavior
flatpak-builder aborts build, cleans up and exits with failure code
Actual Behavior
flatpak-builder hangs
Additional Information
No response