From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Jun 9 15:00:15 2010 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 DCB841065676 for ; Wed, 9 Jun 2010 15:00:15 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (unknown [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9F1748FC13 for ; Wed, 9 Jun 2010 15:00:15 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o59F0FJd072423 for ; Wed, 9 Jun 2010 15:00:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o59F0FgU072422; Wed, 9 Jun 2010 15:00:15 GMT (envelope-from gnats) Resent-Date: Wed, 9 Jun 2010 15:00:15 GMT Resent-Message-Id: <201006091500.o59F0FgU072422@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, Nathan Whitehorn Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 821861065672 for ; Wed, 9 Jun 2010 14:55:01 +0000 (UTC) (envelope-from nwhitehorn@anacreon.physics.wisc.edu) Received: from anacreon.physics.wisc.edu (anacreon.physics.wisc.edu [128.104.160.176]) by mx1.freebsd.org (Postfix) with ESMTP id 4E17B8FC08 for ; Wed, 9 Jun 2010 14:55:00 +0000 (UTC) Received: from anacreon.physics.wisc.edu (localhost [127.0.0.1]) by anacreon.physics.wisc.edu (8.14.4/8.14.4) with ESMTP id o59EsxNH022982 for ; Wed, 9 Jun 2010 09:54:59 -0500 (CDT) (envelope-from nwhitehorn@anacreon.physics.wisc.edu) Received: (from nwhitehorn@localhost) by anacreon.physics.wisc.edu (8.14.4/8.14.4/Submit) id o59EsxRp022974; Wed, 9 Jun 2010 09:54:59 -0500 (CDT) (envelope-from nwhitehorn) Message-Id: <201006091454.o59EsxRp022974@anacreon.physics.wisc.edu> Date: Wed, 9 Jun 2010 09:54:59 -0500 (CDT) From: Nathan Whitehorn To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/147725: [patch] powerpc64 support for www/webkit-gtk2 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Nathan Whitehorn List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jun 2010 15:00:15 -0000 >Number: 147725 >Category: ports >Synopsis: [patch] powerpc64 support for www/webkit-gtk2 >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: Wed Jun 09 15:00:15 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Nathan Whitehorn >Release: FreeBSD 9.0-CURRENT powerpc64 >Organization: University of Wisconsin >Environment: System: FreeBSD anacreon.physics.wisc.edu 9.0-CURRENT FreeBSD 9.0-CURRENT #3 r208870:208872: Sun Jun 6 09:33:03 CDT 2010 root@anacreon.physics.wisc.edu:/usr/obj/scratch/src/sys/ANACREON powerpc64 >Description: The powerpc64 ABI uses a table of contents structure holding a maximum of 65,000 elements per library, which GTK2-webkit overflows by default. Binutils 2.15 is incapable of rectifying this with several default optimizations turned on, resulting in webkit failing to link on this platform. >How-To-Repeat: >Fix: The attached patch reduces the size of the TOC to fit within its bounds by adding -mminimal-toc to CFLAGS on powerpc64. --- webkit-gtk2.diff begins here --- --- Makefile.dist 2010-06-09 08:28:14.000000000 -0500 +++ Makefile 2010-06-09 08:29:14.000000000 -0500 @@ -88,6 +88,14 @@ BROKEN= does not compile on 6.X .endif +.if !defined(ARCH) +ARCH!= /usr/bin/uname -p +.endif + +.if ${ARCH} == powerpc64 +CFLAGS+= -mminimal-toc +.endif + post-patch: @${REINPLACE_CMD} -e 's|%%BROWSER_PLUGINS_DIR%%|${BROWSER_PLUGINS_DIR}|' \ ${WRKSRC}/WebCore/plugins/PluginDatabase.cpp --- webkit-gtk2.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: