Coin: Enable firebird provisioning

Enable Firebird provisioning for
 - Windows 10 22H2
 - Windows 11 23H2
 - Ubuntu 22.04 x86_64
 - RHEL 9.2 x86_64
 - SLES 15 SP5 x86_64
 - openSUSE 15.5 x86_64

Change-Id: I075d4c468ed7c103b9e1090aea3ff36014b4e8fc
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
This commit is contained in:
Christian Ehrlicher
2024-07-17 13:32:39 +02:00
parent 2151c5510f
commit 333cbd0592
10 changed files with 67 additions and 18 deletions

View File

@@ -4,21 +4,38 @@
set -e
SSL_VER=$1
PACK_TYPE=$2
PROVISIONING_DIR="$(dirname "$0")/../../"
# shellcheck source=../unix/common.sourced.sh
source "${BASH_SOURCE%/*}/../unix/common.sourced.sh"
# shellcheck source=../unix/DownloadURL.sh
source "${BASH_SOURCE%/*}/../unix/DownloadURL.sh"
# shellcheck source=../unix/SetEnvVar.sh
source "${BASH_SOURCE%/*}/../unix/SetEnvVar.sh"
version=5.0.1
fullversion=Firebird-${version}.1469-0-linux-x64
instpath=/opt/Firebird
localRepo=http://ci-files01-hki.ci.qt.io/input/docker
upstreamRepo=https://github.com/FirebirdSQL/firebird/releases/download/v5.0.0
packageFile=Firebird-5.0.0.1306-0-linux-x64.tar.gz
sha=9a04b54d308ca10394d5339fe039b9e367b441c2
upstreamRepo=https://github.com/FirebirdSQL/firebird/releases/download/v${version}
packageFile=${fullversion}.tar.gz
sha=369e9187913c6e1bc8a0f79f9e1826c0e35dd72f
DownloadURL $localRepo/$packageFile $upstreamRepo/$packageFile $sha /tmp/$packageFile
tar xf /tmp/$packageFile -C /tmp
/tmp/Firebird-5.0.0.1306-0-linux-x64/install.sh -silent
echo "Unpacking ${packageFile}"
tar xvf /tmp/${packageFile} -C /tmp
echo "Checking unpacked directory"
echo "Starting install"
if [ -d "${instpath}" ]; then
sudo rm -rf ${instpath};
fi
sudo mkdir ${instpath}
sudo tar xf /tmp/${fullversion}/buildroot.tar.gz -C ${instpath}
echo "Cleaning up"
rm -rf /tmp/${fullversion}
rm -rf /tmp/${packageFile}
SetEnvVar "Interbase_ROOT" "${instpath}/opt/firebird/"
echo "Firebird = $version" >> ~/versions.txt