Package: btnx-config
Version: 0.4.9-4
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu oneiric ubuntu-patch



*** /tmp/tmp9ZXoaa
In Ubuntu, the attached patch was applied to achieve the following:

Hi! This package fails to build from source with binutils-gold
and ld --as-needed, this patch solves the problem.

Regards,

  * Fix FTBFS with ld --as-needed (LP: #831186)


Thanks for considering the patch.


-- System Information:
Debian Release: wheezy/sid
  APT prefers oneiric-updates
  APT policy: (500, 'oneiric-updates'), (500, 'oneiric')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-11-generic (SMP w/1 CPU core)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru btnx-config-0.4.9/debian/patches/fix-ftbfs-with-as-needed.patch btnx-config-0.4.9/debian/patches/fix-ftbfs-with-as-needed.patch
--- btnx-config-0.4.9/debian/patches/fix-ftbfs-with-as-needed.patch	1970-01-01 01:00:00.000000000 +0100
+++ btnx-config-0.4.9/debian/patches/fix-ftbfs-with-as-needed.patch	2011-09-15 14:41:35.000000000 +0200
@@ -0,0 +1,17 @@
+Description: Fix FTBFS with ld --as-needed
+Author: Angel Abad <angela...@ubuntu.com>
+Bug-Ubuntu: https://launchpad.net/bugs/831186
+
+--- a/src/Makefile.in
++++ b/src/Makefile.in
+@@ -244,8 +244,8 @@
+ btnx_configdir = $(pkgdatadir)
+ AM_CFLAGS = -Wall -O2 `pkg-config --cflags gtk+-2.0 libglade-2.0` -I../intl -I$(top_srcdir)/intl
+ AM_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\" -I../intl -I$(top_srcdir)/intl
+-btnx_config_LDFLAGS = `pkg-config --libs gtk+-2.0 libglade-2.0` -Wl -export-dynamic -DPREFIX=$(pkgdatadir)
+-btnx_config_LDADD = @LIBINTL@
++btnx_config_LDFLAGS = -Wl -export-dynamic -DPREFIX=$(pkgdatadir)
++btnx_config_LDADD = @LIBINTL@ `pkg-config --libs gtk+-2.0 libglade-2.0`
+ btnx_config_SOURCES = \
+ 	btnx_config.c \
+ 	widgets.c \
diff -Nru btnx-config-0.4.9/debian/patches/series btnx-config-0.4.9/debian/patches/series
--- btnx-config-0.4.9/debian/patches/series	2010-07-01 10:05:24.000000000 +0200
+++ btnx-config-0.4.9/debian/patches/series	2011-09-15 14:34:27.000000000 +0200
@@ -1 +1,2 @@
 btnx-config.udev.patch
+fix-ftbfs-with-as-needed.patch

Reply via email to