From 02882c28e3b2fbaf0be932db548f39c8555bd0b6 Mon Sep 17 00:00:00 2001 From: hefq343 Date: Wed, 6 Mar 2024 10:20:14 +0800 Subject: [PATCH] add support for ppc64le arch Signed-off-by: hefq343 --- 0001-fix-compile-error.patch | 25 +++++++++++++++++++++++++ dyninst.spec | 15 ++++++++++----- 2 files changed, 35 insertions(+), 5 deletions(-) create mode 100644 0001-fix-compile-error.patch diff --git a/0001-fix-compile-error.patch b/0001-fix-compile-error.patch new file mode 100644 index 0000000..bf918fb --- /dev/null +++ b/0001-fix-compile-error.patch @@ -0,0 +1,25 @@ +From 8fb416f518d2e1e7118bc9bb1af887f4a76bc1e0 Mon Sep 17 00:00:00 2001 +From: hefq343 +Date: Fri, 1 Mar 2024 14:13:02 +0800 +Subject: [PATCH] fix compile error + +Signed-off-by: hefq343 +--- + dataflowAPI/src/AbslocInterface.C | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/dataflowAPI/src/AbslocInterface.C b/dataflowAPI/src/AbslocInterface.C +index 8dfa1c3..d3a3900 100644 +--- a/dataflowAPI/src/AbslocInterface.C ++++ b/dataflowAPI/src/AbslocInterface.C +@@ -44,6 +44,7 @@ + #include "common/src/singleton_object_pool.h" + #include "parseAPI/h/CFG.h" + #include "parseAPI/h/CodeObject.h" ++#include + + using namespace Dyninst; + using namespace Dyninst::InstructionAPI; +-- +2.33.0 + diff --git a/dyninst.spec b/dyninst.spec index 08b3d9a..4bf2a7d 100644 --- a/dyninst.spec +++ b/dyninst.spec @@ -1,9 +1,9 @@ Name: dyninst License: LGPLv2+ -Release: 4 +Release: 5 Version: 12.3.0 Summary: An API for Run-time Code Generation -ExclusiveArch: x86_64 aarch64 +ExclusiveArch: x86_64 aarch64 ppc64le %global dyninst_base dyninst-%{version} %global testsuite_version 12.3.0 @@ -16,6 +16,7 @@ Source1: https://github.com/dyninst/testsuite/archive/v%{testsuite_version}/%{te Patch1: dyninst-eliminate-deprecated-C-function-objects-1331.patch Patch2: dyninst-warning-fix-std-iterator-is-deprecated-1394.patch Patch3: dyninst-support-clang-build.patch +Patch4: 0001-fix-compile-error.patch BuildRequires: cmake gcc-c++ BuildRequires: binutils-devel boost-devel @@ -53,9 +54,10 @@ dyninst-doc contains API documentation for the Dyninst libraries. %setup -q -T -D -a 1 pushd %{dyninst_base} -%patch 1 -p1 -%patch 2 -p1 -%patch 3 -p1 +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 +%patch4 -p1 popd sed -i.cotire -e 's/USE_COTIRE true/USE_COTIRE false/' \ @@ -127,6 +129,9 @@ echo "%{_libdir}/dyninst" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf %doc %{dyninst_base}/symtabAPI/doc/symtabAPI.pdf %changelog +* Wed Mar 13 2024 hefq343 - 12.3.0-5 +- add support for ppc64le arch + * Sat Sep 23 2023 luofeng - 12.3.0-4 - support clang build -- Gitee