summaryrefslogtreecommitdiff
path: root/net/openmpi2
diff options
context:
space:
mode:
authorDanilo Egea Gondolfo <danilo@FreeBSD.org>2017-12-28 19:28:24 +0000
committerDanilo Egea Gondolfo <danilo@FreeBSD.org>2017-12-28 19:28:24 +0000
commit33f51ec55036fda6f02b594ef0bdf4e5f6d4b891 (patch)
tree445b148cd9b531eb5f8dfbc50d4a3f80bff26d62 /net/openmpi2
parentUpdate multimedia/syncplay to 1.5.1 (diff)
- Teach OpenMPI that posix_fallocate(2) returns EINVAL on most recent ZFS
Notes
Notes: svn path=/head/; revision=457470
Diffstat (limited to 'net/openmpi2')
-rw-r--r--net/openmpi2/Makefile1
-rw-r--r--net/openmpi2/files/patch-opal_mca_pmix_pmix112_pmix_src_sm_pmix__mmap.c20
2 files changed, 21 insertions, 0 deletions
diff --git a/net/openmpi2/Makefile b/net/openmpi2/Makefile
index 06f3dd33ecc0..727fbf8b909c 100644
--- a/net/openmpi2/Makefile
+++ b/net/openmpi2/Makefile
@@ -2,6 +2,7 @@
PORTNAME= openmpi
PORTVERSION= 2.1.2
+PORTREVISION= 1
CATEGORIES= net parallel
MASTER_SITES= http://www.open-mpi.org/software/ompi/v${PORTVERSION:R}/downloads/
PKGNAMESUFFIX= 2
diff --git a/net/openmpi2/files/patch-opal_mca_pmix_pmix112_pmix_src_sm_pmix__mmap.c b/net/openmpi2/files/patch-opal_mca_pmix_pmix112_pmix_src_sm_pmix__mmap.c
new file mode 100644
index 000000000000..e3ff0463a342
--- /dev/null
+++ b/net/openmpi2/files/patch-opal_mca_pmix_pmix112_pmix_src_sm_pmix__mmap.c
@@ -0,0 +1,20 @@
+--- opal/mca/pmix/pmix112/pmix/src/sm/pmix_mmap.c.orig 2017-12-28 19:05:48 UTC
++++ opal/mca/pmix/pmix112/pmix/src/sm/pmix_mmap.c
+@@ -67,6 +67,9 @@ int _mmap_segment_create(pmix_sm_seg_t *sm_seg, const
+ if (0 != (rc = posix_fallocate(sm_seg->seg_id, 0, size))) {
+ pmix_output_verbose(2, pmix_globals.debug_output,
+ "sys call posix_fallocate(2) fail\n");
++ if (EINVAL == rc) {
++ goto ftruncate;
++ }
+ if (ENOSPC == rc) {
+ rc = PMIX_ERR_OUT_OF_RESOURCE;
+ goto out;
+@@ -86,6 +89,7 @@ int _mmap_segment_create(pmix_sm_seg_t *sm_seg, const
+ goto map_memory;
+ }
+ #endif
++ftruncate:
+ if (0 != ftruncate(sm_seg->seg_id, size)) {
+ pmix_output_verbose(2, pmix_globals.debug_output,
+ "sys call ftruncate(2) fail\n");