mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-28 04:50:36 -09:00
support/dependencies, scripts: accept patches with renames
Currently, patches with renames are refused, as they reqire patch 2.7 or newer. So far, we did not require that version because it was too recent to be widely available. But patch 2.7 has been released in 2012, almost 9 years ago now; it is old enough that we can start relying on it. Add a check that patch is GNU patch 2.7 or newer, and so drop the common check for patch, and drop the check about renames in apply-patches.sh. Signed-off-by: Ryota Kinukawa <pojiro.jp@gmail.com> [yann.morin.1998@free.fr: - drop common check - shorten variable names - drop now-incorrect comment about busybox w/desktop ] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
committed by
Yann E. MORIN
parent
d69d40c029
commit
f46e13f05f
@@ -113,11 +113,6 @@ function apply_patch {
|
||||
echo " to be applied : ${path}/${patch}"
|
||||
exit 1
|
||||
fi
|
||||
if ${uncomp} "${path}/$patch" | grep -q "^rename from" && \
|
||||
${uncomp} "${path}/$patch" | grep -q "^rename to" ; then
|
||||
echo "Error: patch contains some renames, not supported by old patch versions"
|
||||
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
|
||||
if [ $? != 0 ] ; then
|
||||
|
||||
Reference in New Issue
Block a user