Locale independent sorting

Some locales sort differently, which causes a different order
of files, which leads to an unreproducible build.
Sort the files always with the C locale.
This commit is contained in:
Reiner Herrmann 2017-05-25 15:49:27 +02:00 committed by Patrick Lodder
parent d96b5daafa
commit c7fa40b00d
No known key found for this signature in database
GPG Key ID: 2D3A345B98D0DC1F
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ set -f # temporarily disable globbing so that our patterns aren't expanded
PRUNE_TEST="-name *test*.cc -prune"
PRUNE_BENCH="-name *_bench.cc -prune"
PRUNE_TOOL="-name leveldbutil.cc -prune"
PORTABLE_FILES=`find $DIRS $PRUNE_TEST -o $PRUNE_BENCH -o $PRUNE_TOOL -o -name '*.cc' -print | sort | sed "s,^$PREFIX/,," | tr "\n" " "`
PORTABLE_FILES=`find $DIRS $PRUNE_TEST -o $PRUNE_BENCH -o $PRUNE_TOOL -o -name '*.cc' -print | LC_ALL=C sort | sed "s,^$PREFIX/,," | tr "\n" " "`
set +f # re-enable globbing