[packages/gperftools] Update to 2.0 and rename to gperftools

megabajt megabajt at pld-linux.org
Thu Feb 14 18:05:56 CET 2013


commit 717c9fdef487080fe4fa9183be43a08358b457d1
Author: Marcin Banasiak <marcin.banasiak at gmail.com>
Date:   Thu Feb 14 18:04:04 2013 +0100

    Update to 2.0 and rename to gperftools
    
    - added -glibc216-siginfo_t.patch to fix build with new glibc

 gperftools-glibc216-siginfo_t.patch      | 34 ++++++++++++++++++++++++++++++++
 google-perftools.spec => gperftools.spec | 25 ++++++++++++++++++-----
 2 files changed, 54 insertions(+), 5 deletions(-)
---
diff --git a/google-perftools.spec b/gperftools.spec
similarity index 90%
rename from google-perftools.spec
rename to gperftools.spec
index 35252fa..e00a290 100644
--- a/google-perftools.spec
+++ b/gperftools.spec
@@ -2,21 +2,23 @@
 #
 Summary:	Fast, multi-threaded malloc and performance analysis tools
 Summary(pl.UTF-8):	Szybka, wielowątkowa implementacja malloc i narzędzia do analizy wydajności
-Name:		google-perftools
-Version:	1.10
+Name:		gperftools
+Version:	2.0
 Release:	1
 License:	BSD
 Group:		Libraries
-# Source0Download: http://code.google.com/p/google-perftools/downloads/list
+# Source0Download: http://code.google.com/p/gperftools/downloads/list
 Source0:	http://gperftools.googlecode.com/files/%{name}-%{version}.tar.gz
-# Source0-md5:	d3821ffd8a99497c230a1c9652c9c304
-URL:		http://code.google.com/p/google-perftools/
+# Source0-md5:	13f6e8961bc6a26749783137995786b6
+Patch0:		%{name}-glibc216-siginfo_t.patch
+URL:		http://code.google.com/p/gperftools/
 BuildRequires:	libstdc++-devel
 BuildRequires:	libtool
 %ifarch %{x8664} ia64
 BuildRequires:	libunwind-devel >= 0.98.6
 %endif
 Requires:	libtcmalloc = %{version}-%{release}
+Obsoletes:	google-perftools < 2.0
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -37,6 +39,7 @@ Summary(pl.UTF-8):	Pliki programistyczne bibliotek perftools
 Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
 Requires:	libtcmalloc-devel = %{version}-%{release}
+Obsoletes:	google-perftools-devel < 2.0
 
 %description devel
 The google-perftools-devel package contains the header files needed to
@@ -51,6 +54,7 @@ Summary:	Static perftools libraries
 Summary(pl.UTF-8):	Statyczne biblioteki perftools
 Group:		Development/Libraries
 Requires:	%{name}-devel = %{version}-%{release}
+Obsoletes:	google-perftools-static < 2.0
 
 %description static
 The google-perftools-static package contains the static libraries of
@@ -100,6 +104,7 @@ statyczne.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %configure \
@@ -123,6 +128,9 @@ for pkg in libtcmalloc libtcmalloc_minimal; do
 		$RPM_BUILD_ROOT/%{_libdir}/${pkg}.so
 done
 
+# clean docdir
+%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -158,6 +166,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/libtcmalloc_minimal_debug.la
 %{_libdir}/libprofiler.la
 %{_includedir}/google/profiler.h
+%{_includedir}/gperftools/profiler.h
 %{_pkgconfigdir}/libprofiler.pc
 %{_pkgconfigdir}/libtcmalloc_debug.pc
 %{_pkgconfigdir}/libtcmalloc_minimal_debug.pc
@@ -188,6 +197,12 @@ rm -rf $RPM_BUILD_ROOT
 %{_includedir}/google/malloc_hook*.h
 %{_includedir}/google/stacktrace.h
 %{_includedir}/google/tcmalloc.h
+%dir %{_includedir}/gperftools
+%{_includedir}/gperftools/heap-*.h
+%{_includedir}/gperftools/malloc_extension*.h
+%{_includedir}/gperftools/malloc_hook*.h
+%{_includedir}/gperftools/stacktrace.h
+%{_includedir}/gperftools/tcmalloc.h
 %{_pkgconfigdir}/libtcmalloc.pc
 %{_pkgconfigdir}/libtcmalloc_minimal.pc
 
diff --git a/gperftools-glibc216-siginfo_t.patch b/gperftools-glibc216-siginfo_t.patch
new file mode 100644
index 0000000..77e96f2
--- /dev/null
+++ b/gperftools-glibc216-siginfo_t.patch
@@ -0,0 +1,34 @@
+--- gperftools-2.0/src/base/linux_syscall_support.h.siginfo	2013-02-14 17:32:25.296428346 +0100
++++ gperftools-2.0/src/base/linux_syscall_support.h	2013-02-14 17:34:46.582329601 +0100
+@@ -243,14 +243,13 @@ struct kernel_rusage {
+   long               ru_nivcsw;
+ };
+ 
+-struct siginfo;
+ #if defined(__i386__) || defined(__arm__) || defined(__PPC__)
+ 
+ /* include/asm-{arm,i386,mips,ppc}/signal.h                                  */
+ struct kernel_old_sigaction {
+   union {
+     void             (*sa_handler_)(int);
+-    void             (*sa_sigaction_)(int, struct siginfo *, void *);
++    void             (*sa_sigaction_)(int, siginfo_t *, void *);
+   };
+   unsigned long      sa_mask;
+   unsigned long      sa_flags;
+@@ -287,13 +286,13 @@ struct kernel_sigaction {
+   unsigned long      sa_flags;
+   union {
+     void             (*sa_handler_)(int);
+-    void             (*sa_sigaction_)(int, struct siginfo *, void *);
++    void             (*sa_sigaction_)(int, siginfo_t *, void *);
+   };
+   struct kernel_sigset_t sa_mask;
+ #else
+   union {
+     void             (*sa_handler_)(int);
+-    void             (*sa_sigaction_)(int, struct siginfo *, void *);
++    void             (*sa_sigaction_)(int, siginfo_t *, void *);
+   };
+   unsigned long      sa_flags;
+   void               (*sa_restorer)(void);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gperftools.git/commitdiff/717c9fdef487080fe4fa9183be43a08358b457d1



More information about the pld-cvs-commit mailing list