Install needed PPA packages for deployment

This commit is contained in:
Janek Bevendorff 2018-01-13 01:38:26 +01:00 committed by Jonathan White
parent 337a21f6d6
commit 824607080a
No known key found for this signature in database
GPG Key ID: 440FC65F2E0C6E01
5 changed files with 41 additions and 19 deletions

View File

@ -72,6 +72,8 @@ get_desktop
get_icon get_icon
cat << EOF > ./usr/bin/keepassxc_env cat << EOF > ./usr/bin/keepassxc_env
#!/usr/bin/env bash #!/usr/bin/env bash
export LD_LIBRARY_PATH="/opt/libgcrypt20-18/lib/x86_64-linux-gnu:\${LD_LIBRARY_PATH}"
export LD_LIBRARY_PATH="/opt/gpg-error-127/lib/x86_64-linux-gnu:\${LD_LIBRARY_PATH}"
export LD_LIBRARY_PATH="..$(dirname ${QT_PLUGIN_PATH})/lib:\${LD_LIBRARY_PATH}" export LD_LIBRARY_PATH="..$(dirname ${QT_PLUGIN_PATH})/lib:\${LD_LIBRARY_PATH}"
export QT_PLUGIN_PATH="..${QT_PLUGIN_PATH}:\${KPXC_QT_PLUGIN_PATH}" export QT_PLUGIN_PATH="..${QT_PLUGIN_PATH}:\${KPXC_QT_PLUGIN_PATH}"

View File

@ -16,6 +16,8 @@
FROM ubuntu:14.04 FROM ubuntu:14.04
ENV REBUILD_COUNTER=1
ENV QT5_VERSION=59 ENV QT5_VERSION=59
ENV QT5_PPA_VERSION=${QT5_VERSION}2 ENV QT5_PPA_VERSION=${QT5_VERSION}2
@ -25,8 +27,7 @@ RUN set -x \
RUN set -x \ RUN set -x \
&& add-apt-repository ppa:beineri/opt-qt${QT5_PPA_VERSION}-trusty \ && add-apt-repository ppa:beineri/opt-qt${QT5_PPA_VERSION}-trusty \
&& add-apt-repository ppa:phoerious/keepassxc \ && add-apt-repository ppa:phoerious/keepassxc
&& LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
RUN set -x \ RUN set -x \
&& apt-get update -y \ && apt-get update -y \
@ -37,7 +38,9 @@ RUN set -x \
&& apt-get install -y \ && apt-get install -y \
cmake3 \ cmake3 \
g++ \ g++ \
libgcrypt20-dev \ libgcrypt20-18-dev \
libargon2-0-dev \
libsodium-dev \
qt${QT5_VERSION}base \ qt${QT5_VERSION}base \
qt${QT5_VERSION}tools \ qt${QT5_VERSION}tools \
qt${QT5_VERSION}x11extras \ qt${QT5_VERSION}x11extras \
@ -47,13 +50,16 @@ RUN set -x \
libxtst-dev \ libxtst-dev \
mesa-common-dev \ mesa-common-dev \
libyubikey-dev \ libyubikey-dev \
libykpers-1-dev \ libykpers-1-dev
libsodium-dev
ENV CMAKE_PREFIX_PATH=/opt/qt${QT5_VERSION}/lib/cmake ENV CMAKE_PREFIX_PATH="/opt/qt${QT5_VERSION}/lib/cmake"
ENV LD_LIBRARY_PATH=/opt/qt${QT5_VERSION}/lib ENV CMAKE_INCLUDE_PATH="/opt/libgcrypt20-18/include:/opt/gpg-error-127/include"
ENV CMAKE_LIBRARY_PATH="/opt/libgcrypt20-18/lib/x86_64-linux-gnu:/opt/gpg-error-127/lib/x86_64-linux-gnu"
ENV LD_LIBRARY_PATH="/opt/qt${QT5_VERSION}/lib:/opt/libgcrypt20-18/lib/x86_64-linux-gnu:/opt/gpg-error-127/lib/x86_64-linux-gnu"
RUN set -x \ RUN set -x \
&& echo /opt/qt${QT_VERSION}/lib > /etc/ld.so.conf.d/qt${QT5_VERSION}.conf && echo "/opt/qt${QT_VERSION}/lib" > /etc/ld.so.conf.d/qt${QT5_VERSION}.conf \
&& echo "/opt/libgcrypt20-18/lib/x86_64-linux-gnu" > /etc/ld.so.conf.d/libgcrypt20-18.conf \
&& echo "/opt/gpg-error-127/lib/x86_64-linux-gnu" > /etc/ld.so.conf.d/libgpg-error-127.conf
# AppImage dependencies # AppImage dependencies
RUN set -x \ RUN set -x \

View File

