Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

postgresql@12: switch to openssl@3 #134611

Merged
Changes from 1 commit
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
8 changes: 4 additions & 4 deletions Formula/postgresql@12.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class PostgresqlAT12 < Formula
url "https://ftp.postgresql.org/pub/source/v12.15/postgresql-12.15.tar.bz2"
sha256 "bb5206e2864c1c4579938b96ea6096d155f22abf2d2cc2aa57571e3c4cb12b36"
license "PostgreSQL"
revision 1
revision 2

livecheck do
url "https://ftp.postgresql.org/pub/source/"
Expand Down Expand Up @@ -33,7 +33,7 @@ class PostgresqlAT12 < Formula
# See https://github.com/Homebrew/homebrew-core/issues/47494.
depends_on "krb5"

depends_on "openssl@1.1"
depends_on "openssl@3"
depends_on "readline"

uses_from_macos "libxml2"
Expand All @@ -48,8 +48,8 @@ class PostgresqlAT12 < Formula

def install
ENV.delete "PKG_CONFIG_LIBDIR" if MacOS.version == :catalina
ENV.prepend "LDFLAGS", "-L#{Formula["openssl@1.1"].opt_lib} -L#{Formula["readline"].opt_lib}"
ENV.prepend "CPPFLAGS", "-I#{Formula["openssl@1.1"].opt_include} -I#{Formula["readline"].opt_include}"
ENV.prepend "LDFLAGS", "-L#{Formula["openssl@3"].opt_lib} -L#{Formula["readline"].opt_lib}"
ENV.prepend "CPPFLAGS", "-I#{Formula["openssl@3"].opt_include} -I#{Formula["readline"].opt_include}"

args = %W[
--disable-debug
Expand Down