diff --git a/dyninst.spec b/dyninst.spec index 74724e3810d94ff5df3b9b44c6b80f6e7f19fd78..8a4324eefdd17d46ca5d0a87409092c1daa499fa 100644 --- a/dyninst.spec +++ b/dyninst.spec @@ -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 diff --git a/testsuite-10.1.0-gettid.patch b/testsuite-10.1.0-gettid.patch new file mode 100644 index 0000000000000000000000000000000000000000..9b75b258d7a1fdd05643b04aaa689609b480b5a7 --- /dev/null +++ b/testsuite-10.1.0-gettid.patch @@ -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 + +-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];