From fdec3b47cc99dc45d7d34dd0e39a5f2f5bb8b279 Mon Sep 17 00:00:00 2001 From: Mikael Simberg Date: Tue, 15 Feb 2022 09:59:39 +0100 Subject: apex: add patch to install missing header (#28844) Co-authored-by: Mikael Simberg --- var/spack/repos/builtin/packages/apex/install-includes.patch | 12 ++++++++++++ var/spack/repos/builtin/packages/apex/package.py | 6 ++++++ 2 files changed, 18 insertions(+) create mode 100644 var/spack/repos/builtin/packages/apex/install-includes.patch diff --git a/var/spack/repos/builtin/packages/apex/install-includes.patch b/var/spack/repos/builtin/packages/apex/install-includes.patch new file mode 100644 index 0000000000..5d584555ef --- /dev/null +++ b/var/spack/repos/builtin/packages/apex/install-includes.patch @@ -0,0 +1,12 @@ +diff --git a/src/apex/CMakeLists.standalone b/src/apex/CMakeLists.standalone +index 5acfa34..bb43bd5 100644 +--- a/src/apex/CMakeLists.standalone ++++ b/src/apex/CMakeLists.standalone +@@ -143,6 +143,7 @@ INSTALL(FILES apex.h + profiler.hpp + task_wrapper.hpp + task_identifier.hpp ++ dependency_tree.hpp + DESTINATION include) + + INSTALL(TARGETS apex RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib) diff --git a/var/spack/repos/builtin/packages/apex/package.py b/var/spack/repos/builtin/packages/apex/package.py index 363a7a2f8f..f364750e4c 100644 --- a/var/spack/repos/builtin/packages/apex/package.py +++ b/var/spack/repos/builtin/packages/apex/package.py @@ -71,6 +71,12 @@ class Apex(CMakePackage): conflicts('+jemalloc', when='+gperftools') conflicts('+plugins', when='~activeharmony') + # Patches + + # This patch ensures that the missing dependency_tree.hpp header is + # installed + patch('install-includes.patch', when='@2.3.2:2.4.1') + def cmake_args(self): args = [] spec = self.spec -- cgit v1.2.3-70-g09d2