From 7b4119df5cbc0cc37348164a10c88a32910009d8 Mon Sep 17 00:00:00 2001 From: q66 Date: Fri, 5 Nov 2021 01:42:12 +0100 Subject: [PATCH] common/hooks/do-patch/00-patches: drop -l option 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. --- common/hooks/do-patch/00-patches.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/hooks/do-patch/00-patches.sh b/common/hooks/do-patch/00-patches.sh index f8ce2d37fee..9f7e21f017d 100644 --- a/common/hooks/do-patch/00-patches.sh +++ b/common/hooks/do-patch/00-patches.sh @@ -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() {