mirror of
git://code.qt.io/qt/qt5.git
synced 2026-03-23 23:01:38 +08:00
Install patchelf on RHEL
Patchelf is needed for fixing FFmpeg dependencies, the previous CR reveals details. Patchelf is not available in the standard package manager on RHEL, let's install it from sources. Pick-to: 6.8 Change-Id: I724ffed9c48b9811e10de89519d8271e2f82260d Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
26
coin/provisioning/common/linux/install-patchelf.sh
Executable file
26
coin/provisioning/common/linux/install-patchelf.sh
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/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
|
||||
|
||||
|
||||
source "${BASH_SOURCE%/*}/../unix/InstallFromCompressedFileFromURL.sh"
|
||||
patchelf_version="0.18.0"
|
||||
|
||||
url_cached="http://ci-files01-hki.ci.qt.io/input/patchelf/$patchelf_version.tar.gz"
|
||||
url_public="https://github.com/NixOS/patchelf/archive/refs/tags/$patchelf_version.tar.gz"
|
||||
sha1="7eb974172de73b7b452ee376237ad78601603c45"
|
||||
|
||||
target_source_dir="$HOME/patchelf-$patchelf_version"
|
||||
|
||||
if [ ! -d "$target_source_dir" ]; then
|
||||
InstallFromCompressedFileFromURL "$url_cached" "$url_public" "$sha1" "$HOME" ""
|
||||
fi
|
||||
|
||||
pushd "$target_source_dir"
|
||||
|
||||
./bootstrap.sh
|
||||
./configure
|
||||
make
|
||||
sudo make install
|
||||
|
||||
popd
|
||||
Reference in New Issue
Block a user