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 <fxcoudert@gmail.com>
This commit is contained in:
Chris Bandy 2019-12-04 13:46:53 -06:00 committed by FX Coudert
parent 34555156d3
commit b5c37755fb

View file

@ -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"