Skip to content

Commit

Permalink
Fixes clang version issue that conflicts with llvm version in percona… (
Browse files Browse the repository at this point in the history
#468)

Fixes clang version issue that conflicts with llvm version in percona repositories
  • Loading branch information
maqeel75 committed Jun 24, 2024
1 parent 508e359 commit 74d9847
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions percona-packaging/scripts/pg_stat_monitor_builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,19 @@ install_deps() {
chmod 777 /usr/bin/percona-release
percona-release enable ${PPG_REPO_NAME} testing

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

PKGLIST="percona-postgresql${PG_RELEASE}-devel"
PKGLIST+=" clang-devel git clang llvm-devel rpmdevtools vim wget"
PKGLIST+=" git llvm-devel rpmdevtools vim wget"
PKGLIST+=" perl binutils gcc gcc-c++"
PKGLIST+=" clang-devel llvm-devel git rpm-build rpmdevtools wget gcc make autoconf"
PKGLIST+=" llvm-devel 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 74d9847

Please sign in to comment.