From b5c37755fb2c1e632397f05a3ec633899048b817 Mon Sep 17 00:00:00 2001 From: Chris Bandy Date: Wed, 4 Dec 2019 13:46:53 -0600 Subject: [PATCH] postgresql: link against MIT Kerberos The GSS libraries provided in macOS segfault when used in applications that fork(). This happens more often in languages like Ruby and Python. Notably, `rails console` breaks almost immediately. Discussion: https://postgr.es/m/16041-b44f9931ad91fc3d%40postgresql.org Closes #47494. Signed-off-by: FX Coudert --- Formula/postgresql.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Formula/postgresql.rb b/Formula/postgresql.rb index b9b1672d2d..847b40fd76 100644 --- a/Formula/postgresql.rb +++ b/Formula/postgresql.rb @@ -13,6 +13,11 @@ class Postgresql < Formula depends_on "pkg-config" => :build depends_on "icu4c" + + # GSSAPI provided by Kerberos.framework crashes when forked. + # See https://github.com/Homebrew/homebrew-core/issues/47494. + depends_on "krb5" + depends_on "openssl@1.1" depends_on "readline" uses_from_macos "libxml2"