File: remove-bundled-party-libsvm.patch

package info (click to toggle)
psortb 3.0.6%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 121,076 kB
  • sloc: perl: 3,652; ansic: 700; cpp: 338; sh: 27; makefile: 23
file content (49 lines) | stat: -rw-r--r-- 1,359 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Description: Remove source from bundled libsvm and adjust build system.
 .
 Change by Steve Langasek enables build with -Wl, --as-needed
Author: Carnë Draug <carandraug+dev@gmail.com>
        Steve Langasek <steve.langasek@ubuntu.com>
Last-Update: 2018-04-09
Bug-Debian: https://bugs.debian.org/895344

--- a/bio-tools-psort-svmloc/MANIFEST
+++ b/bio-tools-psort-svmloc/MANIFEST
@@ -8,5 +8,4 @@ bindings.h
 lib/Bio/Tools/PSort/SVMLoc.pm
 sample.model
 fre_patterns.txt
-libsvm.h
 typemap
--- a/bio-tools-psort-svmloc/Makefile.PL
+++ b/bio-tools-psort-svmloc/Makefile.PL
@@ -9,7 +9,7 @@ $CC = 'g++';
 
 @libs = qw/svmloc/;
 %paths = ();
-$libpath = '-lm -lstdc++';
+$libpath = '-lm -lsvm -lstdc++';
 
 $defaults_file = '../psortb.defaults';
 if( -f $defaults_file ) {
@@ -24,7 +24,7 @@ if( -f $defaults_file ) {
 if($additional_libpath) {
     $libpath .= ' ' . $additional_libpath . ' ' . join(' ', map { '-l' . $_ } @libs);
 } else {
-    $libpath .= Bio::Tools::PSort::Install->makeLibPath(@libs);
+    $libpath = Bio::Tools::PSort::Install->makeLibPath(@libs) . " " . $libpath;
 }
 
 if($^O eq 'cygwin') {
--- a/bio-tools-psort-svmloc/bindings.h
+++ b/bio-tools-psort-svmloc/bindings.h
@@ -9,7 +9,9 @@
 #include <set>
 #include <assert.h>
 
-#include "libsvm.h"
+#include <stdlib.h>
+#include <string.h>
+#include <libsvm/svm.h>
 
 using namespace std;