diff options
author | Juan Miguel Carceller <22276694+jmcarcell@users.noreply.github.com> | 2024-09-26 15:08:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-26 15:08:59 +0200 |
commit | b95160cd868b869c94691c06bfbd133405b9363b (patch) | |
tree | 3a711279b501fc273d3d305c83d4c75bdeb4ad5c | |
parent | 201840367d55ecb9268321a9cb5a8c9b3cbd8c7c (diff) | |
download | spack-b95160cd868b869c94691c06bfbd133405b9363b.tar.gz spack-b95160cd868b869c94691c06bfbd133405b9363b.tar.bz2 spack-b95160cd868b869c94691c06bfbd133405b9363b.tar.xz spack-b95160cd868b869c94691c06bfbd133405b9363b.zip |
gaudi: add a patch for missing includes for @37:38 (#46365)
-rw-r--r-- | var/spack/repos/builtin/packages/gaudi/includes.patch | 38 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/gaudi/package.py | 3 |
2 files changed, 41 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/gaudi/includes.patch b/var/spack/repos/builtin/packages/gaudi/includes.patch new file mode 100644 index 0000000000..84d9851706 --- /dev/null +++ b/var/spack/repos/builtin/packages/gaudi/includes.patch @@ -0,0 +1,38 @@ +diff --git a/GaudiHive/src/AvalancheSchedulerSvc.cpp b/GaudiHive/src/AvalancheSchedulerSvc.cpp +index 7f49e6f75..76601bed8 100644 +--- a/GaudiHive/src/AvalancheSchedulerSvc.cpp ++++ b/GaudiHive/src/AvalancheSchedulerSvc.cpp +@@ -23,6 +23,7 @@ + + // C++ + #include <algorithm> ++#include <fstream> + #include <map> + #include <queue> + #include <sstream> +diff --git a/GaudiHive/src/PRGraph/Visitors/Rankers.cpp b/GaudiHive/src/PRGraph/Visitors/Rankers.cpp +index 33f733633..e4d33080f 100644 +--- a/GaudiHive/src/PRGraph/Visitors/Rankers.cpp ++++ b/GaudiHive/src/PRGraph/Visitors/Rankers.cpp +@@ -10,6 +10,8 @@ + \***********************************************************************************/ + #include "Rankers.h" + ++#include <fstream> ++ + namespace concurrency { + + //-------------------------------------------------------------------------- +diff --git a/GaudiHive/src/PrecedenceSvc.cpp b/GaudiHive/src/PrecedenceSvc.cpp +index ac4a7b7d9..1ff1e3f9e 100644 +--- a/GaudiHive/src/PrecedenceSvc.cpp ++++ b/GaudiHive/src/PrecedenceSvc.cpp +@@ -17,6 +17,8 @@ + #include <Gaudi/Algorithm.h> + #include <Gaudi/Sequence.h> + ++#include <fstream> ++ + #define ON_DEBUG if ( msgLevel( MSG::DEBUG ) ) + #define ON_VERBOSE if ( msgLevel( MSG::VERBOSE ) ) + diff --git a/var/spack/repos/builtin/packages/gaudi/package.py b/var/spack/repos/builtin/packages/gaudi/package.py index 842b27b0ae..92dc3985fd 100644 --- a/var/spack/repos/builtin/packages/gaudi/package.py +++ b/var/spack/repos/builtin/packages/gaudi/package.py @@ -73,6 +73,9 @@ class Gaudi(CMakePackage): when="@:38.1", ) + # add a few missing includes (c++20?) + patch("includes.patch", when="@37:38") + # These dependencies are needed for a minimal Gaudi build depends_on("aida") # The boost components that are required for Gaudi |