make apt non-interactive in install_build_deps.sh

In Ubuntu Bionic there is need to update libssl which causes system services restart
and apt asks user to allow this restart. It cases build script to hang and build fails due to timeout.
Additional dpkg options and DEBIAN_FRONTEND=noninteractive solves the problem
This commit is contained in:
Timofey Turenko 2019-06-28 00:15:28 +03:00 committed by Markus Mäkelä
parent 6cdc28856d
commit 3939fdec5b
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -14,9 +14,14 @@ if [ $? == 0 ]
then
# DEB-based distro
install_libdir=/usr/lib
export DEBIAN_FRONTEND=noninteractive
sudo apt-get update
sudo apt-get install -y --force-yes dpkg-dev git wget \
sudo dpkg-reconfigure libc6
sudo -E apt-get -q -o Dpkg::Options::=--force-confold \
-o Dpkg::Options::=--force-confdef \
-y --force-yes \
install dpkg-dev git wget \
build-essential libssl-dev ncurses-dev bison flex \
perl libtool libpcre3-dev tcl tcl-dev uuid \
uuid-dev libsqlite3-dev liblzma-dev libpam0g-dev pkg-config \