From c8873ea35c00023ad4c7b12f3c91a22034125ade Mon Sep 17 00:00:00 2001 From: Tim Haines Date: Mon, 4 Nov 2024 17:33:41 -0600 Subject: [PATCH] dyninst: patch broken builds for 10.0.0:12.2.0 (#47339) * dyninst: patch broken builds for 10.0.0:12.3.0 * Only apply before 12.3.0 --- .../packages/dyninst/missing_include_deque.patch | 11 +++++++++++ var/spack/repos/builtin/packages/dyninst/package.py | 5 +++++ 2 files changed, 16 insertions(+) create mode 100644 var/spack/repos/builtin/packages/dyninst/missing_include_deque.patch diff --git a/var/spack/repos/builtin/packages/dyninst/missing_include_deque.patch b/var/spack/repos/builtin/packages/dyninst/missing_include_deque.patch new file mode 100644 index 00000000000..cee31fdbb0c --- /dev/null +++ b/var/spack/repos/builtin/packages/dyninst/missing_include_deque.patch @@ -0,0 +1,11 @@ +diff --git a/dataflowAPI/src/AbslocInterface.C b/dataflowAPI/src/AbslocInterface.C +index 9d7ad000c..582e64004 100644 +--- a/dataflowAPI/src/AbslocInterface.C ++++ b/dataflowAPI/src/AbslocInterface.C +@@ -29,6 +29,7 @@ + */ + + ++#include + #include "Absloc.h" + #include "AbslocInterface.h" diff --git a/var/spack/repos/builtin/packages/dyninst/package.py b/var/spack/repos/builtin/packages/dyninst/package.py index f71ab53fb76..cca8a3026eb 100644 --- a/var/spack/repos/builtin/packages/dyninst/package.py +++ b/var/spack/repos/builtin/packages/dyninst/package.py @@ -110,6 +110,11 @@ class Dyninst(CMakePackage): patch("stackanalysis_h.patch", when="@9.2.0") patch("v9.3.2-auto.patch", when="@9.3.2 %gcc@:4.7") patch("tribool.patch", when="@9.3.0:10.0.0 ^boost@1.69:") + patch( + "missing_include_deque.patch", + when="@10.0.0:12.2.0", + sha256="0064d8d51bd01bd0035e1ebc49276f627ce6366d4524c92cf47d3c09b0031f96", + ) requires("%gcc", when="@:13.0.0", msg="dyninst builds only with GCC")