Skip to content

Commit

Permalink
chore(macos): drop unneeded gettext from libpq building
Browse files Browse the repository at this point in the history
  • Loading branch information
dvarrazzo committed Jan 5, 2025
1 parent e4bc926 commit 5d2ae16
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 25 deletions.
24 changes: 0 additions & 24 deletions scripts/build/build_libpq.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ openssl_version="${OPENSSL_VERSION}"
# last release: https://kerberos.org/dist/
krb5_version="1.21.3"

# last release: https://www.gnu.org/software/gettext/
gettext_version="0.22.5"

# last release: https://openldap.org/software/download/
ldap_version="2.6.8"

Expand Down Expand Up @@ -153,27 +150,6 @@ if [ "$ID" == "macos" ]; then
fi


if [ "$ID" == "macos" ]; then

# Build gettext if needed
gettext_dir="gettext-${gettext_version}"
if [ ! -d "${gettext_dir}" ]; then
curl -sL "https://ftp.gnu.org/pub/gnu/gettext/gettext-${gettext_version}.tar.gz" \
| tar xzf -

pushd "${gettext_dir}"
./configure --disable-java "${make_configure_standard_flags[@]}"
make -C gettext-runtime all
else
pushd "${gettext_dir}"
fi

make -C gettext-runtime install
popd

fi


if [ "$ID" == "centos" ] || [ "$ID" == "macos" ]; then

# Build libsasl2 if needed
Expand Down
2 changes: 1 addition & 1 deletion scripts/build/wheel_macos_before_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ prjdir="$( cd "${dir}/../.." && pwd )"
"${prjdir}/scripts/build/build_libpq.sh"

# Show dependency tree
# otool -L /tmp/libpq.build/lib/*.dylib
otool -L /tmp/libpq.build/lib/*.dylib

brew install gnu-sed postgresql@${PG_VERSION}
brew link --overwrite postgresql@${PG_VERSION}
Expand Down

0 comments on commit 5d2ae16

Please sign in to comment.