From owner-freebsd-gnome@FreeBSD.ORG Mon Mar 30 08:27:41 2009 Return-Path: Delivered-To: gnome@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B89501065673 for ; Mon, 30 Mar 2009 08:27:41 +0000 (UTC) (envelope-from lioux@FreeBSD.org) Received: from goat.gigo.com (ipv6.gigo.com [IPv6:2001:470:1:18::2]) by mx1.freebsd.org (Postfix) with ESMTP id 9C1928FC0A for ; Mon, 30 Mar 2009 08:27:41 +0000 (UTC) (envelope-from lioux@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by goat.gigo.com (Postfix) with ESMTP id 981536D0E for ; Mon, 30 Mar 2009 01:27:41 -0700 (PDT) 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 Z0-JWfd4FcvH for ; Mon, 30 Mar 2009 01:27:41 -0700 (PDT) Received: from 200.101.51.13 (201-67-55-153.bsace702.dsl.brasiltelecom.net.br [201.67.55.153]) by goat.gigo.com (Postfix) with ESMTPA id 7A9F06BAE for ; Mon, 30 Mar 2009 01:27:40 -0700 (PDT) Received: (qmail 64224 invoked by uid 1001); 30 Mar 2009 05:03:55 -0300 Message-ID: <20090330080355.64208.qmail@exxodus.fedaykin.here> Date: Mon, 30 Mar 2009 05:03:55 -0300 From: Mario Sergio Fujikawa Ferreira To: bug-followup@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="Kj7319i9nmIyA2yE" Content-Disposition: inline User-Agent: Mutt/1.5.19 (2009-01-05) Cc: gnome@FreeBSD.org, lioux@freebsd.org Subject: Re: ports/132231: [PATCH] www/firefox3: Add option to build with Profile-Guided Optimization X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Mar 2009 08:27:42 -0000 --Kj7319i9nmIyA2yE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, The patch had to be slightly modified after the MAKE_JOBS_SAFE option was added. The updated patch work with Firefox 3.0.8. Regards, -- Mario S F Ferreira - DF - Brazil - "I guess this is a signature." feature, n: a documented bug | bug, n: an undocumented feature --Kj7319i9nmIyA2yE Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename=patch --- Makefile.orig 2009-03-30 03:06:06.000000000 -0300 +++ Makefile 2009-03-30 03:26:55.000000000 -0300 @@ -38,7 +38,6 @@ HAS_CONFIGURE= yes USE_BZIP2= yes USE_GMAKE= yes -MAKE_JOBS_SAFE= yes NO_MOZPKGINSTALL=yes FIREFOX_ICON= ${MOZILLA}.png @@ -54,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 @@ -73,6 +73,18 @@ 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 + +MAKE_JOBS_UNSAFE= yes +.else +MAKE_JOBS_SAFE= yes +.endif + .if ${ARCH} == "sparc64" BROKEN= Does not compile on sparc64 .endif @@ -101,6 +113,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} --Kj7319i9nmIyA2yE Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="mozconfig-profile_guided_optimization.in" mk_add_options PROFILE_GEN_SCRIPT='@PYTHON@ $(OBJDIR)/_profile/pgo/profileserver.py' --Kj7319i9nmIyA2yE--