mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-24 16:05:36 +08:00
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.
Change-Id: I724ffed9c48b9811e10de89519d8271e2f82260d
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
(cherry picked from commit 49b0435e7e)
27 lines
749 B
Bash
Executable File
27 lines
749 B
Bash
Executable File
#!/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
|