Skip to content

Conversation

@Manika-Percona
Copy link
Contributor

@Manika-Percona Manika-Percona requested a review from a team January 28, 2026 13:17
Copy link

@dutow dutow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pg_oidc_builder.sh seems like a copy pasted and modified script for many components, in it's current state that seems difficult to maintain and impossible to properly review. It probably needs some serious cleanup/refactoring, but that's not the point of this PR.

cd $WORKDIR
RHEL=$(rpm --eval %rhel)
ARCH=$(echo $(uname -m) | sed -e 's:i686:i386:g')
if [ -f /opt/rh/devtoolset-7/enable ]; then
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems this script has lots of old copy-paste leftovers, like devtoolset-7/llvm-toolset-7 are ancient and I am not sure why we would want to enable them, we definitely should clean these up at some point, but that probably shouldn't be as part of this pull requets, so I'm just adding this as a note.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As mentioned in my previous comment, we can address such cleanups of code after Q1'26 releases.

if [[ "${RHEL}" -eq 9 ]]; then
if [[ "$COMPONENT" == "postgresql" || "$COMPONENT" == "pg_repack" ]]; then
if [[ "$COMPONENT" == "postgresql" || "$COMPONENT" == "pg_repack" || "$COMPONENT" == "pg_oidc" ]]; then
INSTALL_LIST+="gcc-toolset-14 "
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

again not part of this change, but I do wonder why some components require different gcc toolsets on different distros, that seems strange

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These components' builds are failing without this dependency. Maybe we can dive deeper in it later, like whether these components be build with a common gcc toolset.

INSTALL_LIST+="gdal311-devel proj96-devel geos313-devel pcre2-devel "
fi
if [[ "$COMPONENT" == "pg_oidc" ]]; then
INSTALL_LIST+="libstdc++-static "
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this needed? I thought this is part of the devtoolset for the build machine, and it has no runtime dependency when the package is installed on the system.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this is not a runtime dependency but a build time dependency. pg_oidc build is failing without it.

@Manika-Percona
Copy link
Contributor Author

The pg_oidc_builder.sh seems like a copy pasted and modified script for many components, in it's current state that seems difficult to maintain and impossible to properly review. It probably needs some serious cleanup/refactoring, but that's not the point of this PR.

Yes, you are right. This same script format is being used across all the components. However, I had cleaned up it a bit before Q4'25 release, but it still needs some more refining. We can address this after Q1'26 releases.

@Manika-Percona Manika-Percona merged commit 5e8c97a into percona:18.2 Jan 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants