ports/63532: math/freefem++: unbreaking on alpha.

Thierry Thomas thierry at pompo.net
Sun Feb 29 16:20:15 UTC 2004


>Number:         63532
>Category:       ports
>Synopsis:       math/freefem++: unbreaking on alpha.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 29 08:20:15 PST 2004
>Closed-Date:
>Last-Modified:
>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 at ws90bj.pompo.net:/usr/obj/usr/src/sys/WS90BJ-040102 i386


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

	The following patch (from Frédéric 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:
>Unformatted:



More information about the freebsd-ports-bugs mailing list