pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/gperftools Update devel/gperftools to 2.4, patch...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/dc486492731e
branches:  trunk
changeset: 649462:dc486492731e
user:      hiramatsu <hiramatsu%pkgsrc.org@localhost>
date:      Fri Apr 03 14:05:38 2015 +0000

description:
Update devel/gperftools to 2.4, patch provided by Jonathan Buschmann in PR 49625.

Changes from previous:

== 2.4 ==

+ enabled aggressive decommit option by default, significantly improve memory fragmentation
+ new ./configure flags for tcmalloc pagesize and tcmalloc allocation alignment.
+ Faster malloc/free, 5% on static library and about 10% on shared library. Mainly due to more efficient checking of malloc hooks.
+ Improved accuracy of stacktrace capturing in cpu profiler

== 2.3 ==

+ New experimental method for CPU profiling (only for Linux)
+ Most are fixes to pprof
+ Few other fixes, notably libunwind integration (selectable in configure step) and disabled on OSX & ppc64

== 2.2 ==

+ Support for mips/mips64/aarch64/ppc64-le
+ New method for capturing backtrace
+ More fixes
+ Fixes for Windows
+ Sources served by Google drive

diffstat:

 devel/gperftools/Makefile                  |  14 +++++++--
 devel/gperftools/distinfo                  |   9 ++---
 devel/gperftools/patches/patch-Makefile.in |  42 ------------------------------
 3 files changed, 14 insertions(+), 51 deletions(-)

diffs (90 lines):

diff -r 6baebecd23a0 -r dc486492731e devel/gperftools/Makefile
--- a/devel/gperftools/Makefile Fri Apr 03 13:13:15 2015 +0000
+++ b/devel/gperftools/Makefile Fri Apr 03 14:05:38 2015 +0000
@@ -1,9 +1,8 @@
-# $NetBSD: Makefile,v 1.2 2014/05/29 23:35:35 wiz Exp $
+# $NetBSD: Makefile,v 1.3 2015/04/03 14:05:38 hiramatsu Exp $
 
-DISTNAME=      gperftools-2.1
-PKGREVISION=   1
+DISTNAME=      gperftools-2.4
 CATEGORIES=    devel
-MASTER_SITES=  https://gperftools.googlecode.com/files/
+MASTER_SITES=  https://googledrive.com/host/0B6NtGsLhIcf7MWxMMF9JdTN3UVk/
 
 MAINTAINER=    cheusov%NetBSD.org@localhost
 HOMEPAGE=      https://code.google.com/p/gperftools/
@@ -19,6 +18,13 @@
 
 CONFIGURE_ARGS+=       --enable-frame-pointers # per README
 
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "Darwin"
+post-install:
+       ${INSTALL_DATA} ${WRKSRC}/doc/heap_checker.html ${DESTDIR}${PREFIX}/share/doc/${PKGNAME}/heap_checker.html
+.endif
+
 # http://code.google.com/p/gperftools/issues/detail?id=609
 
 PKGCONFIG_OVERRIDE=    libprofiler.pc
diff -r 6baebecd23a0 -r dc486492731e devel/gperftools/distinfo
--- a/devel/gperftools/distinfo Fri Apr 03 13:13:15 2015 +0000
+++ b/devel/gperftools/distinfo Fri Apr 03 14:05:38 2015 +0000
@@ -1,6 +1,5 @@
-$NetBSD: distinfo,v 1.1 2014/04/16 14:56:07 wiz Exp $
+$NetBSD: distinfo,v 1.2 2015/04/03 14:05:38 hiramatsu Exp $
 
