Skip site navigation (1)Skip section navigation (2)

ports/139444: Fix for port math/freemat

From:Stas Timokhin <stast@bsdportal.ru>
Date:Fri, 9 Oct 2009 02:10:05 GMT
Subject:Fix for port math/freemat
Send-pr version:www-3.1

Number:139444
Category:ports
Synopsis:Fix for port math/freemat
Severity:non-critical
Priority:low
Responsible:glarkin@FreeBSD.org
State:open
Class:change-request
Arrival-Date:Fri Oct 09 02:20:04 UTC 2009
Closed-Date:
Last-Modified:Fri Oct 09 01:15:06 EDT 2009
Originator:Stas Timokhin
Release:9.0-Current

Organization:
None
 
Environment:
 
Description:
Fix for build port math/freemat with gcc.
 
How-To-Repeat:
 
Fix:
Download patch.txt
--- Makefile.orig        2009-10-08 09:25:09.000000000 +0700
+++ Makefile     2009-10-09 09:00:21.000000000 +0700
@@ -2,7 +2,7 @@
 # Date created:         Sat 26 mar 2005
 # Whom:                 Thierry Thomas <thierry@pompo.net>
 #
-# $FreeBSD: ports/math/freemat/Makefile,v 1.29 2009/09/13 00:07:49 gerald Exp $
+# $FreeBSD$
 #
 PORTNAME=               FreeMat
@@ -21,7 +21,7 @@
                         pcre.0:${PORTSDIR}/devel/pcre
 BUILD_DEPENDS=          pkg-config:${PORTSDIR}/devel/pkg-config
-BROKEN=                 does not compile
+#BROKEN=                        does not compile
 .ifdef WITH_MPI
 IGNORE=                 no MPI support at the moment
@@ -32,6 +32,7 @@
 USE_GL=                 yes
 USE_QT_VER=             4
+USE_GCC=                4.3+
 USE_GMAKE=              yes
 QT_COMPONENTS=          gui network opengl moc_build rcc_build uic_build xml svg
 GNU_CONFIGURE=          yes
--- files/patch-libs_libCore_MatIO.hpp.orig      1970-01-01 07:00:00.000000000 +0700
+++ files/patch-libs_libCore_MatIO.hpp   2009-10-08 10:47:34.000000000 +0700
@@ -0,0 +1,10 @@
+--- libs/libCore/MatIO.hpp.orig 2009-10-08 10:01:46.000000000 +0700
++++ libs/libCore/MatIO.hpp      2009-10-08 10:20:30.000000000 +0700
+@@ -4,6 +4,7 @@
+ #include "Array.hpp"
+ #include <string>
+ #include <zlib.h>
++#include <stdio.h>
+
+ using namespace std;
+
--- files/patch-libs_libFreeMat_Array.cpp.orig   1970-01-01 07:00:00.000000000 +0700
+++ files/patch-libs_libFreeMat_Array.cpp        2009-10-08 10:48:40.000000000 +0700
@@ -0,0 +1,11 @@
+--- libs/libFreeMat/Array.cpp.orig      2009-10-08 09:37:54.000000000 +0700
++++ libs/libFreeMat/Array.cpp   2009-10-08 09:38:20.000000000 +0700
+@@ -27,6 +27,8 @@
+ #include <math.h>
+ #include <stdio.h>
+ #include <set>
++#include <algorithm>
++#include <functional>
+
+ #include "FunctionDef.hpp"
+ #include "NumericArray.hpp"
--- files/patch-libs_libFreeMat_IEEEFP.cpp.orig  1970-01-01 07:00:00.000000000 +0700
+++ files/patch-libs_libFreeMat_IEEEFP.cpp       2009-10-08 10:50:15.000000000 +0700
@@ -0,0 +1,10 @@
+--- libs/libFreeMat/IEEEFP.cpp.orig     2009-10-08 09:42:00.000000000 +0700
++++ libs/libFreeMat/IEEEFP.cpp  2009-10-08 09:43:46.000000000 +0700
+@@ -17,6 +17,7 @@
+  *
+  */
+ #include "IEEEFP.hpp"
++#include <stdio.h>
+
+ static bool endianDetected = false;
+ static bool bigEndian = false;
--- files/patch-libs_libFreeMat_Malloc.cpp.orig  1970-01-01 07:00:00.000000000 +0700
+++ files/patch-libs_libFreeMat_Malloc.cpp       2009-10-08 10:51:08.000000000 +0700
@@ -0,0 +1,10 @@
+--- libs/libFreeMat/Malloc.cpp.orig     2009-10-08 09:45:59.000000000 +0700
++++ libs/libFreeMat/Malloc.cpp  2009-10-08 09:47:56.000000000 +0700
+@@ -21,6 +21,7 @@
+ #include "Exception.hpp"
+ #include <stdlib.h>
+ #include <stdio.h>
++#include <cstring>
+
+
+ void* Malloc(int count) {
--- files/patch-libs_libFreeMat_Scanner.cpp.orig 1970-01-01 07:00:00.000000000 +0700
+++ files/patch-libs_libFreeMat_Scanner.cpp      2009-10-08 10:51:47.000000000 +0700
@@ -0,0 +1,10 @@
+--- libs/libFreeMat/Scanner.cpp.orig    2009-10-08 09:51:15.000000000 +0700
++++ libs/libFreeMat/Scanner.cpp 2009-10-08 09:51:25.000000000 +0700
+@@ -4,6 +4,7 @@
+ #include <stdlib.h>
+ #include <ctype.h>
+ #include "Exception.hpp"
++#include <algorithm>
+
+ extern string fm_reserved[];
+ extern int fm_reserved_count;
--- files/patch-libs_libFreeMat_Scope.hpp.orig   1970-01-01 07:00:00.000000000 +0700
+++ files/patch-libs_libFreeMat_Scope.hpp        2009-10-08 10:49:07.000000000 +0700
@@ -0,0 +1,10 @@
+--- libs/libFreeMat/Scope.hpp.orig      2009-10-08 09:40:36.000000000 +0700
++++ libs/libFreeMat/Scope.hpp   2009-10-08 09:40:55.000000000 +0700
+@@ -25,6 +25,7 @@
+  */
+ #include <string>
+ #include <QMutex>
++#include <algorithm>
+
+ #include "Array.hpp"
+ #include "SymbolTable.hpp"
--- files/patch-libs_libFreeMat_Token.cpp.orig   1970-01-01 07:00:00.000000000 +0700
+++ files/patch-libs_libFreeMat_Token.cpp        2009-10-08 10:51:30.000000000 +0700
@@ -0,0 +1,10 @@
+--- libs/libFreeMat/Token.cpp.orig      2009-10-08 09:49:12.000000000 +0700
++++ libs/libFreeMat/Token.cpp   2009-10-08 09:50:12.000000000 +0700
+@@ -2,6 +2,7 @@
+ #include "Serialize.hpp"
+ #include <iostream>
+ #include <errno.h>
++#include <climits>
+
+ // These must appear as sequential token numbers
+ string fm_reserved[22] = {


Release-Note:
 
Audit-Trail:
Responsible Changed
From-To:freebsd-bugs->freebsd-ports-bugs
By:linimon
When:Fri Oct 9 03:26:47 UTC 2009
Why:ports PR.

Responsible Changed
From-To:freebsd-ports-bugs->glarkin
By:glarkin
When:Fri Oct 9 01:14:54 EDT 2009
Why:I'll take it.

Unformatted:
 
Submit Followup | Raw PR | Find another PR