Message ID | 20240502090939.748610-1-dario.binacchi@amarulasolutions.com |
---|---|
State | New |
Headers | show |
Series |
|
Related | show |
Dario, All, On 2024-05-02 11:09 +0200, Dario Binacchi spake thusly: [--SNIP--] > By setting the maximum fuzz factor to 1, we reduce the possibility that > patches which cannot be applied are incorrectly reported as valid. I think it is a good idea overall. Did you assess how many of our patches thus no longer apply with this change? Note that, except for the huge amount it would require, I would pretty much be in favour of being even stricter, and refuse any fuzz at all, thus effectively requiring that patches actually be properly refreshed for a version bump. Regards, Yann E. MORIN. > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > --- > 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 6da83f6826e9..999384cbbd5b 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 --no-backup-if-mismatch -d "${builddir}" -t -N $silent > + ${uncomp} "${path}/$patch" | patch -F1 -g0 -p1 --no-backup-if-mismatch -d "${builddir}" -t -N $silent > if [ $? != 0 ] ; then > echo "Patch failed! Please fix ${patch}!" > exit 1 > -- > 2.43.0 > > _______________________________________________ > buildroot mailing list > buildroot@buildroot.org > https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Yann, On Sun, May 5, 2024 at 5:16 PM Yann E. MORIN <yann.morin.1998@free.fr> wrote: > > > Dario, All, > > On 2024-05-02 11:09 +0200, Dario Binacchi spake thusly: > [--SNIP--] > > By setting the maximum fuzz factor to 1, we reduce the possibility that > > patches which cannot be applied are incorrectly reported as valid. > > I think it is a good idea overall. > > Did you assess how many of our patches thus no longer apply with this > change? No, but I have started testing about it. > > Note that, except for the huge amount it would require, I would pretty > much be in favour of being even stricter, and refuse any fuzz at all, > thus effectively requiring that patches actually be properly refreshed > for a version bump. I agree with you. I had also thought about it, but I didn't want to make a too aggressive patch for the first version. I am running tests with -F0 and -F1 to see the number of patches that fail in both cases. I am using the `legal-info` target, which stops at applying patches without compiling the packages. It will take me some time, but as soon as I have the results, I will update you. Thanks and regards, Dario > > Regards, > Yann E. MORIN. > > > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > > --- > > 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 6da83f6826e9..999384cbbd5b 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 --no-backup-if-mismatch -d "${builddir}" -t -N $silent > > + ${uncomp} "${path}/$patch" | patch -F1 -g0 -p1 --no-backup-if-mismatch -d "${builddir}" -t -N $silent > > if [ $? != 0 ] ; then > > echo "Patch failed! Please fix ${patch}!" > > exit 1 > > -- > > 2.43.0 > > > > _______________________________________________ > > buildroot mailing list > > buildroot@buildroot.org > > https://lists.buildroot.org/mailman/listinfo/buildroot > > -- > .-----------------.--------------------.------------------.--------------------. > | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | > | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | > | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | > | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | > '------------------------------^-------^------------------^--------------------'
diff --git a/support/scripts/apply-patches.sh b/support/scripts/apply-patches.sh index 6da83f6826e9..999384cbbd5b 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 --no-backup-if-mismatch -d "${builddir}" -t -N $silent + ${uncomp} "${path}/$patch" | patch -F1 -g0 -p1 --no-backup-if-mismatch -d "${builddir}" -t -N $silent if [ $? != 0 ] ; then echo "Patch failed! Please fix ${patch}!" exit 1