From nobody@FreeBSD.org  Mon Oct 15 11:41:56 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id E2F5B16A41A
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 15 Oct 2007 11:41:56 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id D7BDF13C465
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 15 Oct 2007 11:41:56 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l9FBfnnT048171
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 15 Oct 2007 11:41:49 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l9FBfnUl048170;
	Mon, 15 Oct 2007 11:41:49 GMT
	(envelope-from nobody)
Message-Id: <200710151141.l9FBfnUl048170@www.freebsd.org>
Date: Mon, 15 Oct 2007 11:41:49 GMT
From: Harald Servat <redcrash@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: PAPI/devel port fix for GCC 4.2
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         117204
>Category:       ports
>Synopsis:       devel/PAPI port fix for GCC 4.2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    miwi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 15 11:50:02 UTC 2007
>Closed-Date:    Sat Oct 27 14:50:36 UTC 2007
>Last-Modified:  Sat Oct 27 14:50:36 UTC 2007
>Originator:     Harald Servat
>Release:        6.2
>Organization:
>Environment:
FreeBSD BSCIT03.cepba.upc.edu 6.2-RELEASE FreeBSD 6.2-RELEASE #1: Mon Mar 12 20:40:26 CET 2007     root@BSCIT03.cepba.upc.edu:/usr/obj/usr/src/sys/laptop  i386
>Description:
I've got my port broken on AMD64/FreeBSD 7 machines (building farms, I think).
The problem is related with the name of the fortran compiler (gfortran42), which is not found using the configure script. 
As a suggestion in the ports@freebsd.org, I've added a new line into the Makefile port in order to solve this.

I'm attaching the fix in diff -U format.

Thank you!
>How-To-Repeat:

>Fix:
--- Makefile    Tue Oct  2 09:50:38 2007
+++ Makefile.new        Mon Oct 15 13:36:29 2007
@@ -37,11 +37,7 @@
 ONLY_FOR_ARCHS_REASON= HWPMC kernel module is only available for I386 and \
   AMD64 machines
 
-.if ${OSVERSION} >= 700042
-.if ${ARCH} == "amd64"
-BROKEN=                Does not compile with GCC 4.2
-.endif
-.endif
+CONFIGURE_ENV=  F77="${F77}"
 
 .if defined(WITHOUT_CTESTS)
 PLIST_SUB+=    CTESTS="@comment "


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->miwi 
Responsible-Changed-By: miwi 
Responsible-Changed-When: Mon Oct 15 12:24:01 UTC 2007 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=117204 
State-Changed-From-To: open->feedback 
State-Changed-By: miwi 
State-Changed-When: Wed Oct 17 09:33:54 UTC 2007 
State-Changed-Why:  
Build Failed, 
http://head.miwibox.org/tb/index.php?action=describe_port&id=2282 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/117204: commit references a PR
Date: Sat, 27 Oct 2007 14:49:57 +0000 (UTC)

 miwi        2007-10-27 14:49:53 UTC
 
   FreeBSD ports repository
 
   Modified files:
     devel/papi           Makefile distinfo pkg-plist 
   Log:
   - Fix build with gcc 4.2
   
   PR:             117204
   Submitted by:   "Harald Servat" <redcrash@gmail.com>
   Thanks to:      nox@
   
   Revision  Changes    Path
   1.7       +4 -8      ports/devel/papi/Makefile
   1.3       +3 -3      ports/devel/papi/distinfo
   1.2       +1 -1      ports/devel/papi/pkg-plist
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: feedback->closed 
State-Changed-By: miwi 
State-Changed-When: Sat Oct 27 14:50:35 UTC 2007 
State-Changed-Why:  
Committed. Thanks! 

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