aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorReiner Herrmann <[email protected]>2017-05-25 15:49:27 +0200
committerPatrick Lodder <[email protected]>2021-02-13 17:51:31 +0100
commitc7fa40b00d79c56187bbdf79152d0efba5e381a8 (patch)
tree3498a85cdfc79ce043a147aec185055d94959915 /src
parentMerge pull request #1705 from rnicoll/block-download-timeout (diff)
downloaddiscoin-c7fa40b00d79c56187bbdf79152d0efba5e381a8.tar.xz
discoin-c7fa40b00d79c56187bbdf79152d0efba5e381a8.zip
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.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/leveldb/build_detect_platform2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leveldb/build_detect_platform b/src/leveldb/build_detect_platform
index d7edab1d8..4a200a726 100755
--- a/src/leveldb/build_detect_platform
+++ b/src/leveldb/build_detect_platform
@@ -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