]> git.pld-linux.org Git - packages/gperftools.git/commitdiff
Update to 2.0 and rename to gperftools auto/th/gperftools-2.0-1 auto/ti/gperftools-2.0-1
authorMarcin Banasiak <marcin.banasiak@gmail.com>
Thu, 14 Feb 2013 17:04:04 +0000 (18:04 +0100)
committerMarcin Banasiak <marcin.banasiak@gmail.com>
Thu, 14 Feb 2013 17:04:04 +0000 (18:04 +0100)
- added -glibc216-siginfo_t.patch to fix build with new glibc

gperftools-glibc216-siginfo_t.patch [new file with mode: 0644]
gperftools.spec [moved from google-perftools.spec with 90% similarity]

diff --git a/gperftools-glibc216-siginfo_t.patch b/gperftools-glibc216-siginfo_t.patch
new file mode 100644 (file)
index 0000000..77e96f2
--- /dev/null
@@ -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);
similarity index 90%
rename from google-perftools.spec
rename to gperftools.spec
index 35252faa64ab3648e6f5f2cd741c47c35bf8ae15..e00a2900ab576e7bc57d3971fadd6a75a727d303 100644 (file)
@@ -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
 
This page took 0.085653 seconds and 4 git commands to generate.