diff options
author | maho <maho@FreeBSD.org> | 2009-02-18 15:06:18 +0800 |
---|---|---|
committer | maho <maho@FreeBSD.org> | 2009-02-18 15:06:18 +0800 |
commit | 90777a8eb1f05e939101c22f59c25aba1e193b6f (patch) | |
tree | 82931101e5bec7770febef5963235e84de724f0e /math | |
parent | 57717768770680a640858b1689d9472192e0f605 (diff) | |
download | freebsd-ports-gnome-90777a8eb1f05e939101c22f59c25aba1e193b6f.tar.gz freebsd-ports-gnome-90777a8eb1f05e939101c22f59c25aba1e193b6f.tar.zst freebsd-ports-gnome-90777a8eb1f05e939101c22f59c25aba1e193b6f.zip |
Fix build with suitesparse 3.2.
patch is obtained from
http://hg.tw-math.de/release-3-0-x/rev/712d9e045b1e
.
Diffstat (limited to 'math')
-rw-r--r-- | math/octave/files/patch-ss32 | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/math/octave/files/patch-ss32 b/math/octave/files/patch-ss32 new file mode 100644 index 000000000000..659d1b173ec3 --- /dev/null +++ b/math/octave/files/patch-ss32 @@ -0,0 +1,53 @@ +# HG changeset patch +# User Jaroslav Hajek <highegg@gmail.com> +# Date 1223800240 -7200 +# Node ID 712d9e045b1e4936708405de8be086bce580b588 +# Parent 4c023cbfab27fe07ad5c65162c815bbccc601bbb +fix for SuiteSparse 3.2 + +--- liboctave/ChangeLog Fri Oct 10 11:35:10 2008 +0200 ++++ liboctave/ChangeLog Sun Oct 12 10:30:40 2008 +0200 +@@ -1,3 +1,9 @@ 2008-10-08 John W. Eaton <jwe@octave.o ++2008-10-10 Jaroslav Hajek <highegg@gmail.com> ++ ++ * sparse-util.h (SparseCholPrint): Change char * argument to const ++ char *. ++ * sparse-util.cc (SparseCholPrint): Likewise. ++ + 2008-10-08 John W. Eaton <jwe@octave.org> + + * Sparse-op-defs.h (SPARSE_SMSM_BOOL_OPS): Duplicate code for scalar +--- liboctave/sparse-util.cc Fri Oct 10 11:35:10 2008 +0200 ++++ liboctave/sparse-util.cc Sun Oct 12 10:30:40 2008 +0200 +@@ -30,8 +30,15 @@ along with Octave; see the file COPYING. + #include "lo-error.h" + #include "sparse-util.h" + ++// FIXME this overload is here due to API change in SuiteSparse (3.1 -> 3.2) + void + SparseCholError (int status, char *file, int line, char *message) ++{ ++ SparseCholError (status, file, line, message); ++} ++ ++void ++SparseCholError (int status, const char *file, int line, const char *message) + { + (*current_liboctave_warning_handler)("warning %i, at line %i in file %s", + status, line, file); +--- liboctave/sparse-util.h Fri Oct 10 11:35:10 2008 +0200 ++++ liboctave/sparse-util.h Sun Oct 12 10:30:40 2008 +0200 +@@ -24,7 +24,11 @@ along with Octave; see the file COPYING. + #if !defined (octave_sparse_util_h) + #define octave_sparse_util_h 1 + +-extern OCTAVE_API void SparseCholError (int status, char *file, int line, char *message); ++// FIXME this overload is here due to API change in SuiteSparse (3.1 -> 3.2) ++extern OCTAVE_API void SparseCholError (int status, char *file, ++ int line, char *message); ++extern OCTAVE_API void SparseCholError (int status, const char *file, ++ int line, const char *message); + extern OCTAVE_API int SparseCholPrint (const char *fmt, ...); + + #endif + |