Skip to content

Commit d28837f

Browse files
authored
openmpi: Fix upstream issue with shared memory backing file creation (NixOS#378844)
2 parents dfb4b32 + 639263e commit d28837f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pkgs/by-name/op/openmpi/package.nix

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
lib,
33
stdenv,
44
fetchurl,
5+
fetchpatch,
56
removeReferencesTo,
67
gfortran,
78
perl,
@@ -47,6 +48,17 @@ stdenv.mkDerivation (finalAttrs: {
4748
sha256 = "sha256-vUGD/LxDR3wlR5m0Kd8abldsBC50otL4s31Tey/5gVc=";
4849
};
4950

51+
patches = [
52+
# This patch can be removed with the next openmpi update (>5.0.6)
53+
# See https://github.com/open-mpi/ompi/issues/12784 and https://github.com/open-mpi/ompi/pull/13003
54+
# Fixes issue where the shared memory backing file cannot be created because directory trees are never created
55+
(fetchpatch {
56+
name = "fix-singletons-session-dir";
57+
url = "https://github.com/open-mpi/ompi/commit/4d4f7212decd0d0ca719688b15dc9b3ee7553a52.patch";
58+
hash = "sha256-Mb8qXtAUhAQ90v0SdL24BoTASsKRq2Gu8nYqoeSc9DI=";
59+
})
60+
];
61+
5062
postPatch = ''
5163
patchShebangs ./
5264

0 commit comments

Comments
 (0)