aboutsummaryrefslogtreecommitdiff
path: root/devel/umpire/files
diff options
context:
space:
mode:
Diffstat (limited to 'devel/umpire/files')
-rw-r--r--devel/umpire/files/patch-src_tpl_CMakeLists.txt36
-rw-r--r--devel/umpire/files/patch-src_umpire_resource_FileMemoryResource.cpp19
2 files changed, 55 insertions, 0 deletions
diff --git a/devel/umpire/files/patch-src_tpl_CMakeLists.txt b/devel/umpire/files/patch-src_tpl_CMakeLists.txt
new file mode 100644
index 000000000000..7e195b9c1e78
--- /dev/null
+++ b/devel/umpire/files/patch-src_tpl_CMakeLists.txt
@@ -0,0 +1,36 @@
+--- src/tpl/CMakeLists.txt.orig 2025-09-09 19:07:47 UTC
++++ src/tpl/CMakeLists.txt
+@@ -106,6 +106,8 @@ add_subdirectory(umpire/judy)
+
+ add_subdirectory(umpire/judy)
+
++find_package(camp REQUIRED)
++
+ if (NOT TARGET camp)
+ if (DEFINED camp_DIR)
+ find_package(camp REQUIRED
+@@ -136,6 +138,8 @@ endif ()
+ endif()
+ endif ()
+
++find_package(fmt REQUIRED)
++
+ if (NOT TARGET ${UMPIRE_FMT_TARGET})
+ if (DEFINED fmt_DIR)
+ find_package(fmt REQUIRED
+@@ -144,8 +148,7 @@ if (NOT TARGET ${UMPIRE_FMT_TARGET})
+ ${fmt_DIR}
+ ${fmt_DIR}/lib64/cmake/fmt)
+
+- set_target_properties(${UMPIRE_FMT_TARGET} PROPERTIES IMPORTED_GLOBAL TRUE)
+- blt_convert_to_system_includes(TARGET ${UMPIRE_FMT_TARGET})
++ #blt_convert_to_system_includes(TARGET ${UMPIRE_FMT_TARGET})
+ set(UMPIRE_CONFIG_fmt_DIR ${fmt_DIR} CACHE PATH "")
+ else ()
+ if (NOT EXISTS ${PROJECT_SOURCE_DIR}/src/tpl/umpire/fmt/CMakeLists.txt)
+@@ -161,4 +164,4 @@ set(UMPIRE_ENABLE_TESTS ${OLD_ENABLE_TESTS})
+ endif ()
+
+ set(UMPIRE_ENABLE_TESTS ${OLD_ENABLE_TESTS})
+-set(UMPIRE_ENABLE_FORTRAN ${OLD_ENABLE_FORTRAN})
++#set(UMPIRE_ENABLE_FORTRAN FALSE)
diff --git a/devel/umpire/files/patch-src_umpire_resource_FileMemoryResource.cpp b/devel/umpire/files/patch-src_umpire_resource_FileMemoryResource.cpp
new file mode 100644
index 000000000000..7ab4055f6da1
--- /dev/null
+++ b/devel/umpire/files/patch-src_umpire_resource_FileMemoryResource.cpp
@@ -0,0 +1,19 @@
+--- src/umpire/resource/FileMemoryResource.cpp.orig 2025-09-09 19:07:47 UTC
++++ src/umpire/resource/FileMemoryResource.cpp
+@@ -12,6 +12,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <sys/mman.h>
++#include <sys/stat.h>
+ #include <unistd.h>
+
+ #include "umpire/util/Platform.hpp"
+@@ -62,7 +63,7 @@ void* FileMemoryResource::allocate(std::size_t bytes)
+ ss << default_dir << "umpire_mem_" << getpid() << "_" << s_file_counter;
+ s_file_counter++;
+
+- int fd{open(ss.str().c_str(), O_RDWR | O_CREAT | O_LARGEFILE, S_IRWXU)};
++ int fd{open(ss.str().c_str(), O_RDWR | O_CREAT, S_IRWXU)};
+ if (fd == -1) {
+ UMPIRE_ERROR(runtime_error, fmt::format("Opening file {} failed: {}", ss.str(), strerror(errno)));
+ }