From thierry@pompo.net  Sun Feb 29 08:17:57 2004
Return-Path: <thierry@pompo.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 61EA616A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 29 Feb 2004 08:17:57 -0800 (PST)
Received: from ws90bj.pompo.net (graf.pompo.net [81.56.186.139])
	by mx1.FreeBSD.org (Postfix) with ESMTP id BF0A543D2F
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 29 Feb 2004 08:17:54 -0800 (PST)
	(envelope-from thierry@pompo.net)
Received: by ws90bj.pompo.net (Postfix, from userid 1001)
	id 559B322B9B4; Sun, 29 Feb 2004 17:17:49 +0100 (CET)
Message-Id: <20040229161749.559B322B9B4@ws90bj.pompo.net>
Date: Sun, 29 Feb 2004 17:17:49 +0100 (CET)
From: Thierry Thomas <thierry@pompo.net>
Reply-To: Thierry Thomas <thierry@pompo.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: math/freefem++: unbreaking on alpha.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         63532
>Category:       ports
>Synopsis:       math/freefem++: unbreaking on alpha.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 29 08:20:15 PST 2004
>Closed-Date:    Sun Feb 29 09:03:25 PST 2004
>Last-Modified:  Sun Feb 29 09:03:25 PST 2004
>Originator:     Thierry Thomas
>Release:        FreeBSD 5.2.1-RELEASE i386
>Organization:
Kabbale Eros
>Environment:
System: FreeBSD ws90bj.pompo.net 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #0: Thu Feb 26 22:14:29 CET 2004 thierry@ws90bj.pompo.net:/usr/obj/usr/src/sys/WS90BJ-040102 i386


	
>Description:
	FreeFem++ is marked broken on Alpha.

	The following patch (from Frdric Hecht) should fix it, because
	on Alpha sizeof( KN<Complex>) > 24.

	Remark: only tested on i386, might break further...

>How-To-Repeat:
	N/A.

>Fix:
	Please apply the following patch:
	(Note: patch-src::AnyType.hpp is a new file)

--- freefem++.diff begins here ---
diff -urN math/freefem++.orig/Makefile math/freefem++/Makefile
--- math/freefem++.orig/Makefile	Thu Feb 26 19:58:30 2004
+++ math/freefem++/Makefile	Sun Feb 29 16:14:24 2004
@@ -30,10 +30,6 @@
 
 .include <bsd.port.pre.mk>
 
-.if ${ARCH} == "alpha" && ${OSVERSION} >= 502102
-BROKEN=		"Does not compile on alpha 5.x"
-.endif
-
 .if ${OSVERSION} < 501103
 USE_GCC=	3.2
 .endif
diff -urN math/freefem++.orig/files/patch-src::AnyType.hpp math/freefem++/files/patch-src::AnyType.hpp
--- math/freefem++.orig/files/patch-src::AnyType.hpp	Thu Jan  1 01:00:00 1970
+++ math/freefem++/files/patch-src::AnyType.hpp	Sun Feb 29 16:13:53 2004
@@ -0,0 +1,12 @@
+--- ./src/AnyType.hpp.orig	Sat May 31 11:53:05 2003
++++ ./src/AnyType.hpp	Sun Feb 29 16:13:27 2004
+@@ -5,7 +5,8 @@
+ class basicForEachType;
+ typedef const  basicForEachType * aType;
+ 
+-typedef  unsigned char  AnyData[24]; 
++//typedef  unsigned char  AnyData[24]; 
++typedef  unsigned char  AnyData[2*(sizeof(void*)+2*sizeof(double))];
+ 
+ extern map<const string,basicForEachType *> map_type;
+ 
--- freefem++.diff ends here ---

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: krion 
State-Changed-When: Sun Feb 29 09:03:18 PST 2004 
State-Changed-Why:  
Committed, thanks! 

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