git: 36daea2a6da0 - stable/15 - exterr: Sort output from make_libc_exterr_cat_filenames.sh
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 26 Jan 2026 00:52:40 UTC
The branch stable/15 has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=36daea2a6da0cfe4503632c1d783a16426b094ae
commit 36daea2a6da0cfe4503632c1d783a16426b094ae
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2026-01-16 15:56:09 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2026-01-26 00:51:44 +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
(cherry picked from commit bda6ed2ee4d8e836b1b2f8ca7a6ed72034e5f231)
---
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);