From nobody@FreeBSD.org  Sat Sep 24 12:08:26 2011
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 8D680106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 24 Sep 2011 12:08:26 +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 7DA038FC12
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 24 Sep 2011 12:08:26 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p8OC8QnS051319
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 24 Sep 2011 12:08:26 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p8OC8QQL051318;
	Sat, 24 Sep 2011 12:08:26 GMT
	(envelope-from nobody)
Message-Id: <201109241208.p8OC8QQL051318@red.freebsd.org>
Date: Sat, 24 Sep 2011 12:08:26 GMT
From: Eijiro Shibusawa <phd_kimberlite@yahoo.co.jp>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [PATCH] math/gotoblas cannot build with gcc46
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         160973
>Category:       ports
>Synopsis:       [PATCH] math/gotoblas cannot build with gcc46
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    maho
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Sep 24 12:10:03 UTC 2011
>Closed-Date:    Tue Oct 04 01:57:42 UTC 2011
>Last-Modified:  Tue Oct 04 01:57:42 UTC 2011
>Originator:     Eijiro Shibusawa
>Release:        FreeBSD 8.2-RELEASE amd64
>Organization:
>Environment:
FreeBSD myhost.jp 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011     root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
The build error occurs as a result of wrong configuration, Makefile.conf and Makefile_kernel.conf, which are created by a perl script "f_check".
The attached patch fixes the script so that it does not generate empty linker flag "-l".

>How-To-Repeat:
Please refer http://pointyhat.freebsd.org/errorlogs/amd64-errorlogs/e.8.20110919075211/gotoblas-2.1.13_2.log .
>Fix:


Patch attached with submission follows:

diff -uNr /usr/ports/math/gotoblas/./files/patch-f_check ./gotoblas/./files/patch-f_check
--- /usr/ports/math/gotoblas/./files/patch-f_check	1970-01-01 09:00:00.000000000 +0900
+++ ./gotoblas/./files/patch-f_check	2011-09-24 19:57:27.000000000 +0900
@@ -0,0 +1,10 @@
+--- f_check.orig	2011-09-24 19:54:38.000000000 +0900
++++ f_check	2011-09-24 19:56:32.000000000 +0900
+@@ -274,6 +274,7 @@
+ 	    && ($flags !~ /kernel32/)
+ 	    && ($flags !~ /advapi32/)
+ 	    && ($flags !~ /shell32/)
++	    && (!($flags eq '-l'))
+ 	    ) {
+ 	    $linker_l .= $flags . " ";
+ 	}


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->maho 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sat Sep 24 12:10:26 UTC 2011 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/160973: commit references a PR
Date: Wed, 28 Sep 2011 06:21:33 +0000 (UTC)

 maho        2011-09-28 06:21:19 UTC
 
   FreeBSD ports repository
 
   Modified files:
     math/gotoblas        Makefile 
     math/gotoblas/files  patch-Makefile.system 
   Added files:
     math/gotoblas/files  patch-cpuid_sparc.c patch-f_check 
                          pkg-message.in 
   Log:
   Build fix with gcc46 [1] and other small improvements [2].
   
   PR:             160973
   Submitted by:   bf [1, 2], Eijiro Shibusawa <phd_kimberlite@yahoo.co.jp> [1]
   
   Revision  Changes    Path
   1.26      +97 -86    ports/math/gotoblas/Makefile
   1.3       +28 -4     ports/math/gotoblas/files/patch-Makefile.system
   1.1       +10 -0     ports/math/gotoblas/files/patch-cpuid_sparc.c (new)
   1.1       +20 -0     ports/math/gotoblas/files/patch-f_check (new)
   1.1       +7 -0      ports/math/gotoblas/files/pkg-message.in (new)
 _______________________________________________
 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: open->closed 
State-Changed-By: maho 
State-Changed-When: Tue Oct 4 01:57:31 UTC 2011 
State-Changed-Why:  
committed, thanks! 

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