diff options
author | 2014-05-25 21:44:28 -0400 | |
---|---|---|
committer | 2014-05-25 21:44:28 -0400 | |
commit | 120b72bec103024d0f1b0103b23ff6b9f56288a7 (patch) | |
tree | 84c184ef3b1acf707d64b69ca2b88b419866bb0c | |
parent | 895d5836776363835ff455d11c9c7eda72710d69 (diff) |
set unicode locale when building
some packages, particularly unix-compat, fail to install in a C
locale. wow
-rwxr-xr-x | standalone/android/buildchroot-inchroot | 3 | ||||
-rwxr-xr-x | standalone/android/install-haskell-packages | 4 |
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 () { |