summaryrefslogtreecommitdiffstats
path: root/scripts/docker/trusty-qt512
diff options
context:
space:
mode:
authorGravatar Subsurface CI <dirk@hohndel.org>2020-12-27 14:31:39 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-12-29 08:38:36 -0800
commit3cf6848605588e6818cf52cb5c14f89925c2b974 (patch)
treef685e9b8463b1d60918a18698388cf008041e203 /scripts/docker/trusty-qt512
parentcdd3adc61b17c2cbced42b6753f141251f12152d (diff)
downloadsubsurface-3cf6848605588e6818cf52cb5c14f89925c2b974.tar.gz
build-system/trusty: use new Qt installer
Update to Qt 5.12.10, latest OpenSSL, add QtChart, add other missing packages. Also switch to gcc-7 as our statistics code requires better C++17 support than what gcc-6 can offer. This then creates trusty-qt512:1.1 Signed-off-by: Subsurface CI <dirk@hohndel.org>
Diffstat (limited to 'scripts/docker/trusty-qt512')
-rw-r--r--scripts/docker/trusty-qt512/Dockerfile44
-rw-r--r--scripts/docker/trusty-qt512/getpackages.sh3
-rw-r--r--scripts/docker/trusty-qt512/qtifwsilent.qs51
3 files changed, 25 insertions, 73 deletions
diff --git a/scripts/docker/trusty-qt512/Dockerfile b/scripts/docker/trusty-qt512/Dockerfile
index 383d6725c..44000dd9a 100644
--- a/scripts/docker/trusty-qt512/Dockerfile
+++ b/scripts/docker/trusty-qt512/Dockerfile
@@ -14,7 +14,7 @@ ADD ubuntu-esm-infra-trusty /etc/apt/preferences.d/ubuntu-esm-infra-trusty
RUN apt-get -y update && apt-get install -y software-properties-common
RUN add-apt-repository -y 'ppa:ubuntu-toolchain-r/test'
RUN apt-get -y update && apt-get install -y \
- gcc-6 g++-6 make git autoconf automake libtool pkg-config \
+ gcc-7 g++-7 make git autoconf automake libtool pkg-config \
curl libdbus-1-3 libexpat1 libfontconfig1 libfreetype6 \
libexpat1-dev libgl1-mesa-dev libgl1-mesa-glx \
ruby gperf bison libx11-6 libx11-xcb1 libjpeg-dev libpng-dev \
@@ -22,12 +22,12 @@ RUN apt-get -y update && apt-get install -y \
libxml2-dev libxslt1-dev libzip-dev libsqlite3-dev libusb-1.0-0-dev \
libssl-dev libssh2-1-dev libcurl4-openssl-dev mesa-common-dev libqt5gui5 \
libxcb-xinerama0 libpulse-mainloop-glib0 libhyphen-dev libicu52 \
- libglib2.0-dev mdbtools-dev
+ libglib2.0-dev mdbtools-dev libbluetooth-dev libmtp-dev
# oddly this gets us too many gcc/g++ version (even though we explicitly
-# ask for gcc-6/g++6
-RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 10 && \
- update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 10 && \
+# ask for gcc-7/g++-7
+RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 10 && \
+ update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 10 && \
update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 10 && \
update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 10 && \
update-alternatives --set cc /usr/bin/gcc && \
@@ -37,21 +37,25 @@ RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 10 && \
ADD cmake-3.13.2-Linux-x86_64.sh .
RUN chmod a+x cmake-3.13.2-Linux-x86_64.sh && ./cmake-3.13.2-Linux-x86_64.sh --prefix=/usr --skip-license && rm -f cmake-3.13.2-Linux-x86_64.sh
-# install Qt silently
-ADD qtifwsilent.qs .
-ADD qt-opensource-linux-x64-5.12.4.run .
+# deadsnale Python 3.6
+RUN add-apt-repository ppa:deadsnakes/ppa
+RUN apt-get update && sudo apt-get install -y python3.6
-RUN chmod +x qt-opensource-linux-x64-5.12.4.run && \
- QT_INSTALL_DIR=/usr/local/Qt ./qt-opensource-linux-x64-5.12.4.run --platform minimal --script qtifwsilent.qs && \
- rm -rf qt-opensource-linux-x64-5.12.4.run qtifwsilent.qs /usr/local/Qt/Tools /usr/local/Qt/Docs /usr/local/Qt/Examples /usr/local/Qt/Maintenance* \
- /usr/local/Qt/5.12.4/gcc_64/bin/qgltf /usr/local/Qt/5.12.4/gcc_64/bin/qdoc
-ENV QT_ROOT /usr/local/Qt/5.12.4/gcc_64
-ENV PATH="/usr/local/Qt/5.12.4/gcc_64/bin/:${PATH}"
+# install Qt
+RUN curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py" && python3.6 get-pip.py
+RUN pip3 install aqtinstall
+RUN find /usr /home -name aqt -ls
+RUN /usr/local/bin/aqt install -O /usr/local/Qt 5.12.10 linux desktop -m qtcharts
+RUN rm -rf /usr/local/Qt/Tools /usr/local/Qt/Docs /usr/local/Qt/Examples /usr/local/Qt/Maintenance* \
+ /usr/local/Qt/5.12.10/gcc_64/bin/qgltf /usr/local/Qt/5.12.10/gcc_64/bin/qdoc
+ENV QT_ROOT /usr/local/Qt/5.12.10/gcc_64
+ENV PATH="/usr/local/Qt/5.12.10/gcc_64/bin/:${PATH}"
# now build and install QtWebKit
RUN git clone -b 5.212 git://github.com/qt/qtwebkit
-RUN cd qtwebkit && PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$QT_ROOT/lib/pkgconfig ./Tools/Scripts/build-webkit --qt --prefix $QT_ROOT --release
-RUN cd qtwebkit/WebKitBuild/Release && make install/fast
+RUN mkdir -p qtwebkit/WebKitBuild/Release
+RUN cd qtwebkit/WebKitBuild/Release && cmake -DPORT=Qt -DCMAKE_BUILD_TYPE=Release -DQt5_DIR=/usr/local/Qt/5.12.10/gcc_64/lib/cmake/Qt5 ../..
+RUN cd qtwebkit/WebKitBuild/Release && make -j4 && make install
RUN rm -rf qtwebkit
# finally, we need a new libdbus
@@ -61,13 +65,13 @@ RUN mkdir dbus-1.12.16/build && \
cd dbus-1.12.16/build && \
sed -inline 's/${CMAKE_INSTALL_FULL_LOCALSTATEDIR}\/lib\/dbus\/machine-id/\/var\/lib\/dbus\/machine-id/' ../cmake/CMakeLists.txt && \
cmake ../cmake -DDBUS_INSTALL_SYSTEM_LIBS=1 && \
- make install && \
+ make -j4 install && \
ldconfig
-ADD OpenSSL_1_1_1.tar.gz .
-RUN cd /openssl-OpenSSL_1_1_1 && \
+ADD OpenSSL_1_1_1i.tar.gz .
+RUN cd /openssl-OpenSSL_1_1_1i && \
./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared zlib && \
- make && mkdir -p /ssllibs && cp *.so /ssllibs && cd / && rm -rf openssl-OpenSSL_1_1_1
+ make -j4 && mkdir -p /ssllibs && cp *.so /ssllibs && cd / && rm -rf openssl-OpenSSL_1_1_1i
# try to remove some of the packages we no longer need
RUN apt-get remove -y libqt5core5a libqt5dbus5 libqt5gui5 ruby openssh-client
diff --git a/scripts/docker/trusty-qt512/getpackages.sh b/scripts/docker/trusty-qt512/getpackages.sh
index 9b0e0fbe3..53250ba2c 100644
--- a/scripts/docker/trusty-qt512/getpackages.sh
+++ b/scripts/docker/trusty-qt512/getpackages.sh
@@ -1,6 +1,5 @@
#!/bin/bash
wget https://github.com/Kitware/CMake/releases/download/v3.13.2/cmake-3.13.2-Linux-x86_64.sh
-wget http://download.qt.io/official_releases/qt/5.12/5.12.4/qt-opensource-linux-x64-5.12.4.run
curl -O https://dbus.freedesktop.org/releases/dbus/dbus-1.12.16.tar.gz
-wget https://github.com/openssl/openssl/archive/OpenSSL_1_1_1.tar.gz
+wget https://github.com/openssl/openssl/archive/OpenSSL_1_1_1i.tar.gz
diff --git a/scripts/docker/trusty-qt512/qtifwsilent.qs b/scripts/docker/trusty-qt512/qtifwsilent.qs
deleted file mode 100644
index e9d5976ca..000000000
--- a/scripts/docker/trusty-qt512/qtifwsilent.qs
+++ /dev/null
@@ -1,51 +0,0 @@
-function Controller() {
- installer.autoRejectMessageBoxes();
- installer.installationFinished.connect(function() {
- gui.clickButton(buttons.NextButton);
- })
-}
-
-Controller.prototype.WelcomePageCallback = function() {
- gui.clickButton(buttons.NextButton, 3000);
-}
-
-Controller.prototype.CredentialsPageCallback = function() {
- gui.clickButton(buttons.NextButton);
-}
-
-Controller.prototype.IntroductionPageCallback = function() {
- gui.clickButton(buttons.NextButton);
-}
-
-Controller.prototype.TargetDirectoryPageCallback = function() {
- gui.currentPageWidget().TargetDirectoryLineEdit.setText(installer.environmentVariable("QT_INSTALL_DIR"));
- gui.clickButton(buttons.NextButton);
-}
-
-Controller.prototype.ComponentSelectionPageCallback = function() {
- var widget = gui.currentPageWidget();
- widget.deselectAll();
- widget.selectComponent("qt.qt5.5124.gcc_64");
- widget.selectComponent("qt.qt5.5124.qtscript");
- gui.clickButton(buttons.NextButton);
-}
-
-Controller.prototype.LicenseAgreementPageCallback = function() {
- gui.currentPageWidget().AcceptLicenseRadioButton.setChecked(true);
- gui.clickButton(buttons.NextButton);
-}
-
-Controller.prototype.StartMenuDirectoryPageCallback = function() {
- gui.clickButton(buttons.NextButton);
-}
-
-Controller.prototype.ReadyForInstallationPageCallback = function() {
- gui.clickButton(buttons.NextButton);
-}
-
-Controller.prototype.FinishedPageCallback = function() {
- var checkBoxForm = gui.currentPageWidget().LaunchQtCreatorCheckBoxForm;
- if (checkBoxForm && checkBoxForm.launchQtCreatorCheckBox)
- checkBoxForm.launchQtCreatorCheckBox.checked = false;
- gui.clickButton(buttons.FinishButton);
-}