From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Mar 1 20:00:05 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A42FA10658D1 for ; Sun, 1 Mar 2009 20:00:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 71B518FC2D for ; Sun, 1 Mar 2009 20:00:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n21K05td014918 for ; Sun, 1 Mar 2009 20:00:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n21K05LI014917; Sun, 1 Mar 2009 20:00:05 GMT (envelope-from gnats) Resent-Date: Sun, 1 Mar 2009 20:00:05 GMT Resent-Message-Id: <200903012000.n21K05LI014917@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Mario Sergio Fujikawa Ferreira Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB0C31065674 for ; Sun, 1 Mar 2009 19:59:36 +0000 (UTC) (envelope-from lioux@uol.com.br) Received: from goat.gigo.com (ipv6.gigo.com [IPv6:2001:470:1:18::2]) by mx1.freebsd.org (Postfix) with ESMTP id 8A3128FC23 for ; Sun, 1 Mar 2009 19:59:36 +0000 (UTC) (envelope-from lioux@uol.com.br) Received: from localhost (localhost [127.0.0.1]) by goat.gigo.com (Postfix) with ESMTP id 7163573F7 for ; Sun, 1 Mar 2009 11:59:36 -0800 (PST) Received: from goat.gigo.com ([127.0.0.1]) by localhost (vette.gigo.com [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id 4gxV+NJp7VMP for ; Sun, 1 Mar 2009 11:59:36 -0800 (PST) Received: from 189.74.32.106 (201-88-36-118.bsace702.dsl.brasiltelecom.net.br [201.88.36.118]) by goat.gigo.com (Postfix) with ESMTPA id 9830C6F94 for ; Sun, 1 Mar 2009 11:59:35 -0800 (PST) Received: (qmail 23837 invoked by uid 1001); 1 Mar 2009 16:59:18 -0300 Message-Id: <20090301195918.23826.qmail@exxodus.fedaykin.here> Date: 1 Mar 2009 16:59:18 -0300 From: Mario Sergio Fujikawa Ferreira To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: gnome@FreeBSD.org Subject: ports/132231: [PATCH] www/firefox: Add option to build with Profile-Guided Optimization X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Mar 2009 20:00:09 -0000 >Number: 132231 >Category: ports >Synopsis: [PATCH] www/firefox: Add option to build with Profile-Guided Optimization >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Mar 01 20:00:05 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Mario Sergio Fujikawa Ferreira >Release: FreeBSD 7.1-STABLE i386 >Organization: >Environment: System: FreeBSD exxodus.fedaykin.here 7.1-STABLE FreeBSD 7.1-STABLE #57: Tue Feb 24 03:51:58 BRT 2009 >Description: - Add WITH_PGO to build with Profile-Guided Optimization Added file(s): - files/mozconfig-profile_guided_optimization.in Port maintainer (gnome@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- firefox-3.0.6,1.patch begins here --- Index: Makefile =================================================================== RCS file: /home/pcvs/ports/www/firefox3/Makefile,v retrieving revision 1.12 diff -d -u -u -r1.12 Makefile --- Makefile 11 Feb 2009 14:48:35 -0000 1.12 +++ Makefile 1 Mar 2009 19:57:43 -0000 @@ -53,6 +53,7 @@ OPTIONS= DBUS "Enable D-BUS support" on \ NEWTAB "Open external links in a new tab" on \ + PGO "Enable Profile-Guided Optimization" off \ SMB "Enable smb:// URI support using gnomevfs" off .include @@ -72,6 +73,14 @@ LIB_DEPENDS+= dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib .endif +.if defined(WITH_PGO) +USE_PYTHON_BUILD= yes +.include "${PORTSDIR}/Mk/bsd.python.mk" + +MAKEFILE=client.mk +ALL_TARGET=profiledbuild +.endif + .if ${ARCH} == "sparc64" BROKEN= Does not compile on sparc64 .endif @@ -100,6 +109,13 @@ ${LN} -s xptcinvoke_asm_sparc64_openbsd.s xptcinvoke_asm_sparc64_freebsd.s) .endif +pre-build: +.if defined(WITH_PGO) + @${SED} -e 's|@PYTHON@|${PYTHON_CMD}|' \ + <${FILESDIR}/mozconfig-profile_guided_optimization.in \ + >> ${BUILD_WRKSRC}/.mozconfig +.endif + port-pre-install: # ${SED} -e 's|1.9a7|0|' ${WRKSRC}/dist/bin/application.ini ${FAKEDIR}/lib ${ECHO_CMD} 'share/applications/${MOZILLA}.desktop' >> ${PLISTF} Index: files/mozconfig-profile_guided_optimization.in =================================================================== RCS file: files/mozconfig-profile_guided_optimization.in diff -N files/mozconfig-profile_guided_optimization.in --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/mozconfig-profile_guided_optimization.in 1 Mar 2009 19:57:43 -0000 @@ -0,0 +1 @@ +mk_add_options PROFILE_GEN_SCRIPT='@PYTHON@ $(OBJDIR)/_profile/pgo/profileserver.py' --- firefox-3.0.6,1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: