@@ -25,7 +25,7 @@ add-apt-repository -y --keyserver hkp://keyserver.ubuntu.com:80 'deb http://down
25add-apt-repository -y --keyserver hkp://keyserver.ubuntu.com:80 'deb http://download.mono-project.com/repo/debian wheezy-apache24-compat main'
25add-apt-repository -y --keyserver hkp://keyserver.ubuntu.com:80 'deb http://download.mono-project.com/repo/debian wheezy-apache24-compat main'
26add-apt-repository -y --keyserver hkp://keyserver.ubuntu.com:80 'deb http://download.mono-project.com/repo/debian wheezy-libjpeg62-compat main'
26add-apt-repository -y --keyserver hkp://keyserver.ubuntu.com:80 'deb http://download.mono-project.com/repo/debian wheezy-libjpeg62-compat main'
28−GHCVER=8.2.2
28+GHCVER=8.4.1
30apt-get update
30apt-get update
31apt-get install -y \
31apt-get install -y \
@@ -156,6 +156,12 @@ curl -sSL https://get.haskellstack.org/ | sh
156# Put documentation where we expect it
156# Put documentation where we expect it
157mv /opt/ghc/$GHCVER/share/doc/ghc-$GHCVER/ /opt/ghc/$GHCVER/share/doc/ghc
157mv /opt/ghc/$GHCVER/share/doc/ghc-$GHCVER/ /opt/ghc/$GHCVER/share/doc/ghc
159+# llvm-5.0 for llvm-hs (separate since it needs wget)
160+wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - \
161+ && add-apt-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-5.0 main" \
163+ && apt-get install -y llvm-5.0
159# Buggy versions of ld.bfd fail to link some Haskell packages:
165# Buggy versions of ld.bfd fail to link some Haskell packages:
160# https://sourceware.org/bugzilla/show_bug.cgi?id=17689. Gold is
166# https://sourceware.org/bugzilla/show_bug.cgi?id=17689. Gold is
161# faster anyways and uses less RAM.
167# faster anyways and uses less RAM.
@@ -166,9 +172,9 @@ update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.bfd" 10
166# This version is tracked here:
172# This version is tracked here:
167# https://ghc.haskell.org/trac/ghc/wiki/Commentary/Compiler/Backends/LLVM/Installing
173# https://ghc.haskell.org/trac/ghc/wiki/Commentary/Compiler/Backends/LLVM/Installing
169−# GHC 8.2 requires LLVM 3.9 tools (specifically, llc-3.9 and opt-3.9).
175+# GHC 8.4 requires LLVM 5.0 tools (specifically, llc-5.0 and opt-5.0).
170−update-alternatives --install "/usr/bin/llc" "llc" "/usr/bin/llc-3.9" 50
176+update-alternatives --install "/usr/bin/llc" "llc" "/usr/bin/llc-5.0" 50
171−update-alternatives --install "/usr/bin/opt" "opt" "/usr/bin/opt-3.9" 50
177+update-alternatives --install "/usr/bin/opt" "opt" "/usr/bin/opt-5.0" 50
173# Made sure a "node" binary is in the path, as well as "nodejs".
179# Made sure a "node" binary is in the path, as well as "nodejs".
174# A historical naming collision on Debian means that the binary is called "nodejs",
180# A historical naming collision on Debian means that the binary is called "nodejs",
@@ -202,12 +208,6 @@ cd /tmp \
202echo "/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/" > /etc/ld.so.conf.d/openjdk.conf \
208echo "/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/" > /etc/ld.so.conf.d/openjdk.conf \
203 && ldconfig
209 && ldconfig
205−# llvm-4.0 for llvm-hs (separate since it needs wget)
206−wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - \
207− && add-apt-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-5.0 main" \
209− && apt-get install -y llvm-5.0
211# Install version 3 of the protobuf compiler. (The `protobuf-compiler` package only
211# Install version 3 of the protobuf compiler. (The `protobuf-compiler` package only
212# supports version 2.)
212# supports version 2.)
213curl -OL https://github.com/google/protobuf/releases/download/v3.3.0/protoc-3.3.0-linux-x86_64.zip \
213curl -OL https://github.com/google/protobuf/releases/download/v3.3.0/protoc-3.3.0-linux-x86_64.zip \