Source: libbs2b
Version: 3.1.0+dfsg-2
Severity: wishlist
Tags: patch
User: debian-...@lists.debian.org
Usertags: port-x32 ftbfs-libtool

The libbs2b source package is getting this build failure on the unofficial
Debian x32 port:

<URL:http://buildd.debian-ports.org/status/fetch.php?pkg=libbs2b&arch=x32&ver=3.1.0%2Bdfsg-2&stamp=1361155075>:
...
/bin/bash ../libtool --tag=CXX   --mode=link g++  -g -O2 -lm -version-info 
0:0:0  -o libbs2b.la -rpath /usr/lib bs2b.lo bs2bclass.lo  
../libtool: line 4467: test: : integer expression expected
../libtool: line 4467: test: : integer expression expected
creating reloadable object files...
../libtool: line 4502: test: : integer expression expected
creating a temporary reloadable object file: .libs/libbs2b.la-2.o
/usr/bin/ld -m elf_i386 -r -o .libs/libbs2b.la-1.o .libs/bs2b.o 
/usr/bin/ld: Relocatable linking with relocations from format elf32-x86-64 
(.libs/bs2b.o) to format elf32-i386 (.libs/libbs2b.la-1.o) is not supported
make[2]: *** [libbs2b.la] Error 1
make[2]: Leaving directory 
`/build/buildd-libbs2b_3.1.0+dfsg-2-x32-b5Pkgu/libbs2b-3.1.0+dfsg/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 
`/build/buildd-libbs2b_3.1.0+dfsg-2-x32-b5Pkgu/libbs2b-3.1.0+dfsg'
dh_auto_build: make -j1 returned exit code 2
make: *** [build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2

The fix is to update libtool using the current sid package (>= 2.4.2-1.2).
The attached debdiff does this at build time using dh-autoreconf.
-- 
Daniel Schepler
diff -Nru libbs2b-3.1.0+dfsg/debian/changelog libbs2b-3.1.0+dfsg/debian/changelog
--- libbs2b-3.1.0+dfsg/debian/changelog	2011-07-25 10:43:43.000000000 -0700
+++ libbs2b-3.1.0+dfsg/debian/changelog	2013-03-02 08:38:00.000000000 -0800
@@ -1,3 +1,10 @@
+libbs2b (3.1.0+dfsg-2+libtool) unreleased; urgency=low
+
+  * Update libtool at build time using dh-autoreconf, in order to fix a
+    build failure on x32.
+
+ -- Daniel Schepler <schep...@debian.org>  Sat, 02 Mar 2013 08:37:54 -0800
+
 libbs2b (3.1.0+dfsg-2) unstable; urgency=low
 
   * Update debian/rules so get-orig-source deletes subdirectories of win32/
diff -Nru libbs2b-3.1.0+dfsg/debian/control libbs2b-3.1.0+dfsg/debian/control
--- libbs2b-3.1.0+dfsg/debian/control	2011-07-25 09:03:24.000000000 -0700
+++ libbs2b-3.1.0+dfsg/debian/control	2013-03-02 08:36:46.000000000 -0800
@@ -3,7 +3,7 @@
 Section: libs
 Maintainer: Andrew Gainer <gainer.and...@gmail.com>
 Standards-Version: 3.9.2
-Build-Depends: debhelper (>= 8.1.3), libsndfile1-dev
+Build-Depends: debhelper (>= 8.1.3), libsndfile1-dev, dh-autoreconf
 Homepage: http://bs2b.sourceforge.net/
 Vcs-Git: git://git.debian.org/collab-maint/libbs2b.git
 Vcs-Browser: http://git.debian.org/?p=collab-maint/libbs2b.git;a=summary
diff -Nru libbs2b-3.1.0+dfsg/debian/rules libbs2b-3.1.0+dfsg/debian/rules
--- libbs2b-3.1.0+dfsg/debian/rules	2011-07-25 09:06:09.000000000 -0700
+++ libbs2b-3.1.0+dfsg/debian/rules	2013-03-02 08:37:00.000000000 -0800
@@ -3,7 +3,7 @@
 LDFLAGS += -Wl,--as-needed
 
 %:
-	dh $@
+	dh $@ --with autoreconf
 
 
 PROJECT="bs2b/libbs2b"

Reply via email to