Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Apr 2016 12:53:17 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r412841 - in head/devel/google-perftools: . files
Message-ID:  <201604091253.u39CrHBg060266@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Sat Apr  9 12:53:17 2016
New Revision: 412841
URL: https://svnweb.freebsd.org/changeset/ports/412841

Log:
  - Update to 2.5
  - While I'm here:
    - Use = for LIB_DEPENDS
    - Convert to new options target helper
  
  Changes:	https://github.com/gperftools/gperftools/releases
  PR:		208582
  Submitted by:	Yuri Victorovich <yuri@rawbw.com> (maintainer)

Added:
  head/devel/google-perftools/files/patch-src_pprof   (contents, props changed)
Deleted:
  head/devel/google-perftools/files/patch-pprof
  head/devel/google-perftools/files/patch-static_vars.cc
Modified:
  head/devel/google-perftools/Makefile
  head/devel/google-perftools/distinfo
  head/devel/google-perftools/files/patch-Makefile.in
  head/devel/google-perftools/pkg-plist

Modified: head/devel/google-perftools/Makefile
==============================================================================
--- head/devel/google-perftools/Makefile	Sat Apr  9 12:46:11 2016	(r412840)
+++ head/devel/google-perftools/Makefile	Sat Apr  9 12:53:17 2016	(r412841)
@@ -2,10 +2,9 @@
 # $FreeBSD$
 
 PORTNAME=	google-perftools
-PORTVERSION=	2.4
-PORTREVISION=	1
+PORTVERSION=	2.5
 CATEGORIES=	devel
-MASTER_SITES=	https://googledrive.com/host/0B6NtGsLhIcf7MWxMMF9JdTN3UVk/
+MASTER_SITES=	https://github.com/gperftools/gperftools/releases/download/gperftools-${PORTVERSION}/
 DISTNAME=	gperftools-${PORTVERSION}
 
 MAINTAINER=	yuri@rawbw.com
@@ -14,7 +13,7 @@ COMMENT=	Fast, multi-threaded malloc() a
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-PROJECTHOST=	gperftools
+LIB_DEPENDS=	libunwind.so:${PORTSDIR}/devel/libunwind
 
 WRKSRC=		${WRKDIR}/gperftools-${PORTVERSION}
 DOCSDIR=	${PREFIX}/share/doc/gperftools
@@ -48,11 +47,11 @@ post-patch:
 		's|-fno-builtin-[a-z_]+||g' \
 		${WRKSRC}/Makefile.in
 .endif
-.if empty(PORT_OPTIONS:MDOCS)
+
+post-patch-DOCS-off:
 	${REINPLACE_CMD} -e \
 		'/^install-data-am:/ s|install-dist_docDATA||' \
 		${WRKSRC}/Makefile.in
-.endif
 
 post-build:
 	@${ECHO}
@@ -64,11 +63,12 @@ post-build:
 post-install:
 	${MKDIR} ${STAGEDIR}${PREFIX}/libdata
 	${MV} ${STAGEDIR}${PREFIX}/lib/pkgconfig ${STAGEDIR}${PREFIX}/libdata
+	${MV} ${STAGEDIR}${PREFIX}/bin/pprof ${STAGEDIR}${PREFIX}/bin/perftools-pprof
 
 post-stage:
 	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib*.so.*
 
-# four of the tests are known to fail on 7.0, uncomment this as soon as this is fixed
+# Two of the tests are known to fail on FreeBSD 10, uncomment this as soon as this is fixed
 #regression-test: check
 
 check: build

Modified: head/devel/google-perftools/distinfo
==============================================================================
--- head/devel/google-perftools/distinfo	Sat Apr  9 12:46:11 2016	(r412840)
+++ head/devel/google-perftools/distinfo	Sat Apr  9 12:53:17 2016	(r412841)
@@ -1,2 +1,2 @@
-SHA256 (gperftools-2.4.tar.gz) = 982a37226eb42f40714e26b8076815d5ea677a422fb52ff8bfca3704d9c30a2d
-SIZE (gperftools-2.4.tar.gz) = 1346075
+SHA256 (gperftools-2.5.tar.gz) = 6fa2748f1acdf44d750253e160cf6e2e72571329b42e563b455bde09e9e85173
+SIZE (gperftools-2.5.tar.gz) = 1389081

