gmp: add patch for macOS 12 beta 6 crashes provided by upstream
Patches were recommended from gmp upstream and fix the crashes. I've tested the patch and it works, however I have no idea if this is the right place in the formula to apply the thing. Fixes #84719 Closes #84728. Signed-off-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>master
parent
fa4a9fca8d
commit
70cdef74be
|
@ -5,6 +5,7 @@ class Gmp < Formula
|
|||
mirror "https://ftp.gnu.org/gnu/gmp/gmp-6.2.1.tar.xz"
|
||||
sha256 "fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2"
|
||||
license any_of: ["LGPL-3.0-or-later", "GPL-2.0-or-later"]
|
||||
revision 1
|
||||
|
||||
livecheck do
|
||||
url "https://gmplib.org/download/gmp/"
|
||||
|
@ -22,6 +23,12 @@ class Gmp < Formula
|
|||
|
||||
uses_from_macos "m4" => :build
|
||||
|
||||
# Prevent crash on macOS 12 betas with release gmp 6.2.1, can be removed after the next gmp release.
|
||||
patch do
|
||||
url "https://gmplib.org/repo/gmp/raw-rev/5f32dbc41afc"
|
||||
sha256 "a44ef57903b240df6fde6c9d2fe40063f785995c43b6bfc7a237c571f53613e0"
|
||||
end
|
||||
|
||||
def install
|
||||
args = std_configure_args
|
||||
args << "--enable-cxx"
|
||||
|
|
Loading…
Reference in New Issue