From owner-svn-ports-all@freebsd.org Wed Feb 6 08:02:45 2019 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D5B5C14C4B90; Wed, 6 Feb 2019 08:02:44 +0000 (UTC) (envelope-from yuri@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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7608E89790; Wed, 6 Feb 2019 08:02:44 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 626232799; Wed, 6 Feb 2019 08:02:44 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x1682io6088367; Wed, 6 Feb 2019 08:02:44 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x1682hdG088365; Wed, 6 Feb 2019 08:02:43 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201902060802.x1682hdG088365@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Wed, 6 Feb 2019 08:02:43 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r492292 - in head/devel/google-perftools: . files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/devel/google-perftools: . files X-SVN-Commit-Revision: 492292 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 7608E89790 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.96 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.96)[-0.960,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-0.999,0] X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Feb 2019 08:02:45 -0000 Author: yuri Date: Wed Feb 6 08:02:43 2019 New Revision: 492292 URL: https://svnweb.freebsd.org/changeset/ports/492292 Log: devel/google-perftools: fix build with GCC-based architectures PR: 235498 Submitted by: Piotr Kubaj Added: head/devel/google-perftools/files/patch-configure (contents, props changed) head/devel/google-perftools/files/patch-src_stacktrace__powerpc-darwin-inl.h (contents, props changed) Modified: head/devel/google-perftools/Makefile Modified: head/devel/google-perftools/Makefile ============================================================================== --- head/devel/google-perftools/Makefile Wed Feb 6 07:58:35 2019 (r492291) +++ head/devel/google-perftools/Makefile Wed Feb 6 08:02:43 2019 (r492292) @@ -14,13 +14,9 @@ COMMENT= Fast, multi-threaded malloc() and nifty perfo LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/COPYING -BROKEN_powerpc= fails to build: assembly not supported, see PR\#94: http://code.google.com/p/google-perftools/issues/detail?id=94&can=1 -BROKEN_powerpc64= fails to build: assembly not supported, see PR\#94: http://code.google.com/p/google-perftools/issues/detail?id=94&can=1 -BROKEN_sparc64= fails to build: assembly not supported, see PR\#94: http://code.google.com/p/google-perftools/issues/detail?id=94&can=1 - DOCSDIR= ${PREFIX}/share/doc/gperftools -USES= compiler gmake libtool +USES= compiler:c11 gmake libtool GNU_CONFIGURE= yes USE_LDCONFIG= yes TEST_TARGET= check Added: head/devel/google-perftools/files/patch-configure ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/google-perftools/files/patch-configure Wed Feb 6 08:02:43 2019 (r492292) @@ -0,0 +1,10 @@ +--- configure.orig 2018-04-30 06:05:33 UTC ++++ configure +@@ -18110,6 +18110,7 @@ $as_echo_n "checking how to access the program counter + pc_fields="$pc_fields uc_mcontext.arm_pc" # Linux (arm arch 5) + pc_fields="$pc_fields uc_mcontext.gp_regs[PT_NIP]" # Suse SLES 11 (ppc64) + pc_fields="$pc_fields uc_mcontext.mc_eip" # FreeBSD (i386) ++ pc_fields="$pc_fields uc_mcontext.mc_srr0" # FreeBSD (powerpc, powerpc64) + pc_fields="$pc_fields uc_mcontext.mc_rip" # FreeBSD (x86_64 [untested]) + pc_fields="$pc_fields uc_mcontext.__gregs[_REG_EIP]" # NetBSD (i386) + pc_fields="$pc_fields uc_mcontext.__gregs[_REG_RIP]" # NetBSD (x86_64) Added: head/devel/google-perftools/files/patch-src_stacktrace__powerpc-darwin-inl.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/google-perftools/files/patch-src_stacktrace__powerpc-darwin-inl.h Wed Feb 6 08:02:43 2019 (r492292) @@ -0,0 +1,14 @@ +--- src/stacktrace_powerpc-darwin-inl.h.orig 2016-08-25 05:12:24 UTC ++++ src/stacktrace_powerpc-darwin-inl.h +@@ -97,7 +97,11 @@ int GET_STACK_TRACE_OR_FRAMES { + // different asm syntax. I don't know quite the best way to discriminate + // systems using the old as from the new one; I've gone with __APPLE__. + // TODO(csilvers): use autoconf instead, to look for 'as --version' == 1 or 2 ++#ifdef __FreeBSD__ ++ __asm__ volatile ("mr %0,1" : "=r" (sp)); ++#else + __asm__ volatile ("mr %0,r1" : "=r" (sp)); ++#endif + + // On PowerPC, the "Link Register" or "Link Record" (LR), is a stack + // entry that holds the return address of the subroutine call (what