From nobody@FreeBSD.org  Fri Feb  2 10:50:31 2007
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 0C60016A403
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  2 Feb 2007 10:50:31 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id EE5E113C467
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  2 Feb 2007 10:50:30 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l12AoUVI018062
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 2 Feb 2007 10:50:30 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l12AoUP8018061;
	Fri, 2 Feb 2007 10:50:30 GMT
	(envelope-from nobody)
Message-Id: <200702021050.l12AoUP8018061@www.freebsd.org>
Date: Fri, 2 Feb 2007 10:50:30 GMT
From: Rene Ladan<r.c.ladan@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [astro/boinc-setiathome-enhanced] : use libtool & tweak compiler flags
X-Send-Pr-Version: www-3.0

>Number:         108683
>Category:       ports
>Synopsis:       [astro/boinc-setiathome-enhanced] : use libtool & tweak compiler flags
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pav
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 02 11:00:28 GMT 2007
>Closed-Date:    Mon Feb 05 01:17:03 GMT 2007
>Last-Modified:  Mon Feb  5 01:20:16 GMT 2007
>Originator:     Rene Ladan
>Release:        7.0 CURRENT i386
>Organization:
>Environment:
FreeBSD 7.0 CURRENT i386 2007/01/30
>Description:
per krismail, add a USE_AUTOTOOLS=libtool:15 to the Makefile to fix building on amd64.

Also in the Makefile, decouple the logic to use mfpmath={i387|sse} from the -mARCH logic.  This prevents passing " ... -mfpmath=sse ... -mfpmath=387 ... " to the compiler.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruN /usr/ports/astro/boinc-setiathome-enhanced/Makefile ./Makefile
--- /usr/ports/astro/boinc-setiathome-enhanced/Makefile	Wed Dec 20 21:04:19 2006
+++ ./Makefile	Fri Feb  2 11:37:09 2007
@@ -6,6 +6,7 @@
 
 PORTNAME=	boinc-setiathome-enhanced
 PORTVERSION=	5.13
+PORTREVISION=	1
 CATEGORIES=	astro
 MASTER_SITES=	http://home.tiscali.nl/rladan/distfiles/
 
@@ -18,20 +19,27 @@
 LIB_DEPENDS=	fftw3f:${PORTSDIR}/math/fftw3-float
 RUN_DEPENDS=	boinc_client:${PORTSDIR}/net/boinc-client
 
+USE_AUTOTOOLS=	libtool:15
+
 # The compiler flags below are copied from m4/optimizations.m4,
 # leaving out the -march flag which is set by /usr/share/mk/bsd.cpu.mk
 .if ${MACHINE_CPU:Msse3}
-CFLAGS+=	-msse3 -mfpmath=sse
+CFLAGS+=	-msse3
 .elif ${MACHINE_CPU:Msse2}
-CFLAGS+=	-msse2 -mfpmath=sse
+CFLAGS+=	-msse2
 .elif ${MACHINE_CPU:Msse}
-CFLAGS+=	-msse -mfpmath=sse
+CFLAGS+=	-msse
 .endif
 .if ${MACHINE_CPU:Mmmx}
-CFLAGS+=	-mmmx -mfpmath=387
+CFLAGS+=	-mmmx
 .endif
 .ifdef ${MACHINE_CPU:M3dnow}
-CFLAGS+=	-m3dnow -mfpmath=387
+CFLAGS+=	-m3dnow
+.endif
+.if ${MACHINE_CPU:Msse3} || ${MACHINE_CPU:Msse2} || ${MACHINE_CPU:Msse}
+CFLAGS+=	-mfpmath=sse
+.else
+CFLAGS+=	-mfpmath=387
 .endif
 # From http://www,lb.shuttle.de/apastron/boincDown.shtml :
 # what about other 64 bit archs (especially S/390, see gcc.info.gz) ?

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->pav 
Responsible-Changed-By: pav 
Responsible-Changed-When: Fri Feb 2 15:43:33 UTC 2007 
Responsible-Changed-Why:  
Take 

http://www.freebsd.org/cgi/query-pr.cgi?pr=108683 
State-Changed-From-To: open->feedback 
State-Changed-By: pav 
State-Changed-When: Sun Feb 4 21:06:33 UTC 2007 
State-Changed-Why:  
I just checked the latest log from pointyhat, and this builds fine as is wrt 
objformat changes. Can you prove me opposite? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=108683 
State-Changed-From-To: feedback->closed 
State-Changed-By: pav 
State-Changed-When: Mon Feb 5 01:15:25 UTC 2007 
State-Changed-Why:  
CFLAGS change committed. The libtool change is bogus. 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/108683: commit references a PR
Date: Mon,  5 Feb 2007 01:16:50 +0000 (UTC)

 pav         2007-02-05 01:16:39 UTC
 
   FreeBSD ports repository
 
   Modified files:
     astro/boinc-setiathome-enhanced Makefile 
   Log:
   Decouple the logic to use mfpmath={i387|sse} from the -mARCH logic.  This
   prevents passing " ... -mfpmath=sse ... -mfpmath=387 ... " to the compiler.
   
   PR:             ports/108683
   Submitted by:   Rene Ladan <r.c.ladan@gmail.com> (maintainer)
   
   Revision  Changes    Path
   1.7       +10 -5     ports/astro/boinc-setiathome-enhanced/Makefile
 _______________________________________________
 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"
 
>Unformatted:
