Package: xcfa
Version: 5.0.1-1
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu wily ubuntu-patch

Dear Maintainer,

xcfa currently FTBFS due to underlinking with ld --as-needed [1].

In Ubuntu, the attached patch was applied to achieve the following:

  * debian/patches/link-libm.patch: Link xcfa_cli against -lm to fix FTBFS with
    ld --as-needed.
  * debian/{control,rules}: Use dh-autoreconf to apply the above change.

Thanks for considering the patch.

Logan Rosen

[1] 
https://launchpadlibrarian.net/205805477/buildlog_ubuntu-wily-amd64.xcfa_5.0.1-1_BUILDING.txt.gz

-- System Information:
Debian Release: jessie/sid
  APT prefers wily-updates
  APT policy: (500, 'wily-updates'), (500, 'wily-security'), (500, 'wily'), 
(100, 'wily-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.19.0-16-generic (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
diff -Nru xcfa-5.0.1/debian/control xcfa-5.0.1/debian/control
--- xcfa-5.0.1/debian/control	2015-04-26 21:57:24.000000000 +0100
+++ xcfa-5.0.1/debian/control	2015-05-10 22:04:18.000000000 +0100
@@ -5,8 +5,8 @@
 Uploaders:
  Alessio Treglia <ales...@debian.org>
 Build-Depends:
- autotools-dev (>= 20100122.1~),
  debhelper (>= 9~),
+ dh-autoreconf,
  libasound2-dev,
  libcurl4-gnutls-dev,
  libgtk-3-dev,
diff -Nru xcfa-5.0.1/debian/patches/link-libm.patch xcfa-5.0.1/debian/patches/link-libm.patch
--- xcfa-5.0.1/debian/patches/link-libm.patch	1970-01-01 01:00:00.000000000 +0100
+++ xcfa-5.0.1/debian/patches/link-libm.patch	2015-05-10 21:32:22.000000000 +0100
@@ -0,0 +1,11 @@
+--- a/src_cli/Makefile.am
++++ b/src_cli/Makefile.am
+@@ -32,6 +32,8 @@
+ wav.c \
+ global.h
+ 
++xcfa_cli_LDADD=-lm
++
+ datadir = @datadir@
+ localedir = $(datadir)/locale
+ DEFS = -DLOCALEDIR="$(localedir)" @DEFS@
diff -Nru xcfa-5.0.1/debian/patches/series xcfa-5.0.1/debian/patches/series
--- xcfa-5.0.1/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
+++ xcfa-5.0.1/debian/patches/series	2015-05-10 21:41:14.000000000 +0100
@@ -0,0 +1 @@
+link-libm.patch
diff -Nru xcfa-5.0.1/debian/rules xcfa-5.0.1/debian/rules
--- xcfa-5.0.1/debian/rules	2015-04-26 21:47:25.000000000 +0100
+++ xcfa-5.0.1/debian/rules	2015-05-10 21:30:41.000000000 +0100
@@ -3,7 +3,7 @@
 export LDFLAGS+=-Wl,--as-needed
 
 %:
-	dh $@ --parallel --with autotools_dev
+	dh $@ --parallel --with autoreconf
 
 override_dh_auto_configure:
 	dh_auto_configure -- --enable-debug
_______________________________________________
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers

Reply via email to