summaryrefslogtreecommitdiff
path: root/Dh_Haskell.sh
diff options
context:
space:
mode:
authorJoachim Breitner <mail@joachim-breitner.de>2015-06-20 19:15:51 +0200
committerJoachim Breitner <mail@joachim-breitner.de>2015-06-20 19:15:51 +0200
commit3d287e734f352043b2cf1e6ef4d2a93600b17113 (patch)
tree9c84b3c2f88c17450650cc0b83eb0d3a266e0b05 /Dh_Haskell.sh
parentc80f522f4086aab0f640a01acc9c1bda6f849cf1 (diff)
Dh_Haskell.sh: Alwasy run sort in LANG=C, to make sure it builds reproducible in different envionments.
Diffstat (limited to 'Dh_Haskell.sh')
-rw-r--r--Dh_Haskell.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/Dh_Haskell.sh b/Dh_Haskell.sh
index 1656a71..5571852 100644
--- a/Dh_Haskell.sh
+++ b/Dh_Haskell.sh
@@ -39,7 +39,7 @@ package_ext(){
}
packages_hc(){
- hcs=`{ for i in ${DEB_PACKAGES}; do package_hc $i; done; } | sort -u`
+ hcs=`{ for i in ${DEB_PACKAGES}; do package_hc $i; done; } | LANG=C sort -u`
if [ `echo ${hcs} | wc -w` = 0 ]; then hcs=${DEB_DEFAULT_COMPILER}; fi
if [ `echo ${hcs} | wc -w` != 1 ]; then echo "Multiple compilers not supported: ${hc}"; exit 1; fi
echo ${hcs}
@@ -112,7 +112,7 @@ sort_uniq(){
for i in "$@" ; do
echo $i
done
- } | sort -u | tr "\n" " "
+ } | LANG=C sort -u | tr "\n" " "
}
dependency(){
@@ -372,7 +372,7 @@ configure_recipe(){
# local PS5=$PS4; PS4=" + configure_recipe> "; set -x
hc=`packages_hc`
- ENABLE_PROFILING=`{ for i in ${DEB_PACKAGES}; do package_ext $i | grep prof; done; } | sort -u | sed 's/prof/--enable-library-profiling/'`
+ ENABLE_PROFILING=`{ for i in ${DEB_PACKAGES}; do package_ext $i | grep prof; done; } | LANG=C sort -u | sed 's/prof/--enable-library-profiling/'`
local GHC_OPTIONS
for i in `dpkg-buildflags --get LDFLAGS`
do