-
Notifications
You must be signed in to change notification settings - Fork 632
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provisioning: Add ICU to Ubuntu 24.04 arm64
Fixes: QTQAINFRA-6510 Pick-to: 6.8 Change-Id: Ia6aed07afe9b69ca109d95945faa87c1424f557b Reviewed-by: Liang Qi <[email protected]> Reviewed-by: Tero Heikkinen <[email protected]>
- Loading branch information
Tero Heikkinen
committed
Sep 5, 2024
1 parent
88ce036
commit 86a9bd1
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
coin/provisioning/qtci-linux-Ubuntu-24.04-aarch64/30-install_icu.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#!/usr/bin/env bash | ||
# Copyright (C) 2024 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 | ||
|
||
# shellcheck source=../common/unix/DownloadURL.sh | ||
source "${BASH_SOURCE%/*}/../common/unix/DownloadURL.sh" | ||
|
||
set -ex | ||
|
||
# This script will install ICU | ||
|
||
icuVersion="73.2" | ||
icuLocationLib="/opt/icu/lib64" | ||
icuLocationInclude="/opt/icu/include" | ||
sha1="82f3ed54fd7ea8ff469d9000164e4dc23378fc8c" | ||
baseBinaryPackageURL="http://ci-files01-hki.ci.qt.io/input/icu/$icuVersion/icu-linux-g++-Ubuntu24.04-aarch64.7z" | ||
baseBinaryPackageExternalURL="http://master.qt.io/development_releases/prebuilt/icu/prebuilt/$icuVersion/icu-linux-g++-Ubuntu24.04-aarch64.7z" | ||
|
||
sha1Dev="37c2528df9d2b5cba1765fe8036e69b7c326a1e1" | ||
develPackageURL="http://ci-files01-hki.ci.qt.io/input/icu/$icuVersion/icu-linux-g++-Ubuntu24.04-aarch64-devel.7z" | ||
develPackageExternalURL="http://master.qt.io/development_releases/prebuilt/icu/prebuilt/$icuVersion/icu-linux-g++-Ubuntu24.04-aarch64-devel.7z" | ||
|
||
echo "Installing custom ICU $icuVersion $sha1 packages on Ubuntu to $icuLocationLib" | ||
|
||
targetFile=$(mktemp) | ||
sudo mkdir -p "$icuLocationLib" | ||
sudo mkdir -p "$icuLocationInclude" | ||
DownloadURL "$baseBinaryPackageURL" "$baseBinaryPackageExternalURL" "$sha1" "$targetFile" | ||
sudo 7z x -y -o$icuLocationLib "$targetFile" | ||
sudo rm "$targetFile" | ||
|
||
echo "Installing custom ICU devel packages on Ubuntu" | ||
|
||
tempDir=$(mktemp -d) | ||
|
||
targetFile=$(mktemp) | ||
DownloadURL "$develPackageURL" "$develPackageExternalURL" "$sha1Dev" "$targetFile" | ||
7z x -y -o"$tempDir" "$targetFile" | ||
|
||
sudo cp -a "$tempDir"/lib/* "$icuLocationLib" | ||
sudo cp -a "$tempDir"/* /opt/icu/ | ||
|
||
sudo rm "$targetFile" | ||
sudo rm -fr "$tempDir" | ||
|
||
sudo /sbin/ldconfig | ||
|
||
echo "ICU = $icuVersion" >> ~/versions.txt |