From cf5d75d4448a54c9e4cafd8feb0b7cffba3d9e87f6ae7ca67fd68f85a6324423 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Wed, 23 Mar 2016 07:50:50 +0000 Subject: [PATCH 1/2] Accepting request 378318 from home:ganglia:branches:devel:libraries:c_c++ Update to gperftools 2.5, released 12 March 2016 OBS-URL: https://build.opensuse.org/request/show/378318 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gperftools?expand=0&rev=31 --- gperftools-2.4.tar.gz | 3 -- gperftools-2.5.tar.gz | 3 ++ gperftools-fix_docdir.patch | 13 ------ gperftools.changes | 87 +++++++++++++++++++++++++++++++++++++ gperftools.spec | 12 +++-- 5 files changed, 95 insertions(+), 23 deletions(-) delete mode 100644 gperftools-2.4.tar.gz create mode 100644 gperftools-2.5.tar.gz delete mode 100644 gperftools-fix_docdir.patch diff --git a/gperftools-2.4.tar.gz b/gperftools-2.4.tar.gz deleted file mode 100644 index 9b10d71..0000000 --- a/gperftools-2.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:982a37226eb42f40714e26b8076815d5ea677a422fb52ff8bfca3704d9c30a2d -size 1346075 diff --git a/gperftools-2.5.tar.gz b/gperftools-2.5.tar.gz new file mode 100644 index 0000000..49c66cb --- /dev/null +++ b/gperftools-2.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7167d6c6e69312187390214c18f5d810f03bd202f61ae0e2be2ddc111c9e7ad4 +size 895687 diff --git a/gperftools-fix_docdir.patch b/gperftools-fix_docdir.patch deleted file mode 100644 index 67cef47..0000000 --- a/gperftools-fix_docdir.patch +++ /dev/null @@ -1,13 +0,0 @@ -Index: gperftools-2.0.99/Makefile.am -=================================================================== ---- gperftools-2.0.99.orig/Makefile.am -+++ gperftools-2.0.99/Makefile.am -@@ -128,7 +128,7 @@ googleinclude_HEADERS = \ - src/google/stacktrace.h \ - src/google/tcmalloc.h - --docdir = $(prefix)/share/doc/$(PACKAGE)-$(VERSION) -+docdir = $(prefix)/share/doc/packages/$(PACKAGE) - # This is for HTML and other documentation you want to install. - # Add your documentation files (in doc/) in addition to these - # top-level boilerplate files. Also add a TODO file if you have one. diff --git a/gperftools.changes b/gperftools.changes index db6707d..12f3611 100644 --- a/gperftools.changes +++ b/gperftools.changes @@ -1,3 +1,90 @@ +------------------------------------------------------------------- +Tue Mar 22 13:33:02 UTC 2016 - cgardner@suse.com + +- gperftools 2.5, available 12 March 2016. + See https://github.com/gperftools/gperftools/releases + * Bryan Chan has contributed s390x support + * stacktrace capturing via libgcc's _Unwind_Backtrace was implemented + (for architectures with missing or broken libunwind). + * "emergency malloc" was implemented. Which unbreaks recursive calls + to malloc/free from stacktrace capturing functions (such us glib'c + backtrace() or libunwind on arm). It is enabled by + --enable-emergency-malloc configure flag or by default on arm when + --enable-stacktrace-via-backtrace is given. It is another fix for a + number common issues people had on platforms with missing or broken + libunwind. + * C++14 sized-deallocation is now supported (on gcc 5 and recent + clangs). It is off by default and can be enabled at configure time + via --enable-sized-delete. On GNU/Linux it can also be enabled at + run-time by either TCMALLOC_ENABLE_SIZED_DELETE environment variable + or by defining tcmalloc_sized_delete_enabled function which should + return 1 to enable it. + * we've lowered default value of transfer batch size to 512. Previous + value (bumped up in 2.1) was too high and caused performance + regression for some users. 512 should still give us performance + boost for workloads that need higher transfer batch size while not + penalizing other workloads too much. + * Brian Silverman's patch finally stopped arming profiling timer + unless profiling is started. + * Andrew Morrow has contributed support for obtaining cache size of the + current thread and softer idling (for use in MongoDB). + * we've implemented few minor performance improvements, particularly + on malloc fast-path. + * issue that caused spurious profiler_unittest.sh failures was fixed. + * Jonathan Lambrechts contributed improved callgrind format support to + pprof. + * Matt Cross contributed better support for debug symbols in separate + files to pprof. + * Matt Cross contributed support for printing collapsed stack frame + from pprof aimed at producing flame graphs. + * Angus Gratton has contributed documentation fix mentioning that on + windows only tcmalloc_minimal is supported. + * Anton Samokhvalov has made tcmalloc use mi_force_{un,}lock on OSX + instead of pthread_atfork. Which apparently fixes forking + issues tcmalloc had on OSX. + * Milton Chiang has contributed support for building 32-bit gperftools + on arm8. + * Patrick LoPresti has contributed support for specifying alternative + profiling signal via CPUPROFILE_TIMER_SIGNAL environment variable. + * Paolo Bonzini has contributed support configuring filename for + sending malloc tracing output via TCMALLOC_TRACE_FILE environment + variable. + * user spotrh has enabled use of futex on arm. + * user mitchblank has contributed better declaration for arg-less + profiler functions. + * Tom Conerly contributed proper freeing of memory allocated in + HeapProfileTable::FillOrderedProfile on error paths. + * user fdeweerdt has contributed curl arguments handling fix in pprof + * Frederik Mellbin fixed tcmalloc's idea of mangled new and delete + symbols on windows x64 + * Dair Grant has contributed cacheline alignment for ThreadCache + objects + * Fredrik Mellbin has contributed updated windows/config.h for Visual + Studio 2015 and other windows fixes. + * we're not linking libpthread to libtcmalloc_minimal anymore. Instead + libtcmalloc_minimal links to pthread symbols weakly. As a result + single-threaded programs remain single-threaded when linking to or + preloading libtcmalloc_minimal.so. + * Boris Sazonov has contributed mips compilation fix and printf misue + in pprof. + * Adhemerval Zanella has contributed alignment fixes for statically + allocated variables. + * Jens Rosenboom has contributed fixes for heap-profiler_unittest.sh + * gshirishfree has contributed better description for GetStats method. + * cyshi has contributed spinlock pause fix. + * Chris Mayo has contributed --docdir argument support for configure. + * Duncan Sands has contributed fix for function aliases. + * Simon Que contributed better include for malloc_hook_c.h + * user wmamrak contributed struct timespec fix for Visual Studio 2015. + * user ssubotin contributed typo in PrintAvailability code. + * build fix for Visual Studio. + * dynamic sized delete is now disabled by default. It turned out that + IFUNC relocations are not supporting our advanced use case on all + platforms and in all cases. +- Removed the following patches. All have either been incorporated + upstream or are no longer applicable in current distros. + * gperftools-fix_docdir.patch + ------------------------------------------------------------------- Sat Oct 31 13:35:12 UTC 2015 - mpluskal@suse.com diff --git a/gperftools.spec b/gperftools.spec index 7b4d678..1c75bb8 100644 --- a/gperftools.spec +++ b/gperftools.spec @@ -1,7 +1,7 @@ # # spec file for package gperftools # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,14 +17,13 @@ Name: gperftools -Version: 2.4 +Version: 2.5 Release: 0 Summary: Performance Tools for C++ License: BSD-3-Clause Group: Development/Libraries/C and C++ Url: https://github.com/gperftools/gperftools Source0: https://github.com/gperftools/gperftools/releases/download/gperftools-%{version}/gperftools-%{version}.tar.gz -Patch4: %{name}-fix_docdir.patch Patch12: %{name}_fix_unassigned_malloc_in_unittest.patch Patch14: %{name}_gcc46.patch BuildRequires: autoconf >= 2.59 @@ -36,7 +35,6 @@ BuildRequires: pkg-config Provides: google-perftools Obsoletes: google-perftools BuildRoot: %{_tmppath}/%{name}-%{version}-build -ExcludeArch: s390 s390x %description The gperftools package contains some utilities to improve and analyze the @@ -73,8 +71,7 @@ The gperftools-devel package contains static and debug libraries and header files for developing applications that use the gperftools package. %prep -%setup -q -%patch4 -p1 +%setup -q -n %{name}-%{name}-%{version} %patch12 -p1 %patch14 -p1 @@ -85,7 +82,8 @@ export CFLAGS="%{optflags} -fno-strict-aliasing" %configure \ --disable-static \ --with-gnu-ld \ - --with-pic + --with-pic \ + --docdir=%{_defaultdocdir}/%{name} make %{?_smp_mflags} %install From f1cee880e08280bd0521777b1b02dc394ac6bd7d4bffe9229488aa1433a35f33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Wed, 23 Mar 2016 08:00:52 +0000 Subject: [PATCH 2/2] OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gperftools?expand=0&rev=32 --- gperftools-2.5.tar.gz | 4 ++-- gperftools.spec | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gperftools-2.5.tar.gz b/gperftools-2.5.tar.gz index 49c66cb..c8a0746 100644 --- a/gperftools-2.5.tar.gz +++ b/gperftools-2.5.tar.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7167d6c6e69312187390214c18f5d810f03bd202f61ae0e2be2ddc111c9e7ad4 -size 895687 +oid sha256:6fa2748f1acdf44d750253e160cf6e2e72571329b42e563b455bde09e9e85173 +size 1389081 diff --git a/gperftools.spec b/gperftools.spec index 1c75bb8..5330fd2 100644 --- a/gperftools.spec +++ b/gperftools.spec @@ -24,8 +24,8 @@ License: BSD-3-Clause Group: Development/Libraries/C and C++ Url: https://github.com/gperftools/gperftools Source0: https://github.com/gperftools/gperftools/releases/download/gperftools-%{version}/gperftools-%{version}.tar.gz -Patch12: %{name}_fix_unassigned_malloc_in_unittest.patch -Patch14: %{name}_gcc46.patch +Patch1: %{name}_fix_unassigned_malloc_in_unittest.patch +Patch2: %{name}_gcc46.patch BuildRequires: autoconf >= 2.59 BuildRequires: automake BuildRequires: gcc-c++ @@ -71,9 +71,9 @@ The gperftools-devel package contains static and debug libraries and header files for developing applications that use the gperftools package. %prep -%setup -q -n %{name}-%{name}-%{version} -%patch12 -p1 -%patch14 -p1 +%setup -q +%patch1 -p1 +%patch2 -p1 %build autoreconf -fi