From riggs@rrr.de  Tue Mar 22 10:17:45 2005
Return-Path: <riggs@rrr.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5F7EC16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 22 Mar 2005 10:17:45 +0000 (GMT)
Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9])
	by mx1.FreeBSD.org (Postfix) with ESMTP id DFD8843D53
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 22 Mar 2005 10:17:44 +0000 (GMT)
	(envelope-from riggs@rrr.de)
Received: from mail.m-online.net (svr20.m-online.net [192.168.3.148])
	by mail-out.m-online.net (Postfix) with ESMTP id AAE556BD4
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 22 Mar 2005 11:17:43 +0100 (CET)
Received: from marvin.riggiland.au (ppp-62-245-162-71.mnet-online.de [62.245.162.71])
	by mail.m-online.net (Postfix) with ESMTP id 5FA1B60D8C
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 22 Mar 2005 11:17:43 +0100 (CET)
Received: from marvin.riggiland.au (localhost [127.0.0.1])
	by marvin.riggiland.au (8.13.1/8.13.1) with ESMTP id j2MAHgQV008170
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 22 Mar 2005 11:17:42 +0100 (CET)
	(envelope-from riggs@marvin.riggiland.au)
Received: (from riggs@localhost)
	by marvin.riggiland.au (8.13.1/8.13.1/Submit) id j2MAHg9s008169;
	Tue, 22 Mar 2005 11:17:42 +0100 (CET)
	(envelope-from riggs)
Message-Id: <200503221017.j2MAHg9s008169@marvin.riggiland.au>
Date: Tue, 22 Mar 2005 11:17:42 +0100 (CET)
From: "Thomas E. Zander" <riggs@rrr.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] mplayer with optimized cflags on 5.3
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         79119
>Category:       ports
>Synopsis:       [PATCH] mplayer with optimized cflags on 5.3
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 22 10:20:03 GMT 2005
>Closed-Date:    Sat May 21 17:55:46 GMT 2005
>Last-Modified:  Sat May 21 17:55:46 GMT 2005
>Originator:     Thomas E. Zander
>Release:        FreeBSD 5.3-RELEASE-p5 i386
>Organization:
>Environment:
System: FreeBSD marvin.riggiland.au 5.3-RELEASE-p5 FreeBSD 5.3-RELEASE-p5 #1: Mon Jan 17 12:02:12 CET 2005 root@marvin.riggiland.au:/usr/obj/usr/src/sys/MARVIN i386
>Description:
On FreeBSD-5.3 systems before importing of lrintf into math.h mplayer
can't be linked if WITH_OPTIMIZED_CFLAGS is defined.
>How-To-Repeat:
>Fix:
Explicitly omit -ffast-math during configure stage. Patch below:

diff -ruN mplayer-old/files/patch-ad mplayer/files/patch-ad
--- mplayer-old/files/patch-ad	Tue Mar 15 08:20:53 2005
+++ mplayer/files/patch-ad	Tue Mar 22 10:51:40 2005
@@ -1,5 +1,17 @@
 --- configure.orig	Thu Dec 23 16:36:00 2004
-+++ configure	Mon Mar 14 21:58:48 2005
++++ configure	Tue Mar 22 10:50:03 2005
+@@ -29,9 +29,9 @@
+   echo >> "$TMPLOG"
+   cat "$TMPC" >> "$TMPLOG"
+   echo >> "$TMPLOG"
+-  echo "$_cc $CFLAGS $_inc_extra $_ld_static $_ld_extra $TMPC -o $TMPO $@" >> "$TMPLOG"
++  echo "$_cc $CFLAGS -fno-fast-math $_inc_extra $_ld_static $_ld_extra $TMPC -o $TMPO $@" >> "$TMPLOG"
+   rm -f "$TMPO"
+-  ( $_cc $CFLAGS $_inc_extra $_ld_static $_ld_extra "$TMPC" -o "$TMPO" "$@" ) >> "$TMPLOG" 2>&1
++  ( $_cc $CFLAGS -fno-fast-math $_inc_extra $_ld_static $_ld_extra "$TMPC" -o "$TMPO" "$@" ) >> "$TMPLOG" 2>&1
+   TMP="$?"
+   echo >> "$TMPLOG"
+   echo "ldd $TMPO" >> "$TMPLOG"
 @@ -359,7 +359,7 @@
  
  
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: vs 
State-Changed-When: Mon Apr 11 20:24:00 GMT 2005 
State-Changed-Why:  
Committed,thanks! We'll keep the PR to collect any fallout. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=79119 
State-Changed-From-To: patched->closed 
State-Changed-By: pav 
State-Changed-When: Sat May 21 17:55:35 GMT 2005 
State-Changed-Why:  
I guess it worked. 

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