apply_patches: Sort patch list before applying

The apply_patches script wasn't sorting the list of patches in
the "patches" directory before applying them. This left the list
in an indeterminate order. In most cases, the list is actually
sorted but rarely, they can be out of order and cause dependent
patches to fail to apply.

We now sort the list but the "sort" program wasn't in the
configure scripts so we needed to add that and regenerate
the scripts as well.

Resolves: #193
This commit is contained in:
George Joseph
2023-07-06 06:37:50 -06:00
parent 8c31fd2de3
commit f0a6e84f16
5 changed files with 53 additions and 34 deletions

View File

@@ -286,6 +286,7 @@ AC_PATH_PROG([PATCH], [patch], :)
AC_PATH_PROG([SED], [sed], :)
AC_PATH_PROG([NM], [nm], :)
AC_PATH_PROG([REALPATH], [realpath], :)
AC_PATH_PROG([SORT], [sort], :)
DOWNLOAD=":"