postgresql@10: move to OpenSSL 1.1

This commit is contained in:
FX Coudert 2019-09-04 17:03:03 +02:00
parent 95937ff41e
commit 94b353f55a

View file

@ -3,6 +3,7 @@ class PostgresqlAT10 < Formula
homepage "https://www.postgresql.org/"
url "https://ftp.postgresql.org/pub/source/v10.10/postgresql-10.10.tar.bz2"
sha256 "ad4f9b8575f98ed6091bf9bb2cb16f0e52795a5f66546c1f499ca5c69b21f253"
revision 1
bottle do
sha256 "2776ff893d575c5e3e82a53f03f13f68bdaa779b0a8669178da7d33bece21a06" => :mojave
@ -14,15 +15,15 @@ class PostgresqlAT10 < Formula
depends_on "pkg-config" => :build
depends_on "icu4c"
depends_on "openssl"
depends_on "openssl@1.1"
depends_on "readline"
def install
# avoid adding the SDK library directory to the linker search path
ENV["XML2_CONFIG"] = "xml2-config --exec-prefix=/usr"
ENV.prepend "LDFLAGS", "-L#{Formula["openssl"].opt_lib} -L#{Formula["readline"].opt_lib}"
ENV.prepend "CPPFLAGS", "-I#{Formula["openssl"].opt_include} -I#{Formula["readline"].opt_include}"
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}"
args = %W[
--disable-debug
@ -55,7 +56,7 @@ class PostgresqlAT10 < Formula
# to inside the SDK, so we need to use `-iwithsysroot` instead
# of `-I` to point to the correct location.
# https://www.postgresql.org/message-id/153558865647.1483.573481613491501077%40wrigleys.postgresql.org
ENV.prepend "LDFLAGS", "-L#{Formula["openssl"].opt_lib} -L#{Formula["readline"].opt_lib} -R#{lib}/postgresql"
ENV.prepend "LDFLAGS", "-L#{Formula["openssl@1.1"].opt_lib} -L#{Formula["readline"].opt_lib} -R#{lib}/postgresql"
system "./configure", *args
system "make"