[gperftools] fix build with glibc 2.16

Tom Callaway spot at fedoraproject.org
Fri Aug 3 14:37:24 UTC 2012


commit d2e1bf0cc718ca16f459e517d68bb33f3d87b3ff
Author: Tom Callaway <spot at fedoraproject.org>
Date:   Fri Aug 3 10:38:03 2012 -0400

    fix build with glibc 2.16

 gperftools-2.0-glibc216.patch |   12 ++++++++++++
 gperftools.spec               |    8 +++++++-
 2 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/gperftools-2.0-glibc216.patch b/gperftools-2.0-glibc216.patch
new file mode 100644
index 0000000..c5b5e2e
--- /dev/null
+++ b/gperftools-2.0-glibc216.patch
@@ -0,0 +1,12 @@
+diff -up gperftools-2.0/src/base/linuxthreads.cc.glibc216 gperftools-2.0/src/base/linuxthreads.cc
+--- gperftools-2.0/src/base/linuxthreads.cc.glibc216	2012-08-03 10:36:20.142086568 -0400
++++ gperftools-2.0/src/base/linuxthreads.cc	2012-08-03 10:36:24.340086631 -0400
+@@ -193,7 +193,7 @@ static volatile int *sig_pids, sig_num_t
+ /* Signal handler to help us recover from dying while we are attached to
+  * other threads.
+  */
+-static void SignalHandler(int signum, siginfo_t *si, void *data) {
++static void SignalHandler(int signum, siginfo *si, void *data) {
+   if (sig_pids != NULL) {
+     if (signum == SIGABRT) {
+       while (sig_num_threads-- > 0) {
diff --git a/gperftools.spec b/gperftools.spec
index a2358fb..299e1af 100644
--- a/gperftools.spec
+++ b/gperftools.spec
@@ -2,12 +2,14 @@
 
 Name:		gperftools
 Version:	2.0
-Release:	6%{?dist}
+Release:	7%{?dist}
 License:	BSD
 Group:		Development/Tools
 Summary:	Very fast malloc and performance analysis tools
 URL:		http://code.google.com/p/gperftools/
 Source0:	http://gperftools.googlecode.com/files/%{name}-%{version}.tar.gz
+# http://code.google.com/p/gperftools/issues/detail?id=444
+Patch0:		gperftools-2.0-glibc216.patch
 # ppc64 still broken, bz 238390
 ExclusiveArch:	%{ix86} x86_64 ppc %{arm}
 %ifnarch ppc ppc64
@@ -50,6 +52,7 @@ Pprof is a heap and CPU profiler tool, part of the gperftools suite.
 
 %prep
 %setup -q
+%patch0 -p1 -b .glibc216
 
 # Fix end-of-line encoding
 sed -i 's/\r//' README_windows.txt
@@ -102,6 +105,9 @@ rm -rf %{buildroot}%{_docdir}/%{name}-%{version}/INSTALL
 %{_libdir}/*.so.*
 
 %changelog
+* Fri Aug  3 2012 Tom Callaway <spot at fedoraproject.org> - 2.0-7
+- fix compile with glibc 2.16
+
 * Thu Jul 19 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.0-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 


More information about the scm-commits mailing list