From 75c965e136b0f001d95f21ef848808d3226aba23 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 | 13 +++++++++++-- 2 files changed, 36 insertions(+), 2 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 120727a..c312c1f 100644 --- a/dyninst.spec +++ b/dyninst.spec @@ -1,9 +1,9 @@ Name: dyninst License: LGPLv2+ -Release: 4 +Release: 5 Version: 11.0.1 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 11.0.1 @@ -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-fix-compile-error.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 @@ -120,6 +126,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 - 11.0.1-5 +- add support for ppc64le arch + * Fri Dec 16 2022 Weifeng Su - 11.0.1-4 - remove useless testsuite in devel package -- Gitee