Add patch to build on glibc>=2.30
This commit is contained in:
parent
9ed58a83f1
commit
3b36e051d6
@ -1,6 +1,6 @@
|
||||
Name: dyninst
|
||||
License: LGPLv2+
|
||||
Release: 1
|
||||
Release: 2
|
||||
Version: 10.1.0
|
||||
Summary: An API for Run-time Code Generation
|
||||
ExclusiveArch: x86_64
|
||||
@ -12,6 +12,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%{version}/testsuite-%{version}.tar.gz
|
||||
|
||||
Patch1: testsuite-10.1.0-gettid.patch
|
||||
|
||||
BuildRequires: cmake gcc-c++
|
||||
BuildRequires: binutils-devel boost-devel
|
||||
BuildRequires: elfutils-libelf-devel
|
||||
@ -47,6 +49,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
|
||||
|
||||
sed -i.cotire -e 's/USE_COTIRE true/USE_COTIRE false/' \
|
||||
%{dyninst_base}/cmake/shared.cmake
|
||||
|
||||
@ -134,6 +138,9 @@ find %{buildroot}%{_libdir}/dyninst/testsuite/ \
|
||||
%doc %{dyninst_base}/symtabAPI/doc/symtabAPI.pdf
|
||||
|
||||
%changelog
|
||||
* Fri Jul 31 2020 jinzhimin<jinzhimin2@huawei.com> - 10.1.0-2
|
||||
- Add patch to build on glibc>=2.30
|
||||
|
||||
* Thu Jul 23 2020 jinzhimin <jinzhimin2@huawei.com> - 10.1.0-1
|
||||
- update to 10.1.0
|
||||
|
||||
|
||||
15
testsuite-10.1.0-gettid.patch
Normal file
15
testsuite-10.1.0-gettid.patch
Normal file
@ -0,0 +1,15 @@
|
||||
--- 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
|
||||
@@ -62,9 +62,9 @@
|
||||
#if !defined(os_windows_test)
|
||||
#include <poll.h>
|
||||
|
||||
-static unsigned int gettid(){
|
||||
- return (unsigned int)pthread_self();
|
||||
-}
|
||||
+// static unsigned int gettid(){
|
||||
+// return (unsigned int)pthread_self();
|
||||
+// }
|
||||
#endif
|
||||
|
||||
thread_t threads[MAX_POSSIBLE_THREADS];
|
||||
Loading…
x
Reference in New Issue
Block a user