summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorhiramatsu <hiramatsu>2015-04-03 14:05:38 +0000
committerhiramatsu <hiramatsu>2015-04-03 14:05:38 +0000
commit71fe9bb0f5e394d4c988c66bc77aeaaaa227cbdb (patch)
tree34caecb980326f01ffe721aa6e0e4801300c3888 /devel
parentb45057762bd0ada9871c64636fc69c13c00717e6 (diff)
downloadpkgsrc-71fe9bb0f5e394d4c988c66bc77aeaaaa227cbdb.tar.gz
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 (limited to 'devel')
-rw-r--r--devel/gperftools/Makefile14
-rw-r--r--devel/gperftools/distinfo9
-rw-r--r--devel/gperftools/patches/patch-Makefile.in42
3 files changed, 14 insertions, 51 deletions
diff --git a/devel/gperftools/Makefile b/devel/gperftools/Makefile
index 6f811504d94..aeda9a564fa 100644
--- a/devel/gperftools/Makefile
+++ b/devel/gperftools/Makefile
@@ -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
HOMEPAGE= https://code.google.com/p/gperftools/
@@ -19,6 +18,13 @@ USE_LANGUAGES= c c++
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 --git a/devel/gperftools/distinfo b/devel/gperftools/distinfo
index fcead2859d8..c1b01fec6ba 100644
--- a/devel/gperftools/distinfo
+++ b/devel/gperftools/distinfo
@@ -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 --git a/devel/gperftools/patches/patch-Makefile.in b/devel/gperftools/patches/patch-Makefile.in
deleted file mode 100644
index 5e839ac78f1..00000000000
--- a/devel/gperftools/patches/patch-Makefile.in
+++ /dev/null
@@ -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: