openmpi: fix segfault in btl vader at MPI_Finalize

The fix is scheduled for release in OpenMPI 4.0.2.

Upstream issue: https://github.com/open-mpi/ompi/issues/6524
This commit is contained in:
Orivej Desh 2019-06-28 03:24:10 +00:00
parent 8789ff3179
commit bfc789118b

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, gfortran, perl, libnl
{ stdenv, fetchurl, fetchpatch, gfortran, perl, libnl
, rdma-core, zlib, numactl, libevent, hwloc
# Enable the Sun Grid Engine bindings
@ -19,6 +19,14 @@ in stdenv.mkDerivation rec {
sha256 = "02cpzcp113gj5hb0j2xc0cqma2fn04i2i0bzf80r71120p9bdryc";
};
patches = [
(fetchpatch {
name = "openmpi-mca_btl_vader_component_close-segfault.patch";
url = "https://github.com/open-mpi/ompi/pull/6526.patch";
sha256 = "0s7ac9rkcj3fi6ampkvy76njlj478yyr4zvypjc7licy6dgr595x";
})
];
postPatch = ''
patchShebangs ./
'';