Skip to content

Commit

Permalink
Fixes llvm-devel package installation issue. (#494)
Browse files Browse the repository at this point in the history
  • Loading branch information
maqeel75 authored Nov 22, 2024
1 parent 85f0401 commit 7f1344e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions percona-packaging/scripts/pg_stat_monitor_builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -211,17 +211,18 @@ install_deps() {

if [ x"$RHEL" = x8 ];
then
clang_version=$(yum list --showduplicates clang-devel | grep "17.0" | grep clang | awk '{print $2}' | head -n 1)
yum install -y clang-devel-${clang_version} clang-${clang_version}
clang_version=$(yum list --showduplicates clang-devel | grep "17.0" | grep clang | awk '{print $2}' | head -n 1)
llvm_version=$(yum list --showduplicates llvm-devel | grep "17.0" | grep llvm | awk '{print $2}' | head -n 1)
yum install -y clang-devel-${clang_version} clang-${clang_version} llvm-devel-${llvm_version}
dnf module -y disable llvm-toolset
else
yum install -y clang-devel clang
yum install -y clang-devel clang llvm-devel
fi

PKGLIST="percona-postgresql${PG_RELEASE}-devel"
PKGLIST+=" git llvm-devel rpmdevtools vim wget"
PKGLIST+=" git rpmdevtools vim wget"
PKGLIST+=" perl binutils gcc gcc-c++"
PKGLIST+=" llvm-devel git rpm-build rpmdevtools wget gcc make autoconf"
PKGLIST+=" git rpm-build rpmdevtools wget gcc make autoconf"
if [[ "${RHEL}" -ge 8 ]]; then
dnf config-manager --set-enabled ol${RHEL}_codeready_builder
dnf -y module disable postgresql || true
Expand Down

0 comments on commit 7f1344e

Please sign in to comment.