Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions percona-packaging/scripts/pg_stat_monitor_builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,9 @@ install_deps() {
echo "waiting"
done
fi
if [[ "${RHEL}" -eq 9 ]]; then
PKGLIST+=" gcc-toolset-14"
fi
until yum -y install ${PKGLIST}; do
echo "waiting"
sleep 1
Expand Down
9 changes: 9 additions & 0 deletions rpm/pg-stat-monitor.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
%global pgrel @@PG_REL@@
%global rpm_release @@RPM_RELEASE@@
%global pginstdir /usr/pgsql-@@PG_REL@@/
%if 0%{?rhel} && 0%{?rhel} == 9
%global gts_version 14
%endif

Summary: Statistics collector for PostgreSQL
Name: %{sname}%{pgrel}
Expand All @@ -11,6 +14,9 @@ License: PostgreSQL
Source0: percona-pg-stat-monitor%{pgrel}-%{version}.tar.gz
URL: https://github.com/Percona-Lab/pg_stat_monitor
BuildRequires: percona-postgresql%{pgrel}-devel
%if 0%{?gts_version}
BuildRequires: gcc-toolset-%{gts_version}-gcc gcc-toolset-%{gts_version}-gcc-c++ gcc-toolset-%{gts_version}-annobin-plugin-gcc
%endif
Requires: postgresql-server
Provides: percona-pg-stat-monitor%{pgrel}
Conflicts: percona-pg-stat-monitor%{pgrel}
Expand All @@ -33,6 +39,9 @@ It provides all the features of pg_stat_statment plus its own feature set.


%build
%if 0%{?gts_version}
source /opt/rh/gcc-toolset-14/enable
%endif
sed -i 's:PG_CONFIG ?= pg_config:PG_CONFIG = /usr/pgsql-%{pgrel}/bin/pg_config:' Makefile
%{__make} USE_PGXS=1 %{?_smp_mflags}

Expand Down
Loading