From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Cc: "Mahyar Koshkouei" <mahyar.koshkouei@gmail.com>,
"Sergey Matyukevich" <geomatsi@gmail.com>,
"Romain Naour" <romain.naour@gmail.com>,
"Bernd Kuhls" <bernd@kuhls.net>,
"Jagan Teki" <jagan@amarulasolutions.com>,
"Michał Łyszczek" <michal.lyszczek@bofc.pl>,
buildroot@buildroot.org,
"Giulio Benetti" <giulio.benetti@benettiengineering.com>,
michael@amarulasolutions.com, linux-amarula@amarulasolutions.com,
"Fabrice Fontaine" <fontaine.fabrice@gmail.com>,
"Julien Corjon" <corjon.j@ecagroup.com>
Subject: Re: [Buildroot] [PATCH v2 00/18] apply patches with fuzz factor 0
Date: Tue, 25 Jun 2024 22:58:41 +0200 [thread overview]
Message-ID: <ZnsvgdItWs8iXni4@landeda> (raw)
In-Reply-To: <20240522070238.3282121-1-dario.binacchi@amarulasolutions.com>
Dario, All,
On 2024-05-22 09:02 +0200, Dario Binacchi spake thusly:
> The series will allow applying package patches with a fuzz factor of 0
> instead of 2 (the patch command default value).
> By setting the maximum fuzz factor to 0, we avoid that patches which
> cannot be applied are incorrectly reported as valid, with positive
> side-effects on version bumps.
>
> To avoid regressions, it was necessary to fix all those patches that
> were applicable with a fuzz factor of 1 or 2 before implementing this
> change. The series was tested on commit 47078cc11862 ("package/zxing-cpp:
> add options for enabling readers and/or writers") with a script that
> executed the make legal-info command for all defconfigs contained in
> Buildroot. Then, for all the affected packages, the compilation was
> executed.
Thanks a lot for all those efforts! 👍
As Arnout said, it is not unexpected that we missed some, and that new
patches added since then would not be fuzz-zero-ready.
So, I came up with a little bit of shell trickedry to start and test all
our patches (or at least the vast majority of them):
$ cat foo.lst
# Ignore boot/ and linux/ as they are too special...
find package/ -type f -name '*.mk' -printf '%h\n' \
|sort -u \
|while read dir; do
[ -e "${dir}/Config.in" ] || continue
( find "${dir}" -type f -name '*.patch' -print -quit |grep -q . ) || continue
pkg="$( basename "${dir}" )"
[ -e "${dir}/${pkg}.mk" ] || continue
sed -r -e '/^\$\(eval \$\((host-)?[^-]+-package\)\)$/!d; s//\1'"${pkg}"'-patch/' "${dir}/${pkg}.mk"
done \
|grep -v -E 'am335x-pru-package|asterisk|aufs-util|aumix|cgic'
$ make defconfig
$ ./utils/config --set-str BR2_BACKUP_SITE ""
$ make $(. ./foo.lst)
I stopped adding exceptions when I reached cgic...
Exceptions:
- Patch fuzz:
- asterisk
- Others:
- am335x-pru-package: hash error, github-generated
- aufs-util: needs a kernel, patches unknwon
- aumix: 403 forbidden, patches OK, tested with s.b.o.
- bsdiff: 403 forbidden, patches OK, tested with s.b.o.
- cgic: hash error, upstream is dead (parking site)
So, I found more download issues than I found patch fuzz issues... I'm
not sure if that's a good or a bad thing? ;-]
Then linux/ and boot/ will have to be checked "manually"...
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| 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. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
prev parent reply other threads:[~2024-06-25 20:59 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-22 7:02 [Buildroot] [PATCH v2 00/18] apply patches with fuzz factor 0 Dario Binacchi
2024-05-22 7:02 ` [Buildroot] [PATCH v2 01/18] board/orangepi/orangepi-zero: make the patches to be applied with fuzz 0 Dario Binacchi
2024-05-22 7:02 ` [Buildroot] [PATCH v2 02/18] board/pine64/rock64: " Dario Binacchi
2024-05-22 7:02 ` [Buildroot] [PATCH v2 03/18] boot/syslinux: update " Dario Binacchi
2024-05-22 7:02 ` [Buildroot] [PATCH v2 04/18] package/alsa-lib: update the patch " Dario Binacchi
2024-05-22 7:02 ` [Buildroot] [PATCH v2 05/18] package/bzip2: update the patches " Dario Binacchi
2024-05-22 7:02 ` [Buildroot] [PATCH v2 06/18] package/elfutils: " Dario Binacchi
2024-05-22 7:02 ` [Buildroot] [PATCH v2 07/18] package/ffmpeg: " Dario Binacchi
2024-05-22 7:02 ` [Buildroot] [PATCH v2 08/18] package/giflib: " Dario Binacchi
2024-05-22 7:02 ` [Buildroot] [PATCH v2 09/18] package/libabseil-cpp: update the patch " Dario Binacchi
2024-05-22 7:02 ` [Buildroot] [PATCH v2 10/18] package/libglib2: update the patches " Dario Binacchi
2024-05-22 7:02 ` [Buildroot] [PATCH v2 11/18] package/libnl: update the patch " Dario Binacchi
2024-05-22 8:15 ` Baruch Siach via buildroot
2024-06-24 20:00 ` Arnout Vandecappelle via buildroot
2024-05-22 7:02 ` [Buildroot] [PATCH v2 12/18] package/libopenssl: update the patches " Dario Binacchi
2024-05-22 7:02 ` [Buildroot] [PATCH v2 13/18] package/openocd: update the patch " Dario Binacchi
2024-05-22 7:02 ` [Buildroot] [PATCH v2 14/18] package/patchelf: " Dario Binacchi
2024-05-22 7:02 ` [Buildroot] [PATCH v2 15/18] package/qemu: update the patches " Dario Binacchi
2024-05-22 7:02 ` [Buildroot] [PATCH v2 16/18] package/qt5/qt5base: " Dario Binacchi
2024-05-22 7:02 ` [Buildroot] [PATCH v2 17/18] package/vboot-utils: " Dario Binacchi
2024-05-22 7:02 ` [Buildroot] [PATCH v2 18/18] support/scripts/apply-patches.sh: set the maximum fuzz factor to 0 Dario Binacchi
2024-06-24 20:01 ` [Buildroot] [PATCH v2 00/18] apply patches with fuzz factor 0 Arnout Vandecappelle via buildroot
2024-06-25 20:58 ` Yann E. MORIN [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZnsvgdItWs8iXni4@landeda \
--to=yann.morin.1998@free.fr \
--cc=bernd@kuhls.net \
--cc=buildroot@buildroot.org \
--cc=corjon.j@ecagroup.com \
--cc=dario.binacchi@amarulasolutions.com \
--cc=fontaine.fabrice@gmail.com \
--cc=geomatsi@gmail.com \
--cc=giulio.benetti@benettiengineering.com \
--cc=jagan@amarulasolutions.com \
--cc=linux-amarula@amarulasolutions.com \
--cc=mahyar.koshkouei@gmail.com \
--cc=michael@amarulasolutions.com \
--cc=michal.lyszczek@bofc.pl \
--cc=romain.naour@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox