[packages/dyninst] fix build by including missing headers

atler atler at pld-linux.org
Sun Feb 19 21:52:23 CET 2023


commit 9848c5e56cd7627c5cc5df36bc8dfd3e142f9a5e
Author: Jan Palus <atler at pld-linux.org>
Date:   Sun Feb 19 21:51:50 2023 +0100

    fix build by including missing headers

 dyninst.spec           |  2 ++
 missing-includes.patch | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 53 insertions(+)
---
diff --git a/dyninst.spec b/dyninst.spec
index 3afa219..179a517 100644
--- a/dyninst.spec
+++ b/dyninst.spec
@@ -11,6 +11,7 @@ Source0:	https://github.com/dyninst/dyninst/archive/v%{version}/%{name}-%{versio
 Patch0:		%{name}-libname.patch
 Patch1:		%{name}-x32.patch
 Patch2:		%{name}-tbb.patch
+Patch3:		missing-includes.patch
 URL:		https://dyninst.org/dyninst
 # libiberty
 BuildRequires:	binutils-devel
@@ -81,6 +82,7 @@ Statyczne biblioteki dyninst.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 export CXXFLAGS="%{rpmcxxflags} -DTBB_DEFINE_STD_HASH_SPECIALIZATIONS"
diff --git a/missing-includes.patch b/missing-includes.patch
new file mode 100644
index 0000000..94aa1e3
--- /dev/null
+++ b/missing-includes.patch
@@ -0,0 +1,51 @@
+diff -ur dyninst-12.2.1.orig/dataflowAPI/src/AbslocInterface.C dyninst-12.2.1/dataflowAPI/src/AbslocInterface.C
+--- dyninst-12.2.1.orig/dataflowAPI/src/AbslocInterface.C	2022-11-21 20:46:38.000000000 +0100
++++ dyninst-12.2.1/dataflowAPI/src/AbslocInterface.C	2023-02-19 21:34:34.799852999 +0100
+@@ -45,6 +45,8 @@
+ #include "parseAPI/h/CFG.h"
+ #include "parseAPI/h/CodeObject.h"
+ 
++#include <deque>
++
+ using namespace Dyninst;
+ using namespace Dyninst::InstructionAPI;
+ extern int df_debug_stackanalysis;
+diff -ur dyninst-12.2.1.orig/instructionAPI/src/AMDGPU/cdna2/InstructionDecoder-amdgpu-cdna2.h dyninst-12.2.1/instructionAPI/src/AMDGPU/cdna2/InstructionDecoder-amdgpu-cdna2.h
+--- dyninst-12.2.1.orig/instructionAPI/src/AMDGPU/cdna2/InstructionDecoder-amdgpu-cdna2.h	2022-11-21 20:46:38.000000000 +0100
++++ dyninst-12.2.1/instructionAPI/src/AMDGPU/cdna2/InstructionDecoder-amdgpu-cdna2.h	2023-02-19 21:33:54.774376195 +0100
+@@ -33,6 +33,9 @@
+ #include "Immediate.h"
+ #include "dyn_regs.h"
+ 
++#include <array>
++#include <string>
++
+ namespace Dyninst {
+     namespace InstructionAPI {
+ 
+diff -ur dyninst-12.2.1.orig/instructionAPI/src/AMDGPU/vega/InstructionDecoder-amdgpu-vega.h dyninst-12.2.1/instructionAPI/src/AMDGPU/vega/InstructionDecoder-amdgpu-vega.h
+--- dyninst-12.2.1.orig/instructionAPI/src/AMDGPU/vega/InstructionDecoder-amdgpu-vega.h	2022-11-21 20:46:38.000000000 +0100
++++ dyninst-12.2.1/instructionAPI/src/AMDGPU/vega/InstructionDecoder-amdgpu-vega.h	2023-02-19 21:33:48.364566725 +0100
+@@ -33,6 +33,9 @@
+ #include "Immediate.h"
+ #include "dyn_regs.h"
+ 
++#include <array>
++#include <string>
++
+ namespace Dyninst {
+     namespace InstructionAPI {
+ 
+diff -ur dyninst-12.2.1.orig/instructionAPI/src/InstructionDecoder-aarch64.h dyninst-12.2.1/instructionAPI/src/InstructionDecoder-aarch64.h
+--- dyninst-12.2.1.orig/instructionAPI/src/InstructionDecoder-aarch64.h	2022-11-21 20:46:38.000000000 +0100
++++ dyninst-12.2.1/instructionAPI/src/InstructionDecoder-aarch64.h	2023-02-19 21:33:39.774822043 +0100
+@@ -33,6 +33,9 @@
+ #include "Immediate.h"
+ #include "dyn_regs.h"
+ 
++#include <array>
++#include <string>
++
+ namespace Dyninst {
+     namespace InstructionAPI {
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dyninst.git/commitdiff/9848c5e56cd7627c5cc5df36bc8dfd3e142f9a5e



More information about the pld-cvs-commit mailing list