Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Aug 2005 18:14:46 +0200 (CEST)
From:      Tobias Roth <ports@fsck.ch>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        gnome@freebsd.org
Subject:   [PATCH] www/firefox: fix preference saving problem (remove fast-math)
Message-ID:  <200508031614.j73GEkcG057662@secure.socket.ch>

next in thread | raw e-mail | index | archive | help

>Submitter-Id:	current-users
>Originator:	Tobias Roth
>Organization:	
>Confidential:	no 
>Synopsis:	[PATCH] www/firefox: fix preference saving problem (remove fast-math)
>Severity:	non-critical
>Priority:	low
>Category:	ports 
>Class:		sw-bug
>Release:	FreeBSD 6.0-BETA1 i386
>Environment:
System: FreeBSD reactor.fsck.ch 6.0-BETA1 FreeBSD 6.0-BETA1 #0: Sat Jul 30 10:06:53 CEST 2005
>Description:
Firefox breaks when compiled with -ffast-math. Symptoms include the
impossibility of saving preferences and sometimes non-functioning of
preference menu buttons.

The attached patch removes -ffast-math completely from CFLAGS.
Alternatively, instead of tampering with CFLAGS, the user could be
only warned when he/she attempts to compile the port with the bad
cflag.

Port maintainer (gnome@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:

--- firefox-1.0.6_1,1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/www/firefox/Makefile,v
retrieving revision 1.127
diff -u -u -r1.127 Makefile
--- Makefile	30 Jul 2005 04:36:55 -0000	1.127
+++ Makefile	3 Aug 2005 16:01:37 -0000
@@ -86,6 +86,9 @@
 CONFIGURE_ENV+=		WITH_OPTIMIZE=-O
 .endif # defined(WITH_OPTIMIZED_CFLAGS)
 
+# -ffast-math breaks preference-saving and more
+CFLAGS:=  ${CFLAGS:N-ffast-math}
+
 .if defined(WITH_LOGGING)
 CONFIGURE_ENV+=	WITH_LOGGING=yes
 .endif # defined(WITH_LOGGING)
--- firefox-1.0.6_1,1.patch ends here ---




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200508031614.j73GEkcG057662>