diff options
author | des <des@FreeBSD.org> | 2013-09-10 18:34:38 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2013-09-10 18:34:38 +0000 |
commit | 4a76b49949900686f74510b7e0b3fec1fe456016 (patch) | |
tree | 9f38104a7cd2ecd7e48d347f113e5977bb4a9555 | |
parent | 62e12363af9342e6a5569b09d098ec56f2661545 (diff) | |
download | FreeBSD-src-4a76b49949900686f74510b7e0b3fec1fe456016.zip FreeBSD-src-4a76b49949900686f74510b7e0b3fec1fe456016.tar.gz |
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)
-rw-r--r-- | tools/make_libdeps.sh | 3 |
1 files changed, 2 insertions, 1 deletions
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}) |