From d18e01b36d6c81186d41e6cec00bd8167b58eabf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Blin?=
 <sebastien.blin@savoirfairelinux.com>
Date: Wed, 21 Oct 2020 15:56:37 -0400
Subject: [PATCH] ubuntu18.04: build must use g++8

Change-Id: Ia5fd11c87ba29ba4a1305a67e90c00004404ac13
---
 docker/Dockerfile_ubuntu_18.04 | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/docker/Dockerfile_ubuntu_18.04 b/docker/Dockerfile_ubuntu_18.04
index 753abdb4..750bdaf0 100644
--- a/docker/Dockerfile_ubuntu_18.04
+++ b/docker/Dockerfile_ubuntu_18.04
@@ -10,12 +10,18 @@ RUN apt-get update && \
 RUN apt-get clean
 RUN apt-get update && \
     apt-get install -y -o Acquire::Retries=10 \
+        g++-8 \
+        gcc-8 \
+        cpp-8 \
+        file \
+        make \
+        libc6-dev \
+        libstdc++-8-dev \
         git \
         autoconf \
         automake \
         autopoint \
         cmake \
-        libtool \
         libdbus-1-dev \
         libdbus-c++-dev \
         libgnutls28-dev \
@@ -65,6 +71,9 @@ RUN apt-get update && \
 	libssl-dev \
         libsndfile1-dev
 
+RUN update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 50
+RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 50
+
 ADD scripts/build-package-debian.sh /opt/build-package-debian.sh
 
 CMD /opt/build-package-debian.sh
-- 
GitLab