~ubuntu-branches/debian/sid/twpsk/sid

« back to all changes in this revision

Viewing changes to debian/patches/30-fix-underlinking.patch

  • Committer: Package Import Robot
  • Author(s): Kamal Mostafa
  • Date: 2013-02-28 13:30:31 UTC
  • Revision ID: package-import@ubuntu.com-20130228133031-ec67sh76xdgtndg4
Tags: 4.0-2
* Fix underlinking: link libpulse explicitly
  - Thanks Graham Inggs (Closes: #701901, LP: #1134242)
* Enabled build-hardening

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: fix underlinking patch
 
2
Author: Graham Inggs <graham@nerve.org.za>
 
3
BugLink: https://bugs.launchpad.net/ubuntu/+source/twclock/+bug/1134242
 
4
BugLink: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=701901
 
5
 
 
6
twpsk uses symbols from libpulse but does not link with it explicitly,
 
7
instead it relies on indirect linkage through libpulse-simple.
 
8
This causes a FTBFS in Ubuntu Raring.
 
9
 
 
10
--- a/configure.ac
 
11
+++ b/configure.ac
 
12
@@ -73,6 +73,7 @@
 
13
 
 
14
 AC_CHECK_LIB([pulse-simple], [pa_simple_new], [],
 
15
              [AC_MSG_ERROR("ERROR: pulseaudio library was not found")])
 
16
+LIBS="$LIBS -lpulse"
 
17
 #
 
18
 # Find headers and libraries for X11, Xpm and Xm
 
19
 #
 
20
--- a/configure
 
21
+++ b/configure
 
22
@@ -6407,6 +6407,8 @@
 
23
   as_fn_error "\"ERROR: pulseaudio library was not found\"" "$LINENO" 5
 
24
 fi
 
25
 
 
26
+LIBS="$LIBS -lpulse"
 
27
+
 
28
 #
 
29
 # Find headers and libraries for X11, Xpm and Xm
 
30
 #