@ -18,6 +18,8 @@
FROM ubuntu:14.04 FROM ubuntu:14.04
ENV REBUILD_COUNTER=1
ENV QT5_VERSION=53 ENV QT5_VERSION=53
ENV QT5_PPA_VERSION=${QT5_VERSION}2 ENV QT5_PPA_VERSION=${QT5_VERSION}2
@ -27,27 +29,39 @@ RUN set -x \
RUN set -x \ RUN set -x \
&& add-apt-repository ppa:beineri/opt-qt${QT5_PPA_VERSION}-trusty \ && add-apt-repository ppa:beineri/opt-qt${QT5_PPA_VERSION}-trusty \
&& LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php && add-apt-repository ppa:phoerious/keepassxc
RUN set -x \ RUN set -x \
&& apt-get -y update \ && apt-get -y update \
&& apt-get -y --no-install-recommends install \ && apt-get -y --no-install-recommends install \
git build-essential clang-3.6 libclang-common-3.6-dev clang-format-3.6 cmake3 make \ build-essential \
curl ca-certificates gnupg2 \ clang-3.6 \
libgcrypt20-dev zlib1g-dev libyubikey-dev libykpers-1-dev \ libclang-common-3.6-dev \
clang-format-3.6 \
cmake3 \
make \
libgcrypt20-18-dev \
libargon2-0-dev \
libsodium-dev \
qt${QT5_VERSION}base \ qt${QT5_VERSION}base \
qt${QT5_VERSION}tools \ qt${QT5_VERSION}tools \
qt${QT5_VERSION}x11extras \ qt${QT5_VERSION}x11extras \
qt${QT5_VERSION}translations \ qt${QT5_VERSION}translations \
zlib1g-dev \
libyubikey-dev \
libykpers-1-dev \
libxi-dev \ libxi-dev \
libxtst-dev \ libxtst-dev \
xvfb \ xvfb
libsodium-dev
ENV CMAKE_PREFIX_PATH=/opt/qt${QT5_VERSION}/lib/cmake ENV CMAKE_PREFIX_PATH="/opt/qt${QT5_VERSION}/lib/cmake"
ENV LD_LIBRARY_PATH=/opt/qt${QT5_VERSION}/lib ENV CMAKE_INCLUDE_PATH="/opt/libgcrypt20-18/include:/opt/gpg-error-127/include"
ENV CMAKE_LIBRARY_PATH="/opt/libgcrypt20-18/lib/x86_64-linux-gnu:/opt/gpg-error-127/lib/x86_64-linux-gnu"
ENV LD_LIBRARY_PATH="/opt/qt${QT5_VERSION}/lib:/opt/libgcrypt20-18/lib/x86_64-linux-gnu:/opt/gpg-error-127/lib/x86_64-linux-gnu"
RUN set -x \ RUN set -x \
&& echo /opt/qt${QT_VERSION}/lib > /etc/ld.so.conf.d/qt${QT5_VERSION}.conf && echo "/opt/qt${QT_VERSION}/lib" > /etc/ld.so.conf.d/qt${QT5_VERSION}.conf \
&& echo "/opt/libgcrypt20-18/lib/x86_64-linux-gnu" > /etc/ld.so.conf.d/libgcrypt20-18.conf \
&& echo "/opt/gpg-error-127/lib/x86_64-linux-gnu" > /etc/ld.so.conf.d/libgpg-error-127.conf
RUN set -x \ RUN set -x \
&& apt-get autoremove --purge \ && apt-get autoremove --purge \

View File

@ -14,10 +14,10 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
find_path(GPGERROR_INCLUDE_DIR gpg-error.h) find_path(GPGERROR_INCLUDE_DIR gpg-error.h)
find_library(GPGERROR_LIBRARIES gpg-error) find_library(GPGERROR_LIBRARIES gpg-error)
mark_as_advanced(GPGERROR_LIBRARIES GPGERROR_INCLUDE_DIR) mark_as_advanced(GPGERROR_LIBRARIES GPGERROR_INCLUDE_DIR)
include(FindPackageHandleStandardArgs) include(FindPackageHandleStandardArgs)
include_directories(${GPGERROR_INCLUDE_DIR})
find_package_handle_standard_args(LibGPGError DEFAULT_MSG GPGERROR_LIBRARIES GPGERROR_INCLUDE_DIR) find_package_handle_standard_args(LibGPGError DEFAULT_MSG GPGERROR_LIBRARIES GPGERROR_INCLUDE_DIR)

View File

@ -629,7 +629,7 @@ void KdbxXmlReader::parseDeletedObject()
{ {
Q_ASSERT(m_xml.isStartElement() && m_xml.name() == "DeletedObject"); Q_ASSERT(m_xml.isStartElement() && m_xml.name() == "DeletedObject");
DeletedObject delObj{}; DeletedObject delObj{{}, {}};
while (!m_xml.hasError() && m_xml.readNextStartElement()) { while (!m_xml.hasError() && m_xml.readNextStartElement()) {
if (m_xml.name() == "UUID") { if (m_xml.name() == "UUID") {