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

@ -123,7 +123,7 @@ Configurations:
Template: 'qtci-linux-SLES-15_SP5-x86_64-50' Template: 'qtci-linux-SLES-15_SP5-x86_64-50'
Compiler: 'GCC' Compiler: 'GCC'
Features: ['Sccache', 'DisableTests', 'UseConfigure', 'GenerateSBOM', 'VerifySBOM'] Features: ['Sccache', 'DisableTests', 'UseConfigure', 'GenerateSBOM', 'VerifySBOM']
Configure arguments: '-nomake examples -static -no-sql-mysql' Configure arguments: '-nomake examples -static -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-psql -no-sql-mimer'
Environment variables: [ Environment variables: [
'CMAKE_ARGS=-DOPENSSL_ROOT_DIR={{.Env.OPENSSL_HOME}}', 'CMAKE_ARGS=-DOPENSSL_ROOT_DIR={{.Env.OPENSSL_HOME}}',
'NON_QTBASE_CMAKE_ARGS=-DFFMPEG_DIR={{.Env.FFMPEG_DIR}}' 'NON_QTBASE_CMAKE_ARGS=-DFFMPEG_DIR={{.Env.FFMPEG_DIR}}'

View File

@ -5,7 +5,7 @@ Configurations:
Template: 'qtci-linux-SLES-15_SP5-x86_64-50' Template: 'qtci-linux-SLES-15_SP5-x86_64-50'
Compiler: 'GCC' Compiler: 'GCC'
Features: ['Sccache', 'MinimalStaticTests', 'UseConfigure'] Features: ['Sccache', 'MinimalStaticTests', 'UseConfigure']
Configure arguments: '-nomake examples -static -no-sql-mysql' Configure arguments: '-nomake examples -static -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-psql -no-sql-mimer'
Environment variables: [ Environment variables: [
'CMAKE_ARGS=-DOPENSSL_ROOT_DIR={{.Env.OPENSSL_HOME}}' 'CMAKE_ARGS=-DOPENSSL_ROOT_DIR={{.Env.OPENSSL_HOME}}'
] ]
@ -14,7 +14,7 @@ Configurations:
Template: 'qtci-windows-11_23H2-x86_64-53' Template: 'qtci-windows-11_23H2-x86_64-53'
Compiler: 'MSVC2022' Compiler: 'MSVC2022'
Features: ['Sccache', 'MinimalStaticTests', 'UseConfigure'] Features: ['Sccache', 'MinimalStaticTests', 'UseConfigure']
Configure arguments: '-release -force-debug-info -static -nomake examples -qt-zlib' Configure arguments: '-release -force-debug-info -static -nomake examples -qt-zlib -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-psql -no-sql-mimer'
Environment variables: [ Environment variables: [
'CMAKE_ARGS=-DFEATURE_msvc_obj_debug_info=ON -DOPENSSL_ROOT_DIR={{.Env.OPENSSL_INCLUDE_x64}}\..', 'CMAKE_ARGS=-DFEATURE_msvc_obj_debug_info=ON -DOPENSSL_ROOT_DIR={{.Env.OPENSSL_INCLUDE_x64}}\..',
'LLVM_INSTALL_DIR={{.Env.LLVM_INSTALL_DIR_msvc}}', 'LLVM_INSTALL_DIR={{.Env.LLVM_INSTALL_DIR_msvc}}',

View File

@ -4,21 +4,38 @@
set -e set -e
SSL_VER=$1
PACK_TYPE=$2
PROVISIONING_DIR="$(dirname "$0")/../../" PROVISIONING_DIR="$(dirname "$0")/../../"
# shellcheck source=../unix/common.sourced.sh # shellcheck source=../unix/common.sourced.sh
source "${BASH_SOURCE%/*}/../unix/common.sourced.sh" source "${BASH_SOURCE%/*}/../unix/common.sourced.sh"
# shellcheck source=../unix/DownloadURL.sh # shellcheck source=../unix/DownloadURL.sh
source "${BASH_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 localRepo=http://ci-files01-hki.ci.qt.io/input/docker
upstreamRepo=https://github.com/FirebirdSQL/firebird/releases/download/v5.0.0 upstreamRepo=https://github.com/FirebirdSQL/firebird/releases/download/v${version}
packageFile=Firebird-5.0.0.1306-0-linux-x64.tar.gz packageFile=${fullversion}.tar.gz
sha=9a04b54d308ca10394d5339fe039b9e367b441c2 sha=369e9187913c6e1bc8a0f79f9e1826c0e35dd72f
DownloadURL $localRepo/$packageFile $upstreamRepo/$packageFile $sha /tmp/$packageFile DownloadURL $localRepo/$packageFile $upstreamRepo/$packageFile $sha /tmp/$packageFile
tar xf /tmp/$packageFile -C /tmp echo "Unpacking ${packageFile}"
/tmp/Firebird-5.0.0.1306-0-linux-x64/install.sh -silent 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

12
coin/provisioning/common/windows/install-firebird.ps1 Executable file → Normal file
View File

@ -5,16 +5,15 @@
# This script installs firebird $version. # This script installs firebird $version.
$version = "5.0.0" $version = "5.0.1"
$fullversion = "$version.1306-0" $fullversion = "$version.1469-0"
$packagex64 = "C:\Windows\temp\Firebird-$fullversion-windows-x64.zip" $packagex64 = "C:\Windows\temp\Firebird-$fullversion-windows-x64.zip"
# Install x64 bit versions # Install x64 bit versions
$architecture = "x64" $installFolder = "C:\Utils\firebird"
$installFolder = "C:\Utils\postgresql"
$externalUrl = "https://github.com/FirebirdSQL/firebird/releases/download/v$version/Firebird-$fullversion-windows-x64.zip" $externalUrl = "https://github.com/FirebirdSQL/firebird/releases/download/v$version/Firebird-$fullversion-windows-x64.zip"
$internalUrl = "\\ci-files01-hki.ci.qt.io\provisioning\windows\Firebird-$fullversion-windows-x64.zip" $internalUrl = "\\ci-files01-hki.ci.qt.io\provisioning\windows\Firebird-$fullversion-windows-x64.zip"
$sha1 = "3cedcdc0a0f8b9e313d0ca11ac06c90c0b7deb3f" $sha1 = "7b56ea692215b128415ef9599e18c40bef12152f"
Write-Host "Fetching from URL ..." Write-Host "Fetching from URL ..."
Download $externalUrl $internalUrl $packagex64 Download $externalUrl $internalUrl $packagex64
@ -25,8 +24,7 @@ Extract-7Zip $packagex64 $installFolder
Write-Host "Remove downloaded $packagex64 ..." Write-Host "Remove downloaded $packagex64 ..."
Remove $packagex64 Remove $packagex64
Set-EnvironmentVariable "Interbase_INCLUDEDIR" "$installFolder\include" Set-EnvironmentVariable "Interbase_ROOT" "$installFolder"
Set-EnvironmentVariable "Interbase_LIBDIR" "$installFolder\lib"
# Store version information to ~/versions.txt, which is used to print version information to provision log. # Store version information to ~/versions.txt, which is used to print version information to provision log.
Write-Output "Firebird = $fullversion" >> ~/versions.txt Write-Output "Firebird = $fullversion" >> ~/versions.txt

View File

@ -0,0 +1,8 @@
#!/usr/bin/env bash
# Copyright (C) 2022 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
set -ex
BASEDIR=$(dirname "$0")
"$BASEDIR/../common/linux/install-firebird.sh"

View File

@ -0,0 +1,8 @@
#!/usr/bin/env bash
# Copyright (C) 2022 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
set -ex
BASEDIR=$(dirname "$0")
"$BASEDIR/../common/linux/install-firebird.sh"

View File

@ -0,0 +1,8 @@
#!/usr/bin/env bash
# Copyright (C) 2022 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
set -ex
BASEDIR=$(dirname "$0")
"$BASEDIR/../common/linux/install-firebird.sh"

View File

@ -0,0 +1,8 @@
#!/usr/bin/env bash
# Copyright (C) 2022 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
set -ex
BASEDIR=$(dirname "$0")
"$BASEDIR/../common/linux/install-firebird.sh"

View File

@ -0,0 +1 @@
. "$PSScriptRoot\..\common\windows\install-firebird.ps1"

View File

@ -0,0 +1 @@
. "$PSScriptRoot\..\common\windows\install-firebird.ps1"