From cmt@elch.exwg.net  Sat Dec  7 17:03:13 2013
Return-Path: <cmt@elch.exwg.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 1B6B9A34
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  7 Dec 2013 17:03:13 +0000 (UTC)
Received: from smtp.burggraben.net (base.exwg.net [IPv6:2a01:4f8:140:50a2::2])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id CCE1119D5
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  7 Dec 2013 17:03:12 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
	by smtp.burggraben.net (Postfix) with ESMTP id 740F060008B
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  7 Dec 2013 18:03:11 +0100 (CET)
Received: from smtp.burggraben.net ([127.0.0.1])
	by localhost (ns.burggraben.net [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id JxIMqF4fRGF8 for <FreeBSD-gnats-submit@freebsd.org>;
	Sat,  7 Dec 2013 18:03:11 +0100 (CET)
Received: from elch.exwg.net (elch.exwg.net [IPv6:2001:470:7b43:1:6a05:caff:fe01:aae9])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "elch.exwg.net", Issuer "Christoph Moench-Tegeder" (verified OK))
	by smtp.burggraben.net (Postfix) with ESMTPS
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  7 Dec 2013 18:03:11 +0100 (CET)
Received: by elch.exwg.net (Postfix, from userid 1000)
	id CE539313DA; Sat,  7 Dec 2013 18:03:09 +0100 (CET)
Message-Id: <20131207170309.CE539313DA@elch.exwg.net>
Date: Sat,  7 Dec 2013 18:03:09 +0100 (CET)
From: Christoph Moench-Tegeder <cmt@burggraben.net>
Reply-To: Christoph Moench-Tegeder <cmt@burggraben.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: science/meep : fix build with gcc47
X-Send-Pr-Version: 3.114
X-GNATS-Notify: devel@stasyan.com

>Number:         184578
>Category:       ports
>Synopsis:       science/meep : fix build with gcc47
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 07 17:10:01 UTC 2013
>Closed-Date:    Sun Dec 08 18:35:43 UTC 2013
>Last-Modified:  Sun Dec 08 18:35:43 UTC 2013
>Originator:     Christoph Moench-Tegeder
>Release:        FreeBSD 9.2-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD elch.exwg.net 9.2-RELEASE FreeBSD 9.2-RELEASE #11 r255911: Fri Sep 27 17:09:40 CEST 2013 cmt@elch.exwg.net:/usr/obj/usr/src/sys/ELCH amd64

lang/gcc47		gcc47-4.7.4.20131130
science/meep	meep-1.2_1

>Description:
Hi,

in an effort towards upgrading lang/gcc to gcc 4.7, I'm helping gerald@
in making ports gcc47-safe.
Please consider the following patch to your port. If you approve of the
patch, gerald@ has offered his help in commiting it.
If you're commiting yourself or have someone else commit this (or
another patch to the same effect), can you please add an additional
reference to ports/183342 in the commit message?
In my test environment, the port built successfully with lang/gcc47.

>How-To-Repeat:

>Fix:

Without this patch, the toolchain would pick the wrong (old) libgcc_s.

# add ${_GCC_RUNTIME} to linker path to direct ld away from the system libgcc_s
$ svn status
M       Makefile

Index: Makefile
===================================================================
--- Makefile	(revision 334026)
+++ Makefile	(working copy)
@@ -40,6 +40,7 @@
 .if ${PORT_OPTIONS:MOPENMPI}
 BUILD_DEPENDS+=	${LOCALBASE}/mpi/openmpi/bin/mpiCC:${PORTSDIR}/net/openmpi
 RUN_DEPENDS+=	${LOCALBASE}/mpi/openmpi/bin/mpirun:${PORTSDIR}/net/openmpi
+LDFLAGS+=	-L${_GCC_RUNTIME}
 CONFIGURE_ARGS+=--with-mpi
 CONFIGURE_ENV+=	MPICXX=${LOCALBASE}/mpi/openmpi/bin/mpiCC
 PLIST_SUB+=	MPI="" NOMPI="@comment "


Regards,
Christoph
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Sat Dec 7 17:10:14 UTC 2013 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

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

From: Edwin Groothuis <edwin@FreeBSD.org>
To: devel@stasyan.com
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/184578: science/meep : fix build with gcc47
Date: Sat, 7 Dec 2013 17:10:13 UT

 Maintainer of science/meep,
 
 Please note that PR ports/184578 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/184578
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org

From: Gerald Pfeifer <gerald@pfeifer.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/184578: science/meep : fix build with gcc47
Date: Sun, 8 Dec 2013 09:16:39 +0100 (CET)

 Sorry for not catching this earlier, but does
 
   r335855 | gerald | 2013-12-07 22:36:21 +0000 (Sat, 07 Dec 2013) | 6 lines
 
   Explicitly include the GCC run time directory in LDFLAGS.  This should
   not be necessary when linking with GCC, but that's not the only way the
   link process can be invoked.
 
   PR:             182136
 
 of Mk/bsd.gcc.mk address this.  If so, this PR can be closed.
 
 (Otherwise, if there is anything to commit, please note the referenced
 PR should be 182136, that was my mistake communicating with Christoph.
 So, PR 182136 and 184578 should be referenced in any commit due to this.)
 
 Gerald
State-Changed-From-To: feedback->closed 
State-Changed-By: gerald 
State-Changed-When: Sun Dec 8 18:35:01 UTC 2013 
State-Changed-Why:  
Christoph confirmed this should be covered by my global change. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=184578 
>Unformatted:
