ports/147725: [patch] powerpc64 support for www/webkit-gtk2

Nathan Whitehorn nwhitehorn at FreeBSD.org
Wed Jun 9 15:00:15 UTC 2010


>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 at 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:



More information about the freebsd-ports-bugs mailing list