-SHA1 (gperftools-2.1.tar.gz) = b799b99d9f021988bbc931db1c21b2f94826d4f0
-RMD160 (gperftools-2.1.tar.gz) = 0cf9af2502e661d3771976e943ef2afb8b749983
-Size (gperftools-2.1.tar.gz) = 1319896 bytes
-SHA1 (patch-Makefile.in) = 61dcee2b8aa4cddc9e31b4728e28aea7fd958e41
+SHA1 (gperftools-2.4.tar.gz) = 13b904d0d1f220e43e4495f3403ee280c6da26ea
+RMD160 (gperftools-2.4.tar.gz) = 19ce825850b8a3bc50db54fa022390878dd753bb
+Size (gperftools-2.4.tar.gz) = 1346075 bytes
diff -r 6baebecd23a0 -r dc486492731e devel/gperftools/patches/patch-Makefile.in
--- a/devel/gperftools/patches/patch-Makefile.in        Fri Apr 03 13:13:15 2015 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,42 +0,0 @@
-$NetBSD: patch-Makefile.in,v 1.1 2014/04/16 14:56:07 wiz Exp $
-
-Add missing -lexecinfo for NetBSD.
-
---- Makefile.in.orig   2013-07-30 09:12:29.000000000 +0000
-+++ Makefile.in
-@@ -1032,7 +1032,7 @@ heap_checker_debug_unittest_OBJECTS =  \
- heap_checker_debug_unittest_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \
-       $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \
-       $(heap_checker_debug_unittest_CXXFLAGS) $(CXXFLAGS) \
--      $(heap_checker_debug_unittest_LDFLAGS) $(LDFLAGS) -o $@
-+      $(heap_checker_debug_unittest_LDFLAGS) $(LDFLAGS) -o $@ -lexecinfo
- am__heap_checker_debug_unittest_sh_SOURCES_DIST =  \
-       src/tests/heap-checker_unittest.sh
- am_heap_checker_debug_unittest_sh_OBJECTS =
-@@ -2529,7 +2529,7 @@ atomicops_unittest_LDADD = $(LIBSPINLOCK
- @WITH_STACK_TRACE_TRUE@stacktrace_unittest_SOURCES = src/tests/stacktrace_unittest.cc \
- @WITH_STACK_TRACE_TRUE@                              $(STACKTRACE_UNITTEST_INCLUDES)
- 
--@WITH_STACK_TRACE_TRUE@stacktrace_unittest_LDADD = libstacktrace.la liblogging.la
-+@WITH_STACK_TRACE_TRUE@stacktrace_unittest_LDADD = libstacktrace.la liblogging.la -lexecinfo
- 
- ### ------- pprof
- 
-@@ -2962,7 +2962,8 @@ thread_dealloc_unittest_LDADD = $(LIBTCM
- # We also put pthreads after tcmalloc, because some pthread
- # implementations define their own malloc, and we need to go on the
- # first linkline to make sure our malloc 'wins'.
--@WITH_HEAP_CHECKER_TRUE@heap_checker_unittest_LDADD = $(LIBTCMALLOC) liblogging.la $(PTHREAD_LIBS)
-+@WITH_HEAP_CHECKER_TRUE@heap_checker_unittest_LDADD = $(LIBTCMALLOC) liblogging.la $(PTHREAD_LIBS) -lexecinfo
-+@WITH_HEAP_CHECKER_TRUE@heap-checker_debug_unittest_LDADD = -lexecinfo
- @WITH_DEBUGALLOC_TRUE@@WITH_HEAP_PROFILER_OR_CHECKER_TRUE@libtcmalloc_debug_la_SOURCES = src/debugallocation.cc $(HEAP_CHECKER_SOURCES) \
- @WITH_DEBUGALLOC_TRUE@@WITH_HEAP_PROFILER_OR_CHECKER_TRUE@                               $(TCMALLOC_INCLUDES)
- 
-@@ -2997,6 +2998,7 @@ thread_dealloc_unittest_LDADD = $(LIBTCM
- @WITH_DEBUGALLOC_TRUE@@WITH_HEAP_CHECKER_TRUE@heap_checker_debug_unittest_SOURCES = $(heap_checker_unittest_SOURCES)
- @WITH_DEBUGALLOC_TRUE@@WITH_HEAP_CHECKER_TRUE@heap_checker_debug_unittest_CXXFLAGS = $(heap_checker_unittest_CXXFLAGS)
- @WITH_DEBUGALLOC_TRUE@@WITH_HEAP_CHECKER_TRUE@heap_checker_debug_unittest_LDFLAGS = $(heap_checker_unittest_LDFLAGS)
-+@WITH_DEBUGALLOC_TRUE@@WITH_HEAP_CHECKER_TRUE@heap_checker_debug_unittest_LDADD = -lexecinfo
- # We want libtcmalloc last on the link line, but due to a bug in
- # libtool involving convenience libs, they need to come last on the
- # link line in order to get dependency ordering right.  This is ok:



Home | Main Index | Thread Index | Old Index