Source: hocr
Version: 0.10.17-1
Severity: wishlist
Tags: patch
User: debian-...@lists.debian.org
Usertags: port-x32 ftbfs-libtool

The hocr source package is getting this build failure on x32:

<URL:http://buildd.debian-ports.org/status/fetch.php?pkg=hocr&arch=x32&ver=0.10.17-1&stamp=1361154449>:
...
/bin/bash ../libtool --tag=CC   --mode=link x86_64-linux-gnux32-gcc  -Wall -g 
-O2 -version-info 0:0:0  -o libhocr.la -rpath /usr/lib hocr.lo ho_pixbuf.lo 
ho_array.lo ho_array_hist.lo ho_array_stat.lo ho_bitmap.lo ho_bitmap_hist.lo 
ho_objmap.lo ho_dimentions.lo ho_segment.lo ho_font.lo ho_recognize.lo 
ho_recognize_nikud.lo ho_recognize_font_1.lo ho_recognize_font_2.lo 
ho_recognize_font_3.lo ho_recognize_font_4.lo ho_recognize_font_5.lo 
ho_recognize_font_6.lo ho_string.lo ho_linguistics.lo ho_layout.lo  -ltiff 
-lfftw3 -lm   
../libtool: line 4461: test: : integer expression expected
../libtool: line 4461: test: : integer expression expected
creating reloadable object files...
../libtool: line 4496: test: : integer expression expected
../libtool: line 4496: test: : integer expression expected
../libtool: line 4496: test: : integer expression expected
../libtool: line 4496: test: : integer expression expected
../libtool: line 4496: test: : integer expression expected
../libtool: line 4496: test: : integer expression expected
../libtool: line 4496: test: : integer expression expected
../libtool: line 4496: test: : integer expression expected
../libtool: line 4496: test: : integer expression expected
../libtool: line 4496: test: : integer expression expected
../libtool: line 4496: test: : integer expression expected
../libtool: line 4496: test: : integer expression expected
../libtool: line 4496: test: : integer expression expected
../libtool: line 4496: test: : integer expression expected
../libtool: line 4496: test: : integer expression expected
../libtool: line 4496: test: : integer expression expected
../libtool: line 4496: test: : integer expression expected
../libtool: line 4496: test: : integer expression expected
../libtool: line 4496: test: : integer expression expected
../libtool: line 4496: test: : integer expression expected
../libtool: line 4496: test: : integer expression expected
creating a temporary reloadable object file: .libs/libhocr.la-22.o
/usr/bin/ld -m elf_i386 -r -o .libs/libhocr.la-1.o .libs/hocr.o 
/usr/bin/ld: Relocatable linking with relocations from format elf32-x86-64 
(.libs/hocr.o) to format elf32-i386 (.libs/libhocr.la-1.o) is not supported
make[2]: *** [libhocr.la] Error 1
make[2]: Leaving directory 
`/build/buildd-hocr_0.10.17-1-x32-CxFd82/hocr-0.10.17/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 
`/build/buildd-hocr_0.10.17-1-x32-CxFd82/hocr-0.10.17'
make: *** [build-stamp] 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 hocr-0.10.17/debian/changelog hocr-0.10.17/debian/changelog
--- hocr-0.10.17/debian/changelog	2011-07-26 14:28:34.000000000 -0700
+++ hocr-0.10.17/debian/changelog	2013-03-02 02:15:58.000000000 -0800
@@ -1,3 +1,10 @@
+hocr (0.10.17-1+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 02:15:50 -0800
+
 hocr (0.10.17-1) unstable; urgency=low
 
   * The DebConf11 upload
diff -Nru hocr-0.10.17/debian/control hocr-0.10.17/debian/control
--- hocr-0.10.17/debian/control	2011-07-26 03:53:48.000000000 -0700
+++ hocr-0.10.17/debian/control	2013-03-02 02:14:37.000000000 -0800
@@ -2,7 +2,7 @@
 Priority: optional
 Maintainer: Debian Hebrew Packaging Team <debian-hebrew-pack...@lists.alioth.debian.org>
 Uploaders: Baruch Even <bar...@debian.org>, Lior Kaplan <kap...@debian.org>, Shachar Shemesh <shac...@debian.org>, Tzafrir Cohen <tzaf...@debian.org>
-Build-Depends: debhelper (>= 5.0.37.2), libgtkspell-dev, libgtk2.0-dev, gettext, swig, python-dev (>= 2.6.6-3~), libfftw3-dev, libtiff4-dev
+Build-Depends: debhelper (>= 5.0.37.2), libgtkspell-dev, libgtk2.0-dev, gettext, swig, python-dev (>= 2.6.6-3~), libfftw3-dev, libtiff4-dev, dh-autoreconf
 Standards-Version: 3.9.2
 Section: libs
 Vcs-Svn: svn://svn.debian.org/svn/debian-hebrew/pkg/hocr
diff -Nru hocr-0.10.17/debian/rules hocr-0.10.17/debian/rules
--- hocr-0.10.17/debian/rules	2011-07-26 04:26:21.000000000 -0700
+++ hocr-0.10.17/debian/rules	2013-03-02 02:15:12.000000000 -0800
@@ -36,6 +36,7 @@
 config.status: configure
 	dh_testdir
 	# Add here commands to configure the package.
+	dh_autoreconf
 	CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr
 
 build: build-arch build-indep
@@ -60,6 +61,7 @@
 	# Add here commands to clean up after the build process.
 	[ ! -f Makefile ] || $(MAKE) distclean
 
+	dh_autoreconf_clean
 	dh_clean 
 
 install: build

Reply via email to