From f0d741cece194bacc104208caffd72597685a531 Mon Sep 17 00:00:00 2001 From: Mark Madsen Date: Wed, 5 Jul 2017 00:46:16 -0600 Subject: [PATCH] erlang: 10.13 boringssl fix --- Formula/erlang.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Formula/erlang.rb b/Formula/erlang.rb index cf9e65be05..8d6683cb7a 100644 --- a/Formula/erlang.rb +++ b/Formula/erlang.rb @@ -42,6 +42,16 @@ class Erlang < Formula sha256 "1ab25110b148ce263d6e68cd5a3b912299b6066cfcd9d2fce416a4e9b7d2543a" end + # Check if this patch can be removed when OTP 20.1 is released. + # Erlang will crash on macOS 10.13 any time the crypto lib is used. + # The Erlang team has an open PR for the patch but it needs to be applied to + # older releases. See https://github.com/erlang/otp/pull/1501 and + # https://bugs.erlang.org/browse/ERL-439 for additional information. + patch do + url "https://github.com/erlang/otp/pull/1501.patch?full_index=1" + sha256 "e449d698a82e07eddfd86b5b06a0b4ab8fb4674cb72fc6ab037aa79b096f0a12" + end + def install # Unset these so that building wx, kernel, compiler and # other modules doesn't fail with an unintelligable error.