Skip to content

Commit 5de6868

Browse files
committed
patch: change fuzz setting default from 2 to a safer 0
Patches can be incorrectly applied (duplicated patching), or no longer have correct meaning, if they are applied with fuzz. To prevent such conditions from happening, change the fuzz setting default to a safer value of 0. This also matches the behaviour of dpkg [1]. This will cause some packages to fail to build, the mitigation strategies are: * rebase and regenerate patches with clean and up to date context * add "with: fuzz: 2" argument to the patches pipeline [1] https://salsa.debian.org/dpkg-team/dpkg/-/blob/main/scripts/Dpkg/Source/Quilt.pm?ref_type=heads#L188
1 parent 31783c2 commit 5de6868

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/build/pipelines/patch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ inputs:
1313
fuzz:
1414
description: |
1515
Sets the maximum fuzz factor. This option only applies to context diffs, and causes patch to ignore up to that many lines in looking for places to install a hunk.
16-
default: 2
16+
default: 0
1717

1818
patches:
1919
description: |

0 commit comments

Comments
 (0)