diff --git a/devel/google-perftools/Makefile b/devel/google-perftools/Makefile index dc82a27b9cdb..ce48341c9149 100644 --- a/devel/google-perftools/Makefile +++ b/devel/google-perftools/Makefile @@ -1,77 +1,77 @@ # Created by: Yuri Victorovich PORTNAME= google-perftools DISTVERSIONPREFIX= gperftools- -DISTVERSION= 2.8.1 +DISTVERSION= 2.9.1 CATEGORIES= devel MASTER_SITES= https://github.com/gperftools/gperftools/releases/download/gperftools-${PORTVERSION}/ DISTNAME= gperftools-${PORTVERSION} MAINTAINER= yuri@FreeBSD.org COMMENT= Fast, multi-threaded malloc() and nifty performance analysis tools LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/COPYING BROKEN_aarch64= fails to compile: src/stacktrace.cc:230:2: Cannot calculate stack trace: will need to write for your environment BROKEN_riscv64= fails to compile: src/base/basictypes.h:387:5: Could not determine cache line length - unknown architecture USES= compiler:c11 gmake libtool GNU_CONFIGURE= yes USE_LDCONFIG= yes TEST_TARGET= check LIBS+= -lexecinfo DOCSDIR= ${PREFIX}/share/doc/gperftools OPTIONS_DEFINE= DOCS OPTIONS_SINGLE= PAGESIZE ALIGN OPTIONS_SINGLE_ALIGN= ALIGN8 ALIGN16 OPTIONS_SINGLE_PAGESIZE= PAGE8K PAGE32K PAGE64K OPTIONS_DEFAULT= PAGE8K ALIGN16 ALIGN_DESC= The tcmalloc allocation alignment ALIGN8_DESC= 8 bytes allocation alignment ALIGN16_DESC= 16 bytes allocation alignment PAGESIZE_DESC= The tcmalloc internal page size PAGE8K_DESC= 8K page size PAGE32K_DESC= 32K page size PAGE64K_DESC= 64K page size ALIGN8_CONFIGURE_ON= --with-tcmalloc-alignment=8 ALIGN16_CONFIGURE_ON= --with-tcmalloc-alignment=16 PAGE8K_CONFIGURE_ON= --with-tcmalloc-pagesize=8 PAGE32K_CONFIGURE_ON= --with-tcmalloc-pagesize=32 PAGE64K_CONFIGURE_ON= --with-tcmalloc-pagesize=64 PORTDOCS= * .include .if ${COMPILER_TYPE} == "clang" && !defined(USE_GCC) # clang cannot disable builtins individually CXXFLAGS+= -fno-builtin .endif .if ${ARCH} == "amd64" CONFIGURE_ARGS+=--enable-frame-pointers .endif # keep in sync with all platforms where libunwind is available .if (${ARCH} == amd64 || ${ARCH} == i386) LIB_DEPENDS+= libunwind.so:devel/libunwind .endif post-build: @${ECHO} @${ECHO} "Please run 'make check' (requires bash)." @${ECHO} "Two testcases are known to fail. Testsuite is known to be" @${ECHO} "unreliable and give false positives and negatives (PR#661)." @${ECHO} post-install: ${MV} ${STAGEDIR}${PREFIX}/bin/pprof ${STAGEDIR}${PREFIX}/bin/perftools-pprof @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib*.so.* .include diff --git a/devel/google-perftools/distinfo b/devel/google-perftools/distinfo index b17fe1134c68..6f1031a530d6 100644 --- a/devel/google-perftools/distinfo +++ b/devel/google-perftools/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1609229907 -SHA256 (gperftools-2.8.1.tar.gz) = 12f07a8ba447f12a3ae15e6e3a6ad74de35163b787c0c7b76288d7395f2f74e0 -SIZE (gperftools-2.8.1.tar.gz) = 1598384 +TIMESTAMP = 1619158546 +SHA256 (gperftools-2.9.1.tar.gz) = ea566e528605befb830671e359118c2da718f721c27225cbbc93858c7520fee3 +SIZE (gperftools-2.9.1.tar.gz) = 1581218 diff --git a/devel/google-perftools/files/patch-Makefile.am b/devel/google-perftools/files/patch-Makefile.am index 9923ff2eea64..011506ac6890 100644 --- a/devel/google-perftools/files/patch-Makefile.am +++ b/devel/google-perftools/files/patch-Makefile.am @@ -1,13 +1,13 @@ ---- Makefile.am.orig 2017-12-09 17:59:37 UTC +--- Makefile.am.orig 2021-02-28 23:41:19 UTC +++ Makefile.am -@@ -133,8 +133,8 @@ googleinclude_HEADERS = \ +@@ -122,8 +122,8 @@ googleinclude_HEADERS = \ # Add your documentation files (in doc/) in addition to these # top-level boilerplate files. Also add a TODO file if you have one. # We'll add to this later, on a library-by-library basis -dist_doc_DATA = AUTHORS COPYING ChangeLog INSTALL NEWS README README_windows.txt \ - TODO ChangeLog.old +dist_doc_DATA = AUTHORS NEWS README README_windows.txt + # The libraries (.so's) you want to install # We'll add to this later, on a library-by-library basis diff --git a/devel/google-perftools/files/patch-src_stacktrace.cc b/devel/google-perftools/files/patch-src_stacktrace.cc new file mode 100644 index 000000000000..6be8a0d4cbee --- /dev/null +++ b/devel/google-perftools/files/patch-src_stacktrace.cc @@ -0,0 +1,13 @@ +- workaround for https://github.com/gperftools/gperftools/issues/1271 + +--- src/stacktrace.cc.orig 2021-04-23 06:18:43 UTC ++++ src/stacktrace.cc +@@ -219,7 +219,7 @@ static GetStackImplementation *all_impls[] = { + + // ppc and i386 implementations prefer arch-specific asm implementations. + // arm's asm implementation is broken +-#if defined(__i386__) || defined(__ppc__) || defined(__PPC__) ++#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__PPC__) + #if !defined(NO_FRAME_POINTER) + #define TCMALLOC_DONT_PREFER_LIBUNWIND + #endif diff --git a/devel/google-perftools/pkg-plist b/devel/google-perftools/pkg-plist index b45a714156e0..b4fa1536bc89 100644 --- a/devel/google-perftools/pkg-plist +++ b/devel/google-perftools/pkg-plist @@ -1,51 +1,51 @@ bin/perftools-pprof bin/pprof-symbolize include/google/heap-checker.h include/google/heap-profiler.h include/google/malloc_extension.h include/google/malloc_extension_c.h include/google/malloc_hook.h include/google/malloc_hook_c.h include/google/profiler.h include/google/stacktrace.h include/google/tcmalloc.h include/gperftools/heap-checker.h include/gperftools/heap-profiler.h include/gperftools/malloc_extension.h include/gperftools/malloc_extension_c.h include/gperftools/malloc_hook.h include/gperftools/malloc_hook_c.h include/gperftools/nallocx.h include/gperftools/profiler.h include/gperftools/stacktrace.h include/gperftools/tcmalloc.h lib/libprofiler.a lib/libprofiler.so lib/libprofiler.so.0 -lib/libprofiler.so.0.5.1 +lib/libprofiler.so.0.5.4 lib/libtcmalloc.a lib/libtcmalloc.so lib/libtcmalloc.so.4 -lib/libtcmalloc.so.4.5.6 +lib/libtcmalloc.so.4.5.9 lib/libtcmalloc_and_profiler.a lib/libtcmalloc_and_profiler.so lib/libtcmalloc_and_profiler.so.4 -lib/libtcmalloc_and_profiler.so.4.6.1 +lib/libtcmalloc_and_profiler.so.4.6.4 lib/libtcmalloc_debug.a lib/libtcmalloc_debug.so lib/libtcmalloc_debug.so.4 -lib/libtcmalloc_debug.so.4.5.6 +lib/libtcmalloc_debug.so.4.5.9 lib/libtcmalloc_minimal.a lib/libtcmalloc_minimal.so lib/libtcmalloc_minimal.so.4 -lib/libtcmalloc_minimal.so.4.5.6 +lib/libtcmalloc_minimal.so.4.5.9 lib/libtcmalloc_minimal_debug.a lib/libtcmalloc_minimal_debug.so lib/libtcmalloc_minimal_debug.so.4 -lib/libtcmalloc_minimal_debug.so.4.5.6 +lib/libtcmalloc_minimal_debug.so.4.5.9 libdata/pkgconfig/libprofiler.pc libdata/pkgconfig/libtcmalloc.pc libdata/pkgconfig/libtcmalloc_debug.pc libdata/pkgconfig/libtcmalloc_minimal.pc libdata/pkgconfig/libtcmalloc_minimal_debug.pc man/man1/pprof.1.gz