From 1368ce2331cc0303ea59b35093875989d0d2bf8f Mon Sep 17 00:00:00 2001 From: Andrey Nechypurenko Date: Tue, 14 Dec 2021 13:55:10 +0100 Subject: [PATCH] support/scripts/: remove -E flag from patch call -E flag instructs patch to remove empty files. However, in some cases empty files are essential. If they are missing, build could be broken or other bad things can happen. Note that empty files are still removed when their headers are properly formattedo: timestamp set to 1970-01-01T00:00:00Z, destination set to /dev/null. Signed-off-by: Andrey Nechypurenko Signed-off-by: Yann E. MORIN --- support/scripts/apply-patches.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/scripts/apply-patches.sh b/support/scripts/apply-patches.sh index e5a2fdd09e..6da83f6826 100755 --- a/support/scripts/apply-patches.sh +++ b/support/scripts/apply-patches.sh @@ -114,7 +114,7 @@ function apply_patch { exit 1 fi echo "${path}/${patch}" >> ${builddir}/.applied_patches_list - ${uncomp} "${path}/$patch" | patch -g0 -p1 -E --no-backup-if-mismatch -d "${builddir}" -t -N $silent + ${uncomp} "${path}/$patch" | patch -g0 -p1 --no-backup-if-mismatch -d "${builddir}" -t -N $silent if [ $? != 0 ] ; then echo "Patch failed! Please fix ${patch}!" exit 1