Files
qt5/coin/provisioning/common/linux/install-cpdb.sh
Gaurav Guleria 4296eb30f2 Provisioning: Update CPDB on linux to v2.0b6
Fixes CVE-2023-34095. Also includes minor API changes, and few feature
updates.

Change-Id: I700ba8c60929f5ad797fc7f031b74ca1fd33efea
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-07-26 05:41:22 +05:30

26 lines
759 B
Bash
Executable File

#!/usr/bin/env bash
# Copyright (C) 2023 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
# This script installs cpdb from sources.
# Requires GCC and Perl to be in PATH.
# The following dependencies should be pre-installed:
# make, autoconf, autopoint, libglib2.0-dev, libdbus-1-dev, libtool
set -ex
repName="cpdb-libs"
gitUrl="https://github.com/openprinting/$repName.git"
tmpdir="/tmp"
repDir="$tmpdir/$repName"
prefix="/usr"
rm -rf "$repDir"
cd "$tmpdir"
git clone -q "$gitUrl"
cd "$repDir"
git checkout -q tags/2.0b6
./autogen.sh > /dev/null
./configure --prefix="$prefix" > /dev/null
make "-j$(nproc)" > /dev/null && sudo make install > /dev/null
sudo ldconfig
rm -rf "$repDir"