From 3bfeefe1a7fe5cc9f3f0fc356f87a293c4bc81c5 Mon Sep 17 00:00:00 2001 From: Julien Schueller Date: Sat, 5 Oct 2024 11:40:31 +0200 Subject: [PATCH] hdf5: fix c++ regression backports https://github.com/HDFGroup/hdf5/pull/4473 to fix a regression in the c++ layer (H5Group::operator= not handling exceptions) else the c++ layer crashes in the new 1.14.4.3 version just published on homebrew --- Formula/h/hdf5.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Formula/h/hdf5.rb b/Formula/h/hdf5.rb index 6f9181e96beb..ba65963702ce 100644 --- a/Formula/h/hdf5.rb +++ b/Formula/h/hdf5.rb @@ -33,6 +33,12 @@ class Hdf5 < Formula conflicts_with "hdf5-mpi", because: "hdf5-mpi is a variant of hdf5, one can only use one or the other" + # fix c++ regression, can be removed in next release + patch do + url "https://github.com/HDFGroup/hdf5/commit/ea76013648aac81cee941a7b7a86f21201d1debf.patch?full_index=1" + sha256 "c4413888131ddc372e2c6b19230c477f169e63c286efee3ddd6a7fe264eabacd" + end + def install ENV["libaec_DIR"] = Formula["libaec"].opt_prefix.to_s args = %w[