fix build with glibc 2.16
This commit is contained in:
parent
149df692d7
commit
d2e1bf0cc7
|
@ -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) {
|
|
@ -2,12 +2,14 @@
|
||||||
|
|
||||||
Name: gperftools
|
Name: gperftools
|
||||||
Version: 2.0
|
Version: 2.0
|
||||||
Release: 6%{?dist}
|
Release: 7%{?dist}
|
||||||
License: BSD
|
License: BSD
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Summary: Very fast malloc and performance analysis tools
|
Summary: Very fast malloc and performance analysis tools
|
||||||
URL: http://code.google.com/p/gperftools/
|
URL: http://code.google.com/p/gperftools/
|
||||||
Source0: http://gperftools.googlecode.com/files/%{name}-%{version}.tar.gz
|
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
|
# ppc64 still broken, bz 238390
|
||||||
ExclusiveArch: %{ix86} x86_64 ppc %{arm}
|
ExclusiveArch: %{ix86} x86_64 ppc %{arm}
|
||||||
%ifnarch ppc ppc64
|
%ifnarch ppc ppc64
|
||||||
|
@ -50,6 +52,7 @@ Pprof is a heap and CPU profiler tool, part of the gperftools suite.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1 -b .glibc216
|
||||||
|
|
||||||
# Fix end-of-line encoding
|
# Fix end-of-line encoding
|
||||||
sed -i 's/\r//' README_windows.txt
|
sed -i 's/\r//' README_windows.txt
|
||||||
|
@ -102,6 +105,9 @@ rm -rf %{buildroot}%{_docdir}/%{name}-%{version}/INSTALL
|
||||||
%{_libdir}/*.so.*
|
%{_libdir}/*.so.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Aug 3 2012 Tom Callaway <spot@fedoraproject.org> - 2.0-7
|
||||||
|
- fix compile with glibc 2.16
|
||||||
|
|
||||||
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-6
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-6
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue