diff --git a/Formula/h/hdf5.rb b/Formula/h/hdf5.rb index 6f9181e96bebd..341b075107e94 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" + # upstream commit to fix c++ regression: https://github.com/HDFGroup/hdf5/pull/4473 + 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[