mirror of
https://github.com/commercialhaskell/stackage.git
synced 2026-01-24 05:01:56 +01:00
take 2 at Ubuntu 16.04 Xenial (#1439)
- not sure if ppa:zoogie/sdl2-snapshots was ever really needed (#444): there seem to be newer sdl packages in 14.04 Trusty already. - not sure what the ppa:openstack-ubuntu-testing/icehouse was needed for: that ppa is not available for 16.04, commenting it out for now. - libsystemd-dev is needed to build libsystemd-journal (#696) - 16.04 has openjdk-8 rather than 7 (#1388) - libphash does not seem to be in Xenial, disabling phash for now (#618) - use nettle-dev from ubuntu (hopefully 3.2 is compatible enough with 3.1) - don't need to install git first - python-software-properties is a dependency of software-properties-common - this should allow the gi-gtk stack to build since it needs newer gtk stack - switch from texlive-full to texlive to save time and space (not sure what requires texlive?) this builds for me locally
This commit is contained in:
parent
18b2e51a76
commit
2c455eaf9a
@ -1,4 +1,4 @@
|
|||||||
FROM ubuntu:14.04
|
FROM ubuntu:16.04
|
||||||
|
|
||||||
ENV HOME /home/stackage
|
ENV HOME /home/stackage
|
||||||
ENV LANG en_US.UTF-8
|
ENV LANG en_US.UTF-8
|
||||||
|
|||||||
@ -1353,7 +1353,8 @@ packages:
|
|||||||
"Michael Xavier <michael@michaelxavier.net> @MichaelXavier":
|
"Michael Xavier <michael@michaelxavier.net> @MichaelXavier":
|
||||||
- angel
|
- angel
|
||||||
- uri-bytestring
|
- uri-bytestring
|
||||||
- phash
|
# https://github.com/MichaelXavier/phash/issues/5
|
||||||
|
#- phash
|
||||||
- cron
|
- cron
|
||||||
- tasty-tap
|
- tasty-tap
|
||||||
- tasty-fail-fast
|
- tasty-fail-fast
|
||||||
@ -2359,10 +2360,7 @@ skipped-builds:
|
|||||||
- Win32-notify
|
- Win32-notify
|
||||||
- Win32-extras
|
- Win32-extras
|
||||||
|
|
||||||
# The Docker image needs libsystemd-dev from Ubuntu 15.04+ for this.
|
# end of skipped-builds
|
||||||
# See: https://github.com/fpco/stackage/issues/696
|
|
||||||
- libsystemd-journal
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# By skipping a test suite, we do not pull in the build dependencies
|
# By skipping a test suite, we do not pull in the build dependencies
|
||||||
|
|||||||
@ -17,16 +17,16 @@ locale-gen en_US.UTF-8
|
|||||||
|
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y software-properties-common python-software-properties git
|
apt-get install -y software-properties-common
|
||||||
|
|
||||||
add-apt-repository ppa:hvr/ghc -y
|
add-apt-repository ppa:hvr/ghc -y
|
||||||
add-apt-repository -y ppa:zoogie/sdl2-snapshots
|
|
||||||
add-apt-repository -y ppa:marutter/rrutter
|
add-apt-repository -y ppa:marutter/rrutter
|
||||||
add-apt-repository -y ppa:openstack-ubuntu-testing/icehouse
|
# not sure what this was needed for
|
||||||
|
#add-apt-repository -y ppa:openstack-ubuntu-testing/icehouse
|
||||||
|
|
||||||
# Get Stack
|
# Get Stack
|
||||||
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 575159689BEFB442
|
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 575159689BEFB442
|
||||||
echo 'deb http://download.fpcomplete.com/ubuntu trusty main'|sudo tee /etc/apt/sources.list.d/fpco.list
|
echo 'deb http://download.fpcomplete.com/ubuntu xenial main'|tee /etc/apt/sources.list.d/fpco.list
|
||||||
|
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y \
|
apt-get install -y \
|
||||||
@ -74,13 +74,13 @@ apt-get install -y \
|
|||||||
libopenal-dev \
|
libopenal-dev \
|
||||||
libpango1.0-dev \
|
libpango1.0-dev \
|
||||||
libpcap0.8-dev \
|
libpcap0.8-dev \
|
||||||
libphash0-dev \
|
|
||||||
libpq-dev \
|
libpq-dev \
|
||||||
libsdl2-dev \
|
libsdl2-dev \
|
||||||
libsnappy-dev \
|
libsnappy-dev \
|
||||||
libsndfile1-dev \
|
libsndfile1-dev \
|
||||||
libsqlite3-dev \
|
libsqlite3-dev \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
|
libsystemd-dev \
|
||||||
libtagc0-dev \
|
libtagc0-dev \
|
||||||
libtre-dev \
|
libtre-dev \
|
||||||
libudev-dev \
|
libudev-dev \
|
||||||
@ -94,32 +94,18 @@ apt-get install -y \
|
|||||||
libzmq3-dev \
|
libzmq3-dev \
|
||||||
llvm \
|
llvm \
|
||||||
m4 \
|
m4 \
|
||||||
|
nettle-dev \
|
||||||
nodejs \
|
nodejs \
|
||||||
npm \
|
npm \
|
||||||
r-base \
|
r-base \
|
||||||
r-base-dev \
|
r-base-dev \
|
||||||
texlive-full \
|
texlive \
|
||||||
wget \
|
wget \
|
||||||
zip \
|
zip \
|
||||||
stack \
|
stack \
|
||||||
openjdk-7-jdk \
|
openjdk-8-jdk \
|
||||||
zlib1g-dev
|
zlib1g-dev
|
||||||
|
|
||||||
mkdir /tmp/nettle-build
|
|
||||||
(
|
|
||||||
cd /tmp/nettle-build
|
|
||||||
wget https://ftp.gnu.org/gnu/nettle/nettle-3.1.1.tar.gz
|
|
||||||
tar zxf nettle-3.1.1.tar.gz
|
|
||||||
cd nettle-3.1.1
|
|
||||||
./configure --prefix=/usr
|
|
||||||
make
|
|
||||||
make install
|
|
||||||
|
|
||||||
mkdir -p /usr/lib/x86_64-linux-gnu/
|
|
||||||
ln -sfv /usr/lib/libnettle.so.6.1 /usr/lib/x86_64-linux-gnu/libnettle.so.6
|
|
||||||
)
|
|
||||||
rm -rf /tmp/nettle-build
|
|
||||||
|
|
||||||
# Buggy versions of ld.bfd fail to link some Haskell packages:
|
# Buggy versions of ld.bfd fail to link some Haskell packages:
|
||||||
# https://sourceware.org/bugzilla/show_bug.cgi?id=17689. Gold is
|
# https://sourceware.org/bugzilla/show_bug.cgi?id=17689. Gold is
|
||||||
# faster anyways and uses less RAM.
|
# faster anyways and uses less RAM.
|
||||||
@ -127,4 +113,4 @@ update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.gold" 20
|
|||||||
update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.bfd" 10
|
update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.bfd" 10
|
||||||
|
|
||||||
# See: https://github.com/fpco/stackage/issues/1388
|
# See: https://github.com/fpco/stackage/issues/1388
|
||||||
ln -n /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server/libjvm.so /usr/lib
|
ln -n /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so /usr/lib
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user