spack/var/spack/repos/builtin/packages/unifyfs/auto-mount.patch
eugeneswalker 8cce884078
unifyfs: add patch to fix #15292 (#15315)
It was reported that UnifyFS had a bug with the --enable-mpi-mount
config option, which corresponds to the auto-mount variant. This bug
was fixed in the UnifyFS dev branch, however remains broken for the
0.9.0 version.

This adds a patch to the unifyfs package to fix the auto-mount
variant when installing with version 0.9.0.

This also removes the openssl dependency as unifyfs does not directly
depend on it. This was said to be a non-explicit dependency in #15258.
However, if it is needed, it is likely a non-explicit dependency of
one of unifyfs's dependencies and should be added there.

Fixes: #15292
2020-03-05 13:54:25 -08:00

26 lines
710 B
Diff

diff --git a/client/src/pmpi_wrappers.c b/client/src/pmpi_wrappers.c
index ac86d39..38755f5 100644
--- a/client/src/pmpi_wrappers.c
+++ b/client/src/pmpi_wrappers.c
@@ -14,7 +14,6 @@
#include "pmpi_wrappers.h"
#include "unifyfs.h"
-#include <mpi.h>
#include <stdio.h>
int unifyfs_mpi_init(int* argc, char*** argv)
diff --git a/client/src/pmpi_wrappers.h b/client/src/pmpi_wrappers.h
index b90057c..995e44b 100644
--- a/client/src/pmpi_wrappers.h
+++ b/client/src/pmpi_wrappers.h
@@ -15,6 +15,8 @@
#ifndef UNIFYFS_PMPI_WRAPPERS_H
#define UNIFYFS_PMPI_WRAPPERS_H
+#include <mpi.h>
+
/* MPI_Init PMPI wrapper */
int unifyfs_mpi_init(int* argc, char*** argv);
int MPI_Init(int* argc, char*** argv);