rempi: patch rempi_message_manager.h: include string (#34982)
This commit is contained in:
parent
b148a43f08
commit
c6d715c188
11
var/spack/repos/builtin/packages/rempi/include-string.patch
Normal file
11
var/spack/repos/builtin/packages/rempi/include-string.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
diff -ruN spack-src/src/rempi_message_manager.h spack-src-patched/src/rempi_message_manager.h
|
||||||
|
--- spack-src/src/rempi_message_manager.h 2018-06-22 11:07:41.000000000 -0700
|
||||||
|
+++ spack-src-patched/src/rempi_message_manager.h 2023-01-17 07:24:04.252076735 -0800
|
||||||
|
@@ -26,6 +26,7 @@
|
||||||
|
|
||||||
|
#include <unordered_map>
|
||||||
|
#include <list>
|
||||||
|
+#include <string>
|
||||||
|
|
||||||
|
#include "mpi.h"
|
||||||
|
|
@ -23,12 +23,13 @@ class Rempi(AutotoolsPackage):
|
|||||||
depends_on("libtool", type="build")
|
depends_on("libtool", type="build")
|
||||||
depends_on("libpciaccess", type="link")
|
depends_on("libpciaccess", type="link")
|
||||||
|
|
||||||
|
patch("include-string.patch", when="@1.1.0")
|
||||||
|
|
||||||
def flag_handler(self, name, flags):
|
def flag_handler(self, name, flags):
|
||||||
iflags = []
|
|
||||||
if name == "cflags":
|
if name == "cflags":
|
||||||
if self.spec.satisfies("%oneapi@2022.2.0:"):
|
if self.spec.satisfies("%oneapi@2022.2.0:"):
|
||||||
iflags.append("-Wno-error=implicit-function-declaration")
|
flags.append("-Wno-error=implicit-function-declaration")
|
||||||
return (iflags, None, None)
|
return (flags, None, None)
|
||||||
|
|
||||||
def setup_build_environment(self, env):
|
def setup_build_environment(self, env):
|
||||||
if self.spec.satisfies("%cce"):
|
if self.spec.satisfies("%cce"):
|
||||||
|
Loading…
Reference in New Issue
Block a user