From 4a76b49949900686f74510b7e0b3fec1fe456016 Mon Sep 17 00:00:00 2001 From: des Date: Tue, 10 Sep 2013 18:34:38 +0000 Subject: Make this more deterministic by sorting the libraries before processing them and ensuring that we always use the samme collation rules. Approved by: re (gjb) --- tools/make_libdeps.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools/make_libdeps.sh') diff --git a/tools/make_libdeps.sh b/tools/make_libdeps.sh index 3b59488..2f5b32b 100644 --- a/tools/make_libdeps.sh +++ b/tools/make_libdeps.sh @@ -28,6 +28,7 @@ export PATH=/bin:/usr/bin +LC_ALL=C # make sort deterministic FS=': ' # internal field separator LIBDEPENDS=./_libdeps # intermediate output file USRSRC=${1:-/usr/src} # source root @@ -64,7 +65,7 @@ genlibdepends() { ( cd ${USRSRC} - find ${LIBS} -mindepth 1 -name Makefile | + find -s ${LIBS} -mindepth 1 -name Makefile | xargs grep -l 'bsd\.lib\.mk' | while read makefile; do libdir=$(dirname ${makefile}) -- cgit v1.1