update version

This commit is contained in:
renmingshuai 2021-01-30 15:11:14 +08:00
parent 6887793c77
commit 01ddee6a5f
4 changed files with 44 additions and 9 deletions

View File

@ -1,18 +1,20 @@
Name: dyninst
License: LGPLv2+
Release: 2
Version: 10.1.0
Release: 1
Version: 10.2.1
Summary: An API for Run-time Code Generation
ExclusiveArch: x86_64
ExclusiveArch: x86_64 aarch64
%global dyninst_base dyninst-%{version}
%global testsuite_base testsuite-%{version}
%global testsuite_version 10.1.0
%global testsuite_base testsuite-%{testsuite_version}
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%{version}/testsuite-%{version}.tar.gz
Source1: https://github.com/dyninst/testsuite/archive/v%{testsuite_version}/%{testsuite_base}.tar.gz
Patch1: testsuite-10.1.0-gettid.patch
Patch0: testsuite-10.1.0-gettid.patch
Patch1: testsuite-10.1.0-throw.patch
BuildRequires: cmake gcc-c++
BuildRequires: binutils-devel boost-devel
@ -49,7 +51,8 @@ dyninst-doc contains API documentation for the Dyninst libraries.
%setup -q -n %{name}-%{version} -c
%setup -q -T -D -a 1
%patch1 -p1 -b.gettid
%patch0 -p1 -b.gettid
%patch1 -p1 -b .throw
sed -i.cotire -e 's/USE_COTIRE true/USE_COTIRE false/' \
%{dyninst_base}/cmake/shared.cmake
@ -138,6 +141,9 @@ find %{buildroot}%{_libdir}/dyninst/testsuite/ \
%doc %{dyninst_base}/symtabAPI/doc/symtabAPI.pdf
%changelog
* Sat Jan 30 2021 xinghe <xinghe1@huawei.com> - 10.2.1-1
- update to 10.2.1
* Fri Jul 31 2020 jinzhimin<jinzhimin2@huawei.com> - 10.1.0-2
- Add patch to build on glibc>=2.30

View File

@ -1,5 +1,5 @@
--- dyninst-10.1.0/testsuite-10.1.0/src/proccontrol/pcontrol_mutatee_tools.c.orig 2019-05-31 05:20:00.492379706 +0200
+++ dyninst-10.1.0/testsuite-10.1.0/src/proccontrol/pcontrol_mutatee_tools.c 2019-05-31 05:10:11.354826668 +0200
--- dyninst-10.2.1/testsuite-10.1.0/src/proccontrol/pcontrol_mutatee_tools.c.orig 2019-05-31 05:20:00.492379706 +0200
+++ dyninst-10.2.1/testsuite-10.1.0/src/proccontrol/pcontrol_mutatee_tools.c 2019-05-31 05:10:11.354826668 +0200
@@ -62,9 +62,9 @@
#if !defined(os_windows_test)
#include <poll.h>

View File

@ -0,0 +1,29 @@
diff --git a/testsuite-10.1.0/src/test_lib.C b/testsuite-10.1.0/src/test_lib.C
index 3808c79..73d5dff 100644
--- a/testsuite-10.1.0/src/test_lib.C
+++ b/testsuite-10.1.0/src/test_lib.C
@@ -110,7 +110,7 @@ LocErr::LocErr(const char *__file__, const int __line__, const std::string msg)
line__(__line__)
{}
-LocErr::~LocErr() THROW
+LocErr::~LocErr() throw()
{}
std::string LocErr::file() const
diff --git a/testsuite-10.1.0/src/test_lib.h b/testsuite-10.1.0/src/test_lib.h
index d2a1940..b37676d 100644
--- a/testsuite-10.1.0/src/test_lib.h
+++ b/testsuite-10.1.0/src/test_lib.h
@@ -156,7 +156,7 @@ class LocErr
const int __line__,
const std::string msg);
- TESTLIB_DLL_EXPORT virtual ~LocErr() THROW;
+ TESTLIB_DLL_EXPORT virtual ~LocErr() throw();
TESTLIB_DLL_EXPORT std::string file() const;
--
2.23.0