Modified: head/devel/google-perftools/files/patch-Makefile.in
==============================================================================
--- head/devel/google-perftools/files/patch-Makefile.in	Sat Apr  9 12:46:11 2016	(r412840)
+++ head/devel/google-perftools/files/patch-Makefile.in	Sat Apr  9 12:53:17 2016	(r412841)
@@ -1,20 +1,44 @@
---- Makefile.in.orig	2010-08-04 20:17:38.000000000 +0000
-+++ Makefile.in	2010-08-27 14:22:38.000000000 +0000
-@@ -1514,7 +1514,7 @@
- build_vendor = @build_vendor@
- datadir = @datadir@
- datarootdir = @datarootdir@
--docdir = $(prefix)/share/doc/$(PACKAGE)-$(VERSION)
-+docdir = $(prefix)/share/doc/$(PACKAGE)
- dvidir = @dvidir@
- exec_prefix = @exec_prefix@
- host = @host@
-@@ -1609,7 +1609,7 @@
+--- Makefile.in.orig	2016-03-12 20:07:30 UTC
++++ Makefile.in
+@@ -105,10 +105,10 @@ host_triplet = @host@
+ # changes one day.  gcc ignores functions it doesn't understand.
+ @GCC_TRUE@am__append_2 = -Wall -Wwrite-strings -Woverloaded-virtual \
+ @GCC_TRUE@               -Wno-sign-compare \
+-@GCC_TRUE@               -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc \
+-@GCC_TRUE@               -fno-builtin-calloc -fno-builtin-cfree \
+-@GCC_TRUE@               -fno-builtin-memalign -fno-builtin-posix_memalign \
+-@GCC_TRUE@               -fno-builtin-valloc -fno-builtin-pvalloc
++@GCC_TRUE@                  \
++@GCC_TRUE@                 \
++@GCC_TRUE@                 \
++@GCC_TRUE@                
+ 
+ @GCC_TRUE@am__append_3 = -fno-builtin
+ 
+@@ -1943,7 +1943,7 @@ am__can_run_installinfo = \
+ man1dir = $(mandir)/man1
+ NROFF = nroff
+ MANS = $(dist_man_MANS)
+-am__dist_doc_DATA_DIST = AUTHORS COPYING ChangeLog INSTALL NEWS README \
++am__dist_doc_DATA_DIST = AUTHORS ChangeLog INSTALL NEWS README \
+ 	README_windows.txt TODO doc/index.html doc/designstyle.css \
+ 	doc/pprof_remote_servers.html doc/tcmalloc.html \
+ 	doc/overview.gif doc/pageheap.gif doc/spanmap.gif \
+@@ -2185,7 +2185,7 @@ am__DIST_COMMON = $(dist_man_MANS) $(src
+ 	$(top_srcdir)/src/config.h.in \
+ 	$(top_srcdir)/src/gperftools/tcmalloc.h.in \
+ 	$(top_srcdir)/src/windows/gperftools/tcmalloc.h.in AUTHORS \
+-	COPYING ChangeLog INSTALL NEWS README TODO compile \
++	ChangeLog INSTALL NEWS README TODO compile \
+ 	config.guess config.sub depcomp install-sh ltmain.sh missing \
+ 	test-driver
+ DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+@@ -2429,7 +2429,7 @@ googleinclude_HEADERS = \
  # noinst doesn't seem to work with data.  I separate them out anyway, in case
  # one day we figure it out.  Regardless, installing the dot files isn't the
  # end of the world.
 -dist_doc_DATA = AUTHORS COPYING ChangeLog INSTALL NEWS README \
 +dist_doc_DATA = AUTHORS ChangeLog INSTALL NEWS README \
  	README_windows.txt TODO doc/index.html doc/designstyle.css \
- 	$(am__append_12) doc/tcmalloc.html doc/overview.gif \
+ 	$(am__append_18) doc/tcmalloc.html doc/overview.gif \
  	doc/pageheap.gif doc/spanmap.gif doc/threadheap.gif \

Added: head/devel/google-perftools/files/patch-src_pprof
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/google-perftools/files/patch-src_pprof	Sat Apr  9 12:53:17 2016	(r412841)
@@ -0,0 +1,11 @@
+--- src/pprof.orig	2016-03-01 03:36:11 UTC
++++ src/pprof
+@@ -4521,7 +4521,7 @@ sub ParseLibraries {
+     my $finish;
+     my $offset;
+     my $lib;
+-    if ($l =~ /^($h)-($h)\s+..x.\s+($h)\s+\S+:\S+\s+\d+\s+(.+\.(so|dll|dylib|bundle)((\.\d+)+\w*(\.\d+){0,3})?)$/i) {
++    if ($l =~ /^($h)-($h)\s+..x.\s+($h)\s+\S+:\S+\s+\d+\s+(.+\.(so|dll|dylib|bundle)((\.\d+)+\w*(\.\d+){0,3})?)\s+[A-Z]+\s+[\-0-9]+$/i) {
+       # Full line from /proc/self/maps.  Example:
+       #   40000000-40015000 r-xp 00000000 03:01 12845071   /lib/ld-2.3.2.so
+       $start = HexExtend($1);

Modified: head/devel/google-perftools/pkg-plist
==============================================================================
--- head/devel/google-perftools/pkg-plist	Sat Apr  9 12:46:11 2016	(r412840)
+++ head/devel/google-perftools/pkg-plist	Sat Apr  9 12:53:17 2016	(r412841)
@@ -1,4 +1,4 @@
-bin/pprof
+bin/perftools-pprof
 include/google/heap-checker.h
 include/google/heap-profiler.h
 include/google/malloc_extension.h
@@ -20,27 +20,27 @@ include/gperftools/tcmalloc.h
 lib/libprofiler.a
 lib/libprofiler.so
 lib/libprofiler.so.0
-lib/libprofiler.so.0.4.5
+lib/libprofiler.so.0.4.8
 lib/libtcmalloc.a
 lib/libtcmalloc.so
 lib/libtcmalloc.so.4
-lib/libtcmalloc.so.4.2.6
+lib/libtcmalloc.so.4.3.0
 lib/libtcmalloc_and_profiler.a
 lib/libtcmalloc_and_profiler.so
 lib/libtcmalloc_and_profiler.so.4
-lib/libtcmalloc_and_profiler.so.4.2.6
+lib/libtcmalloc_and_profiler.so.4.3.0
 lib/libtcmalloc_debug.a
 lib/libtcmalloc_debug.so
 lib/libtcmalloc_debug.so.4
-lib/libtcmalloc_debug.so.4.2.6
+lib/libtcmalloc_debug.so.4.3.0
 lib/libtcmalloc_minimal.a
 lib/libtcmalloc_minimal.so
 lib/libtcmalloc_minimal.so.4
-lib/libtcmalloc_minimal.so.4.2.6
+lib/libtcmalloc_minimal.so.4.3.0
 lib/libtcmalloc_minimal_debug.a
 lib/libtcmalloc_minimal_debug.so
 lib/libtcmalloc_minimal_debug.so.4
-lib/libtcmalloc_minimal_debug.so.4.2.6
+lib/libtcmalloc_minimal_debug.so.4.3.0
 libdata/pkgconfig/libprofiler.pc
 libdata/pkgconfig/libtcmalloc.pc
 libdata/pkgconfig/libtcmalloc_debug.pc



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604091253.u39CrHBg060266>