From 2727f759199373242cfc843b8e28152083c4cd4c Mon Sep 17 00:00:00 2001 From: Janek Bevendorff Date: Mon, 26 Jun 2017 01:40:21 +0200 Subject: [PATCH 1/2] Fix release tool build checks --- release-tool | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/release-tool b/release-tool index a08e9601b..680cdca2c 100755 --- a/release-tool +++ b/release-tool @@ -525,8 +525,7 @@ build() { done init - - performChecks + checkWorkingTreeClean OUTPUT_DIR="$(realpath "$OUTPUT_DIR")" From 13cc117caa5e1d31da2290528046cf83c1f98a38 Mon Sep 17 00:00:00 2001 From: Janek Bevendorff Date: Mon, 26 Jun 2017 01:40:40 +0200 Subject: [PATCH 2/2] Require CMake 3.1.0 and update Dockerfile --- CMakeLists.txt | 2 +- Dockerfile | 20 +++++++++++++------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 627676105..77dbd9579 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,7 +22,7 @@ endif() project(KeePassXC) -cmake_minimum_required(VERSION 2.8.12) +cmake_minimum_required(VERSION 3.1.0) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake) diff --git a/Dockerfile b/Dockerfile index 8602d44a3..7da658219 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,7 +21,13 @@ RUN set -x \ && apt-get install --yes software-properties-common RUN set -x \ - && add-apt-repository --yes ppa:beineri/opt-qt58-trusty + && add-apt-repository ppa:george-edison55/cmake-3.x + +ENV QT_VERSION=qt59 + +RUN set -x \ + && add-apt-repository --yes ppa:beineri/opt-${QT_VERSION}-trusty + RUN set -x \ && apt-get update \ @@ -29,9 +35,9 @@ RUN set -x \ g++ \ cmake \ libgcrypt20-dev \ - qt58base \ - qt58tools \ - qt58x11extras \ + ${QT_VERSION}base \ + ${QT_VERSION}tools \ + ${QT_VERSION}x11extras \ libxi-dev \ libxtst-dev \ zlib1g-dev \ @@ -50,7 +56,7 @@ VOLUME /keepassxc/src VOLUME /keepassxc/out WORKDIR /keepassxc -ENV CMAKE_PREFIX_PATH=/opt/qt58/lib/cmake -ENV LD_LIBRARY_PATH=/opt/qt58/lib +ENV CMAKE_PREFIX_PATH=/opt/${QT_VERSION}/lib/cmake +ENV LD_LIBRARY_PATH=/opt/${QT_VERSION}/lib RUN set -x \ - && echo /opt/qt58/lib > /etc/ld.so.conf.d/qt58.conf + && echo /opt/${QT_VERSION}/lib > /etc/ld.so.conf.d/${QT_VERSION}.conf