From owner-svn-ports-all@freebsd.org Thu Dec 17 10:36:55 2015 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1C562A4AFC0; Thu, 17 Dec 2015 10:36:55 +0000 (UTC) (envelope-from amdmi3@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 mx1.freebsd.org (Postfix) with ESMTPS id C95251CEE; Thu, 17 Dec 2015 10:36:54 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id tBHAarKp011067; Thu, 17 Dec 2015 10:36:53 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id tBHAarNP011065; Thu, 17 Dec 2015 10:36:53 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201512171036.tBHAarNP011065@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Thu, 17 Dec 2015 10:36:53 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r403901 - in head/security: tor tor-devel X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 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: Thu, 17 Dec 2015 10:36:55 -0000 Author: amdmi3 Date: Thu Dec 17 10:36:53 2015 New Revision: 403901 URL: https://svnweb.freebsd.org/changeset/ports/403901 Log: - Fix build with TCMALLOC and STATIC_TOR PR: 204739 Submitted by: amdmi3 Approved by: portmgr blanket MFH: 2015Q4 (blanket) Modified: head/security/tor-devel/Makefile head/security/tor/Makefile Modified: head/security/tor-devel/Makefile ============================================================================== --- head/security/tor-devel/Makefile Thu Dec 17 10:36:10 2015 (r403900) +++ head/security/tor-devel/Makefile Thu Dec 17 10:36:53 2015 (r403901) @@ -86,7 +86,7 @@ TOR_LIBEVENT_LIBS:= -levent_openssl ${TO .if ${PORT_OPTIONS:MTCMALLOC} CONFIGURE_ARGS+= --with-tcmalloc .if ${PORT_OPTIONS:MSTATIC_TOR} -BUILD_DEPENDS += ${LOCALBASE}/lib/libtcmalloc.so:${PORTSDIR}/devel/google-perftools +BUILD_DEPENDS+= ${LOCALBASE}/lib/libtcmalloc.a:${PORTSDIR}/devel/google-perftools .else LIB_DEPENDS+= libtcmalloc.so:${PORTSDIR}/devel/google-perftools .endif @@ -103,8 +103,15 @@ CONFIGURE_ARGS+= --disable-transparent .endif post-patch: - @${REINPLACE_CMD} -E -e "s@-ltcmalloc@${LOCALBASE}/lib/libtcmalloc.so@" \ - -e "s@(-z) (relro|now)@-Wl,\1,\2@g" \ + @${REINPLACE_CMD} -E -e "s@(-z) (relro|now)@-Wl,\1,\2@g" \ + ${WRKSRC}/configure + +post-patch-STATIC_TOR-off: + @${REINPLACE_CMD} -e "s@-ltcmalloc@${LOCALBASE}/lib/libtcmalloc.so@" \ + ${WRKSRC}/configure + +post-patch-STATIC_TOR-on: + @${REINPLACE_CMD} -e "s@-ltcmalloc@${LOCALBASE}/lib/libtcmalloc.a@" \ ${WRKSRC}/configure post-configure: Modified: head/security/tor/Makefile ============================================================================== --- head/security/tor/Makefile Thu Dec 17 10:36:10 2015 (r403900) +++ head/security/tor/Makefile Thu Dec 17 10:36:53 2015 (r403901) @@ -83,7 +83,7 @@ TOR_LIBEVENT_LIBS:= -levent_openssl ${TO .if ${PORT_OPTIONS:MTCMALLOC} CONFIGURE_ARGS+= --with-tcmalloc .if ${PORT_OPTIONS:MSTATIC_TOR} -BUILD_DEPENDS += ${LOCALBASE}/lib/libtcmalloc.so:${PORTSDIR}/devel/google-perftools +BUILD_DEPENDS+= ${LOCALBASE}/lib/libtcmalloc.a:${PORTSDIR}/devel/google-perftools .else LIB_DEPENDS+= libtcmalloc.so:${PORTSDIR}/devel/google-perftools .endif @@ -100,8 +100,15 @@ CONFIGURE_ARGS+= --disable-transparent .endif post-patch: - @${REINPLACE_CMD} -E -e "s@-ltcmalloc@${LOCALBASE}/lib/libtcmalloc.so@" \ - -e "s@(-z) (relro|now)@-Wl,\1,\2@g" \ + @${REINPLACE_CMD} -E -e "s@(-z) (relro|now)@-Wl,\1,\2@g" \ + ${WRKSRC}/configure + +post-patch-STATIC_TOR-off: + @${REINPLACE_CMD} -e "s@-ltcmalloc@${LOCALBASE}/lib/libtcmalloc.so@" \ + ${WRKSRC}/configure + +post-patch-STATIC_TOR-on: + @${REINPLACE_CMD} -e "s@-ltcmalloc@${LOCALBASE}/lib/libtcmalloc.a@" \ ${WRKSRC}/configure post-configure: