Skip to content

Commit

Permalink
common/hooks/do-patch/00-patches: drop -l option
Browse files Browse the repository at this point in the history
The -l option causes a looser behavior of patch(1), where patches
are applied when there is a match with no regard to leading
whitespace. This means that it is possible to get false positives:
for example, in srcpkgs/glu, there is a patch that was supposed
to be long gone (since the release already includes it) but it
was overlooked since with -l it happens to apply in a different
portion of the source (where it is wrong).

Avoid these cases.
  • Loading branch information
q66 committed Nov 5, 2021
1 parent 2fd366d commit 7b4119d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/hooks/do-patch/00-patches.sh
Expand Up @@ -31,7 +31,7 @@ _process_patch() {

cd "$wrksrc"
msg_normal "$pkgver: patching: ${_patch}.\n"
patch -sl ${_args} -i ${_patch} 2>/dev/null
patch -s ${_args} -i ${_patch} 2>/dev/null
}

hook() {
Expand Down

0 comments on commit 7b4119d

Please sign in to comment.