From nobody@FreeBSD.org  Wed Oct 24 22:27:54 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 2DD005DB
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 24 Oct 2012 22:27:54 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 16C258FC14
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 24 Oct 2012 22:27:54 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id q9OMRrxK078947
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 24 Oct 2012 22:27:53 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id q9OMRrQ1078937;
	Wed, 24 Oct 2012 22:27:53 GMT
	(envelope-from nobody)
Message-Id: <201210242227.q9OMRrQ1078937@red.freebsd.org>
Date: Wed, 24 Oct 2012 22:27:53 GMT
From: Justin Hibbits <jrh29@po.cwru.edu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: www/qt4-webkit needs devel/binutils as dependency
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         173042
>Category:       ports
>Synopsis:       www/qt4-webkit needs devel/binutils as dependency
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kde
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 24 22:30:00 UTC 2012
>Closed-Date:    Wed Jan 09 14:07:20 UTC 2013
>Last-Modified:  Wed Apr  3 15:30:02 UTC 2013
>Originator:     Justin Hibbits
>Release:        10-CURRENT
>Organization:
>Environment:
FreeBSD minbar 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r239690: Sun Aug 26 13:02:31 EDT 2012     chmeee@new-host-5:/home/chmeee/world/usr/home/chmeee/freebsd/head/sys/MYPOWERPC64  powerpc

>Description:
For PowerPC 32-bit (yes, I'm building on 64-bit, but in a 32-bit jail), the base ld segfaults when linking www/qt4-webkit.  This can be fixed by using ld from devel/binutils.
>How-To-Repeat:
Build www/qt4-webkit on ppc32 or 32-bit jail on ppc64.
>Fix:
Add devel/binutils as build dependency.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->kde 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Wed Oct 24 22:30:08 UTC 2012 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=173042 
State-Changed-From-To: open->closed 
State-Changed-By: avilla 
State-Changed-When: Wed Jan 9 14:07:19 UTC 2013 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=173042 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/173042: commit references a PR
Date: Wed,  9 Jan 2013 14:07:35 +0000 (UTC)

 Author: avilla
 Date: Wed Jan  9 14:07:28 2013
 New Revision: 310146
 URL: http://svnweb.freebsd.org/changeset/ports/310146
 
 Log:
   - Add dependency on devel/binutils' ld(1) to fix build on PowerPC.
   
   PR:		173042
   Submitted by:	Justin Hibbits <jrh29@po.cwru.edu>
 
 Modified:
   head/www/qt4-webkit/Makefile   (contents, props changed)
 
 Modified: head/www/qt4-webkit/Makefile
 ==============================================================================
 --- head/www/qt4-webkit/Makefile	Wed Jan  9 13:53:56 2013	(r310145)
 +++ head/www/qt4-webkit/Makefile	Wed Jan  9 14:07:28 2013	(r310146)
 @@ -1,9 +1,5 @@
 -# New ports collection makefile for:	qt4-webkit
 -# Date created:				Mon May 12 17:18:19 CEST 2008
 -# Whom:					danny@ricin.com
 -#
 +# Created by: danny@ricin.com
  # $FreeBSD$
 -#
  
  PORTNAME=	webkit
  DISTVERSION=	${QT4_VERSION}
 @@ -48,6 +44,14 @@ CONFIGURE_ARGS+=	-I../../../../include/Q
  
  EXTRA_PATCHES=	${.CURDIR}/../../devel/qt4/files/patch-configure
  
 +.include <bsd.port.pre.mk>
 +
 +# Base ld(1) segfaults on PowerPC:
 +# http://bugs.freebsd.org/173042
 +.if ${ARCH} == "powerpc"
 +BUILD_DEPENDS+=	${LOCALBASE}/bin/ld:${PORTSDIR}/devel/binutils
 +.endif
 +
  pre-configure:
  	${MKDIR} ${WRKSRC}/mkspecs
  	${LN} -sf ${LOCALBASE}/bin/qmake-qt4 ${WRKSRC}/bin/qmake
 @@ -77,4 +81,4 @@ post-configure:
  		${WRKSRC}/lib/pkgconfig/QtWebKit.pc \
  		${WRKSRC}/lib/libQtWebKit.la
  
 -.include <bsd.port.mk>
 +.include <bsd.port.post.mk>
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 

From: Justin Hibbits <chmeeedalf@gmail.com>
To: bug-followup@FreeBSD.org,
 jrh29@po.cwru.edu
Cc:  
Subject: Re: ports/173042: www/qt4-webkit needs devel/binutils as dependency
Date: Wed, 3 Apr 2013 08:24:06 -0700

 This still fails, because the linker is run through g++, not ld  
 directly.  Can gcc be told to use a specific linker for this, or is it  
 better to simply make it USE_GCC=4.6+?  I don't know if this affects  
 any other platform but powerpc and powerpc64.
 
 - Justin
>Unformatted:
