Revision
102369
Author
hum@macports.org
Date
2013-02-01 04:37:45 -0800 (Fri, 01 Feb 2013)

Log Message

libsvm: add patch-svm.cpp.diff to fix model_ptr->sv_indices initialization issue; see #37862. Thanks Andre!

Modified Paths

Added Paths

Diff

Modified: trunk/dports/math/libsvm/Portfile (102368 => 102369)


--- trunk/dports/math/libsvm/Portfile	2013-02-01 07:39:03 UTC (rev 102368)
+++ trunk/dports/math/libsvm/Portfile	2013-02-01 12:37:45 UTC (rev 102369)
@@ -6,6 +6,7 @@
 name                libsvm
 epoch               1
 version             3.16
+revision            1
 categories          math
 maintainers         hum openmaintainer
 license             BSD
@@ -24,7 +25,8 @@
 checksums           rmd160  e80a12ae43ecb619362498b75d8cb8089d72bfc9 \
                     sha256  e04dae319f0622a0f7c4500bb593879f3444cd68b4fc5bd6dff1f2fda9f0db97
 
-patchfiles          patch-Makefile.diff
+patchfiles          patch-Makefile.diff \
+                    patch-svm.cpp.diff
 
 use_configure       no
 

Added: trunk/dports/math/libsvm/files/patch-svm.cpp.diff (0 => 102369)


--- trunk/dports/math/libsvm/files/patch-svm.cpp.diff	                        (rev 0)
+++ trunk/dports/math/libsvm/files/patch-svm.cpp.diff	2013-02-01 12:37:45 UTC (rev 102369)
@@ -0,0 +1,10 @@
+--- svm.cpp.orig	2013-01-31 12:03:51.000000000 +0100
++++ svm.cpp	2013-01-31 11:58:02.000000000 +0100
+@@ -2747,6 +2747,7 @@
+ 	model->probB = NULL;
+ 	model->label = NULL;
+ 	model->nSV = NULL;
++	model->sv_indices = NULL;
+ 
+ 	char cmd[81];
+ 	while(1)