From dc21ff5486a00958186597b276a082114ee79127 Mon Sep 17 00:00:00 2001 From: Wenyu Liu Date: Mon, 13 Feb 2023 15:49:33 +0800 Subject: [PATCH] add missing #include (cherry picked from commit 62e815bb73617d100aecd7027e22d1150c59b0bd) --- 0001-add-missing-include-file-1344.patch | 28 ++++++++++++++++++++++++ dyninst.spec | 11 +++++++++- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 0001-add-missing-include-file-1344.patch diff --git a/0001-add-missing-include-file-1344.patch b/0001-add-missing-include-file-1344.patch new file mode 100644 index 0000000..cc43375 --- /dev/null +++ b/0001-add-missing-include-file-1344.patch @@ -0,0 +1,28 @@ +From 2e3bf92eedf575c780e4381ae810a050ee404f03 Mon Sep 17 00:00:00 2001 +From: kupsch +Date: Thu, 5 Jan 2023 13:13:14 -0600 +Subject: [PATCH] add missing include file (#1344) + +- add missing #include + + On more platforms and library combinations is included via + some other header, but there is combination where this is not true +--- + dataflowAPI/src/AbslocInterface.C | 1 + + 1 file changed, 1 insertion(+) + +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" + +-- +2.33.0 + diff --git a/dyninst.spec b/dyninst.spec index 6fa4d12..50050ac 100644 --- a/dyninst.spec +++ b/dyninst.spec @@ -1,6 +1,6 @@ Name: dyninst License: LGPLv2+ -Release: 1 +Release: 2 Version: 12.2.1 Summary: An API for Run-time Code Generation ExclusiveArch: x86_64 aarch64 @@ -13,6 +13,8 @@ URL: http://www.dyninst.org Source0: https://github.com/dyninst/dyninst/archive/v%{version}/dyninst-%{version}.tar.gz Source1: https://github.com/dyninst/testsuite/archive/v%{testsuite_version}/%{testsuite_base}.tar.gz +Patch1: 0001-add-missing-include-file-1344.patch + BuildRequires: cmake gcc-c++ BuildRequires: binutils-devel boost-devel BuildRequires: elfutils-libelf-devel @@ -48,6 +50,10 @@ dyninst-doc contains API documentation for the Dyninst libraries. %setup -q -n %{name}-%{version} -c %setup -q -T -D -a 1 +pushd %{dyninst_base} +%patch1 -p1 +popd + sed -i.cotire -e 's/USE_COTIRE true/USE_COTIRE false/' \ %{dyninst_base}/cmake/shared.cmake @@ -134,6 +140,9 @@ find %{buildroot}%{_libdir}/dyninst/testsuite/ \ %doc %{dyninst_base}/symtabAPI/doc/symtabAPI.pdf %changelog +* Mon Feb 13 2023 Wenyu Liu - 12.2.1-2 +- add missing #include + * Sun Jan 29 2023 Wenyu Liu - 12.2.1-1 - update to 12.2.1 -- Gitee