[SCM] libsoxr/master: Add example_linking.patch.

bdrung at users.alioth.debian.org bdrung at users.alioth.debian.org
Mon Mar 18 14:05:40 UTC 2013


The following commit has been merged in the master branch:
commit 91bc7bff2a1df77ce25c6bcfe858a74eb1e60f86
Author: Benjamin Drung <bdrung at debian.org>
Date:   Mon Mar 18 15:04:51 2013 +0100

    Add example_linking.patch.
    
    Link examples with -lm, as some examples use functions like sin(). Fixes
    autopkgtest failure.
    
    Thanks: Martin Pitt <martin.pitt at ubuntu.com>

diff --git a/debian/patches/example_linking.patch b/debian/patches/example_linking.patch
new file mode 100644
index 0000000..290e8c2
--- /dev/null
+++ b/debian/patches/example_linking.patch
@@ -0,0 +1,14 @@
+Description: Link examples with -lm, as some examples use functions like sin().
+Author: Martin Pitt <martin.pitt at ubuntu.com>
+
+--- a/inst-check-soxr
++++ b/inst-check-soxr
+@@ -29,7 +29,7 @@
+   for f in ?$2-*.[cC]; do
+     cc=cc; echo $f | grep -q C$ && cc=c++
+     out=$tmp/`echo $f | sed "s/.[cC]$//"`
+-    cmd="$cc $cflags -o $out $f $libs"
++    cmd="$cc $cflags -o $out $f $libs -lm"
+     echo $cmd; $cmd
+   done
+ }
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..4bbf991
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+example_linking.patch

-- 
libsoxr packaging



More information about the pkg-multimedia-commits mailing list