From nobody Tue Jul 19 00:46:34 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Ln0Wt2MN2z4WS1q; Tue, 19 Jul 2022 00:46:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ln0Wt1qXtz3Cpd; Tue, 19 Jul 2022 00:46:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658191594; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=H4a7SoYiovB7wwDoHMQGanbyBvwPxlUPkSU1AcJ+jYo=; b=Aku3TQ4vRw3lOoqSJ61FAVkDYdjpPogB2y9k8C0Bl/wXB4Qf1eEYLAmObkhbq4dGgTgonH FP/LiPRDxUxbs77293VDP7G2NLtMuhKY/EoZ+pKf1L0s78xYU9IHJ3zDvMzxGY3gkDbmeZ j4/YbPvj8gHYm1+3CBxU/thGPNM1XtdDlHoRQbf8bAuD7rjw5e3BP6mTE99hFHhhEA6V/u QCdOmj3WBGK1FV7RVhoJGfbN6r0By+Gr0rvjjdBc3w2d0m4gLw70J2xOms/G6rkZI51sYT axvqKwaaStwsC0hTXrzMl6tq9fekQ19e/P2bFHdFMKgHkbJct/Kx+OF1k8SqsA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Ln0Wt0rBhz108L; Tue, 19 Jul 2022 00:46:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 26J0kYqW063283; Tue, 19 Jul 2022 00:46:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26J0kYsv063282; Tue, 19 Jul 2022 00:46:34 GMT (envelope-from git) Date: Tue, 19 Jul 2022 00:46:34 GMT Message-Id: <202207190046.26J0kYsv063282@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 35bf4d1c97b8 - main - devel/google-perftools: Add PROFILER options List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 35bf4d1c97b88bec3bf690701f72113a2b60d78f Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658191594; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=H4a7SoYiovB7wwDoHMQGanbyBvwPxlUPkSU1AcJ+jYo=; b=FtDwvNLlXy+4Ne8fbzdN3xg8b6clPHI05XCseeT+uUQ3OMvqLcQ/Fsx48Ep61TlLjPNsPy hre7PREggzumehyHP6UWLncga4i0pErjm9yZV/70FGJ3sgmpAY9QFXHMbv2ggwlZx37EnY yUTdKI6b4XqVBjCAumy969TNaHektlvWwA4GfSekCoVz1wFOZzJzUimerk7KxirBlBolcS 2YivrNqp58Giyon8ewx16qPYUVyiBwiw7SBiGL4A2p3Dn20j+TPQQs8DcR4mxZkQsH05ad 9kREcNwYYZhrtjieIckM5FMlBZSrDaHrdUBD8amgR8/BtewY1P2q3TMyUV400A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658191594; a=rsa-sha256; cv=none; b=j2SMOnxkv1IHwViViaO3CFZ6qdXRsBSpTHLz7CzoW7XrrQSuk/eBFxmqZhZsXLLbXOVZ1w 5lfWNEkp4h86aq19KCTYG81XrQA+xOUIS6Wr/TFHiiN0cwnNrr+iiZMM8HUfOx2yAP3iqY UCf5r2kSFHRB5+QyzhNM4BPrxV0aOQuLi0m3SW/1dIji+shO5Bscdjnw26XVgEHKhwFpl/ amf2ti3DvriPzZ5Tzs33vrcDFz0nO3PQ1Reidqh8yasyZykj0mVH6Kxn6lN4lHEq6omnQc lynt8p1zDYNEAWpx41hqkTUvkR15BYz5jKwrdMfEvic5JOgcGRZHfHzFGbIxiA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=35bf4d1c97b88bec3bf690701f72113a2b60d78f commit 35bf4d1c97b88bec3bf690701f72113a2b60d78f Author: Yuri Victorovich AuthorDate: 2022-07-19 00:13:48 +0000 Commit: Yuri Victorovich CommitDate: 2022-07-19 00:46:30 +0000 devel/google-perftools: Add PROFILER options Option for CPU profiler is mostly to isolate situations when configure fails to enable it, like on armv6, armv7. Reference: https://github.com/gperftools/gperftools/issues/1355#issuecomment-1188455253 --- devel/google-perftools/Makefile | 17 ++++++++++++++++- devel/google-perftools/pkg-plist | 18 +++++++++--------- 2 files changed, 25 insertions(+), 10 deletions(-) diff --git a/devel/google-perftools/Makefile b/devel/google-perftools/Makefile index 8955117cf6bd..cd21d6bcff71 100644 --- a/devel/google-perftools/Makefile +++ b/devel/google-perftools/Makefile @@ -3,6 +3,7 @@ PORTNAME= google-perftools DISTVERSIONPREFIX= gperftools- DISTVERSION= 2.10 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= https://github.com/gperftools/gperftools/releases/download/gperftools-${PORTVERSION}/ DISTNAME= gperftools-${PORTVERSION} @@ -25,11 +26,25 @@ LIBS+= -lexecinfo DOCSDIR= ${PREFIX}/share/doc/gperftools -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS PROFILER OPTIONS_SINGLE= PAGESIZE ALIGN OPTIONS_SINGLE_ALIGN= ALIGN8 ALIGN16 OPTIONS_SINGLE_PAGESIZE= PAGE8K PAGE32K PAGE64K OPTIONS_DEFAULT= PAGE8K ALIGN16 +OPTIONS_DEFAULT_amd64= PROFILER +OPTIONS_DEFINE_aarch64= PROFILER +OPTIONS_DEFINE_amd64= PROFILER +OPTIONS_DEFINE_armv6= # PROFILER is disabled: WARNING: Could not find the PC. Will not try to compile libprofiler. +OPTIONS_DEFINE_armv7= # PROFILER is disabled: WARNING: Could not find the PC. Will not try to compile libprofiler. +OPTIONS_DEFINE_i386= PROFILER +OPTIONS_DEFINE_powerpc= PROFILER +OPTIONS_DEFINE_powerpc64= PROFILER +OPTIONS_DEFINE_powerpc64le= PROFILER +OPTIONS_DEFINE_riscv64= PROFILER +OPTIONS_SUB= yes + +PROFILER_DESC= Enable CPU profiler +PROFILER_CONFIGURE_ENABLE= cpu-profiler ALIGN_DESC= The tcmalloc allocation alignment ALIGN8_DESC= 8 bytes allocation alignment diff --git a/devel/google-perftools/pkg-plist b/devel/google-perftools/pkg-plist index f7d38a336a88..b84c09f06679 100644 --- a/devel/google-perftools/pkg-plist +++ b/devel/google-perftools/pkg-plist @@ -16,21 +16,21 @@ 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 +%%PROFILER%%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.5 +%%PROFILER%%lib/libprofiler.a +%%PROFILER%%lib/libprofiler.so +%%PROFILER%%lib/libprofiler.so.0 +%%PROFILER%%lib/libprofiler.so.0.5.5 lib/libtcmalloc.a lib/libtcmalloc.so lib/libtcmalloc.so.4 lib/libtcmalloc.so.4.5.10 -lib/libtcmalloc_and_profiler.a -lib/libtcmalloc_and_profiler.so -lib/libtcmalloc_and_profiler.so.4 -lib/libtcmalloc_and_profiler.so.4.6.5 +%%PROFILER%%lib/libtcmalloc_and_profiler.a +%%PROFILER%%lib/libtcmalloc_and_profiler.so +%%PROFILER%%lib/libtcmalloc_and_profiler.so.4 +%%PROFILER%%lib/libtcmalloc_and_profiler.so.4.6.5 lib/libtcmalloc_debug.a lib/libtcmalloc_debug.so lib/libtcmalloc_debug.so.4