dist/debian/dep: install texlive from jessie-backports to prevent gdb build fail on jessie

Installing openjdk-8-jre-headless from jessie-backports breaks texlive on
jessie main repo.
It causes 'Unmet build dependencies' error when building gdb package.
To prevent this, force insatlling texlive from jessie-backports before start
building gdb.

Fixes #2444

Signed-off-by: Takuya ASADA <syuu@scylladb.com>
Message-Id: <1496737502-10737-1-git-send-email-syuu@scylladb.com>
This commit is contained in:
Takuya ASADA
2017-06-06 17:25:01 +09:00
committed by Avi Kivity
parent b2b78158f6
commit 5608842e96

View File

@@ -2,6 +2,16 @@
. /etc/os-release
DISTRIBUTION=`lsb_release -i|awk '{print $3}'`
CODENAME=`lsb_release -c|awk '{print $2}'`
# workaround fix for #2444
if [ "$CODENAME" = "jessie" ]; then
if [ ! -e /etc/apt/sources.list.d/jessie-backports.list ]; then
sudo sh -c 'echo deb "http://httpredir.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/jessie-backports.list'
fi
sudo apt-get -y update
sudo apt-get install -t jessie-backports -y texlive
fi
sudo apt-get install -y gdebi-core
if [ "$VERSION_ID" = "14.04" ] || [ "$DISTRIBUTION" = "Debian" ]; then