summaryrefslogtreecommitdiff
path: root/standalone
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2014-05-25 21:44:28 -0400
committerGravatar Joey Hess <joey@kitenet.net>2014-05-25 21:44:28 -0400
commit120b72bec103024d0f1b0103b23ff6b9f56288a7 (patch)
tree84c184ef3b1acf707d64b69ca2b88b419866bb0c /standalone
parent895d5836776363835ff455d11c9c7eda72710d69 (diff)
set unicode locale when building
some packages, particularly unix-compat, fail to install in a C locale. wow
Diffstat (limited to 'standalone')
-rwxr-xr-xstandalone/android/buildchroot-inchroot3
-rwxr-xr-xstandalone/android/install-haskell-packages4
2 files changed, 7 insertions, 0 deletions
diff --git a/standalone/android/buildchroot-inchroot b/standalone/android/buildchroot-inchroot
index 533f5b75f..b5bf59ef5 100755
--- a/standalone/android/buildchroot-inchroot
+++ b/standalone/android/buildchroot-inchroot
@@ -19,6 +19,9 @@ apt-get -y install ca-certificates curl file m4 autoconf zlib1g-dev
apt-get -y install libgnutls-dev libxml2-dev libgsasl7-dev pkg-config c2hs
apt-get -y install ant default-jdk rsync wget gnupg lsof
apt-get -y install gettext unzip python
+apt-get -y install locales
+echo en_US.UTF-8 UTF-8 >> /etc/locale.gen
+locale-gen
apt-get clean
wget http://snapshot.debian.org/archive/debian/20130903T155330Z/pool/main/a/automake-1.14/automake_1.14-1_all.deb
dpkg -i automake*.deb
diff --git a/standalone/android/install-haskell-packages b/standalone/android/install-haskell-packages
index fc2148808..8ef16c060 100755
--- a/standalone/android/install-haskell-packages
+++ b/standalone/android/install-haskell-packages
@@ -27,6 +27,10 @@ setupcabal () {
# should be able to remove this eventually.
cabal install transformers-compat -fthree
cabal install mtl-2.1.3.1
+
+ # Some packages fail to install in a non unicode locale.
+ LANG=en_US.UTF-8
+ export LANG
}
cabalinstall () {