diff --git a/var/spack/repos/builtin/packages/umpire/missing_header_for_numeric_limits.patch b/var/spack/repos/builtin/packages/umpire/missing_header_for_numeric_limits.patch new file mode 100644 index 0000000000..6e89e37070 --- /dev/null +++ b/var/spack/repos/builtin/packages/umpire/missing_header_for_numeric_limits.patch @@ -0,0 +1,12 @@ +diff --git a/src/umpire/util/allocation_statistics.cpp b/src/umpire/util/allocation_statistics.cpp +index 597ae61f..0c3f7865 100644 +--- a/src/umpire/util/allocation_statistics.cpp ++++ b/src/umpire/util/allocation_statistics.cpp +@@ -8,6 +8,7 @@ + #include "umpire/util/allocation_statistics.hpp" + + #include ++#include + + namespace umpire { + namespace util { diff --git a/var/spack/repos/builtin/packages/umpire/package.py b/var/spack/repos/builtin/packages/umpire/package.py index 33a704c904..7fa2cf4e48 100644 --- a/var/spack/repos/builtin/packages/umpire/package.py +++ b/var/spack/repos/builtin/packages/umpire/package.py @@ -48,6 +48,7 @@ class Umpire(CMakePackage, CudaPackage, ROCmPackage): patch('camp_target_umpire_3.0.0.patch', when='@3.0.0') patch('cmake_version_check.patch', when='@4.1') + patch('missing_header_for_numeric_limits.patch', when='@4.1:5.0.1') variant('fortran', default=False, description='Build C/Fortran API') variant('c', default=True, description='Build C API')