From 16de5f8549354fa2dc775cefefc773a4cd776590 Mon Sep 17 00:00:00 2001 From: Anthony Bilinski Date: Thu, 10 Oct 2019 02:00:43 -0700 Subject: [PATCH 1/2] chore(ci): update travis to ubuntu 16.04, since 14.04 is EOL Ubuntu has Qt 5.5.1 in its repos, so PPA is no longer required. --- .travis.yml | 4 ++-- ...uild-ubuntu-14-04.sh => build-ubuntu-16-04.sh} | 15 +++++---------- tools/update-toxcore-version.sh | 2 +- 3 files changed, 8 insertions(+), 13 deletions(-) rename .travis/{build-ubuntu-14-04.sh => build-ubuntu-16-04.sh} (95%) diff --git a/.travis.yml b/.travis.yml index 6d0cef9fb..8e30033ee 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ sudo: required -dist: trusty +dist: xenial language: cpp cache: ccache @@ -44,7 +44,7 @@ jobs: # the actual compilin' - stage: Linux os: linux - env: JOB=build-ubuntu-14-04 + env: JOB=build-ubuntu-16-04 script: "./.travis/$JOB.sh" - stage: "Windows Stage 1: Dependencies (OpenSSL, Qt)" os: linux diff --git a/.travis/build-ubuntu-14-04.sh b/.travis/build-ubuntu-16-04.sh similarity index 95% rename from .travis/build-ubuntu-14-04.sh rename to .travis/build-ubuntu-16-04.sh index 5ae7c7813..066ad314d 100755 --- a/.travis/build-ubuntu-14-04.sh +++ b/.travis/build-ubuntu-16-04.sh @@ -19,8 +19,6 @@ # stop as soon as one of steps will fail set -e -o pipefail -# Qt 5.5, since that's the lowest supported version -sudo add-apt-repository -y ppa:beineri/opt-qt551-trusty sudo apt-get update -qq # install needed Qt, OpenAL, opus, qrencode, GTK tray deps, sqlcipher @@ -43,16 +41,13 @@ sudo apt-get install -y --force-yes \ libtool \ libvpx-dev \ libxss-dev qrencode \ - qt55base \ - qt55script \ - qt55svg \ - qt55tools \ - qt55xmlpatterns \ + qt5-default \ + qttools5-dev-tools \ + qttools5-dev \ + libqt5opengl5-dev \ + libqt5svg5-dev \ pkg-config || yes -# Qt -source /opt/qt55/bin/qt55-env.sh || yes - # ffmpeg if [ ! -e "libs" ]; then mkdir libs; fi if [ ! -e "ffmpeg" ]; then mkdir ffmpeg; fi diff --git a/tools/update-toxcore-version.sh b/tools/update-toxcore-version.sh index bae792866..4913c784f 100755 --- a/tools/update-toxcore-version.sh +++ b/tools/update-toxcore-version.sh @@ -60,7 +60,7 @@ update_flatpak() { update_travis() { cd .travis - perl -i -0pe "s|$VERSION_PATTERN( --depth=1 https://github.com/toktok/c-toxcore)|$@\${1}|gms" build-ubuntu-14-04.sh + perl -i -0pe "s|$VERSION_PATTERN( --depth=1 https://github.com/toktok/c-toxcore)|$@\${1}|gms" build-ubuntu-16-04.sh cd .. } From 93c9eef51f8143c3e3e5c1e63e0cc64d1d533f6e Mon Sep 17 00:00:00 2001 From: Anthony Bilinski Date: Sat, 12 Oct 2019 15:39:39 -0700 Subject: [PATCH 2/2] fix(ci): fix travis' window build in debian docker by upgrading libseccomp2 seccomp is used by the docker host, and the default version shipped with Ubuntu 16.04 does not support syscalls used by Qt5's configure inside the docker container. Upgrading libseccomp2 resolves this issue. Fix #5874 --- .travis/build-windows.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.travis/build-windows.sh b/.travis/build-windows.sh index 0f4d8f323..f50df36ca 100755 --- a/.travis/build-windows.sh +++ b/.travis/build-windows.sh @@ -108,6 +108,11 @@ ls -lbh "$CACHE_DIR" # Purely for debugging ls -lbh "$PWD" +sudo apt-get update -qq +# even though we're building in docker, libseccomp2 is used by docker, and needs to be up to date +# to support functionality used by Qt's configure +sudo apt-get install libseccomp2 -y --force-yes + # Build sudo docker run --rm \ -v "$PWD/workspace":/workspace \