The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=bda6ed2ee4d8e836b1b2f8ca7a6ed72034e5f231
commit bda6ed2ee4d8e836b1b2f8ca7a6ed72034e5f231 Author: Mark Johnston <[email protected]> AuthorDate: 2026-01-16 15:56:09 +0000 Commit: Mark Johnston <[email protected]> CommitDate: 2026-01-16 15:56:33 +0000 exterr: Sort output from make_libc_exterr_cat_filenames.sh Otherwise the script may permute the order of entries in the file since find(1) output is not stable. Reviewed by: kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D54669 --- tools/build/make_libc_exterr_cat_filenames.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/build/make_libc_exterr_cat_filenames.sh b/tools/build/make_libc_exterr_cat_filenames.sh index fbde85891200..d05e95269e5f 100755 --- a/tools/build/make_libc_exterr_cat_filenames.sh +++ b/tools/build/make_libc_exterr_cat_filenames.sh @@ -14,7 +14,7 @@ printf " * Automatically %sgenerated, use\\n" \@ >>"${target}" echo " * tools/build/make_libc_exterr_cat_filenames.sh" >>"${target}" echo " */" >>"${target}" -(find sys -type f -name '*.c' | \ +(find -s sys -type f -name '*.c' | \ xargs grep -E '^#define[[:space:]]+EXTERR_CATEGORY[[:space:]]+EXTERR_CAT_' | \ sed -E 's/[[:space:]]+/:/g' | \ awk -F ':' '{filename = $1; sub(/^sys\//, "", filename);
