summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-chemistry/ball/files/ball-1.4.1-libsvm.patch')
-rw-r--r--sci-chemistry/ball/files/ball-1.4.1-libsvm.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/sci-chemistry/ball/files/ball-1.4.1-libsvm.patch b/sci-chemistry/ball/files/ball-1.4.1-libsvm.patch
new file mode 100644
index 000000000000..c85506d72733
--- /dev/null
+++ b/sci-chemistry/ball/files/ball-1.4.1-libsvm.patch
@@ -0,0 +1,24 @@
+From 60a5f677587046b3e2077872c21b005bad549b85 Mon Sep 17 00:00:00 2001
+Message-Id: <60a5f677587046b3e2077872c21b005bad549b85.1332678065.git.jlec@gentoo.org>
+From: Justin Lecher <jlec@gentoo.org>
+Date: Sun, 25 Mar 2012 14:15:16 +0200
+Subject: [PATCH 1/2] Correct deprecated usage of svm_destroy_model to
+ svm_free_and_destroy_model
+
+---
+ source/QSAR/libsvmModel.C | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/source/QSAR/libsvmModel.C b/source/QSAR/libsvmModel.C
+index 58ce4dc..1f24e15 100644
+--- a/source/QSAR/libsvmModel.C
++++ b/source/QSAR/libsvmModel.C
+@@ -81,7 +81,7 @@ void LibsvmModel::train()
+
+ //free(prob);
+ //free(prob->y); free(prob->x);
+- svm_destroy_model((::svm_model*)svm_train_result_);
++ svm_free_and_destroy_model((::svm_model**)svm_train_result_);
+ }
+ }
+