[libalgorithm-svm-perl] 08/08: Patch to avoid useless dependency libm identified by dpkg-shlibdeps

Carnë Draug carandraug+dev at gmail.com
Wed Apr 19 20:22:25 UTC 2017


This is an automated email from the git hooks/post-receive script.

carandraug-guest pushed a commit to branch master
in repository libalgorithm-svm-perl.

commit 1e6a9cafbc29ff6229354ae40ce837a12cd101fb
Author: Carnë Draug <carandraug+dev at gmail.com>
Date:   Wed Apr 19 21:14:07 2017 +0100

    Patch to avoid useless dependency libm identified by dpkg-shlibdeps
---
 debian/patches/do-not-link-to-libm.patch | 15 +++++++++++++++
 debian/patches/series                    |  1 +
 2 files changed, 16 insertions(+)

diff --git a/debian/patches/do-not-link-to-libm.patch b/debian/patches/do-not-link-to-libm.patch
new file mode 100644
index 0000000..1c0861c
--- /dev/null
+++ b/debian/patches/do-not-link-to-libm.patch
@@ -0,0 +1,15 @@
+Description: Do not link against libm (identified as unecessary by dpkg-shlibdeps).
+Author: Carnë Draug <carandraug+dev at gmail.com>
+Last-Update: Wed, 19 Apr 2017 21:12:02 +0100
+
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -15,7 +15,7 @@
+ 	       (ABSTRACT_FROM => 'lib/Algorithm/SVM.pm',
+ 		AUTHOR        => 'Matthew Laird <matt at brinkman.mbb.sfu.ca>') : ()),
+ 	      'OPTIMIZE'      => '-O3',  # segfaults with gcc 2.96 if lower (?)
+-	      'LIBS'          => '-lm -lsvm',
++	      'LIBS'          => '-lsvm',
+ 	      'CC'            => $CC,
+ 	      'LD'            => '$(CC)',
+ 	      'OBJECT'        => 'SVM.o bindings.o',
diff --git a/debian/patches/series b/debian/patches/series
index 311e246..53815f4 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 remove-3rd-party-libsvm.patch
 update-libsvm3.patch
+do-not-link-to-libm.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libalgorithm-svm-perl.git



More information about the Pkg-perl-cvs-commits mailing list