Source: libglademm2.4
Version: 2.6.7-2
Severity: wishlist
Tags: patch
User: debian-...@lists.debian.org
Usertags: port-x32 ftbfs-libtool

The libglademm2.4 source package is getting this build failure on the unofficial
Debian x32 port:

<URL:http://buildd.debian-ports.org/status/fetch.php?pkg=libglademm2.4&arch=x32&ver=2.6.7-2&stamp=1361156005>:
...
/bin/bash ../../libtool --tag=CXX   --mode=link g++  -g -O2 -fstack-protector 
--param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -version-info 
1:5:0  -Wl,-z,relro -Wl,-z,defs -Wl,-O1 -Wl,--as-needed -o 
libglademm-2.4.la -rpath /usr/lib xml.lo wrap_init.lo init.lo variablesmap.lo 
-lgtkmm-2.4 -latkmm-1.6 -lgdkmm-2.4 -lgiomm-2.4 -lpangomm-1.4 -lglibmm-2.4 
-lcairomm-1.0 -lsigc-2.0 -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 -
latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo 
-lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0   
../../libtool: line 4453: test: : integer expression expected
../../libtool: line 4453: test: : integer expression expected
creating reloadable object files...
../../libtool: line 4488: test: : integer expression expected
../../libtool: line 4488: test: : integer expression expected
../../libtool: line 4488: test: : integer expression expected
creating a temporary reloadable object file: .libs/libglademm-2.4.la-4.o
/usr/bin/ld -m elf_i386 -r -o .libs/libglademm-2.4.la-1.o .libs/xml.o 
/usr/bin/ld: Relocatable linking with relocations from format elf32-x86-64 
(.libs/xml.o) to format elf32-i386 (.libs/libglademm-2.4.la-1.o) is not 
supported
make[5]: *** [libglademm-2.4.la] Error 1
make[5]: Leaving directory 
`/build/buildd-libglademm2.4_2.6.7-2-x32-bebFrn/libglademm2.4-2.6.7/libglade/libglademm'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory 
`/build/buildd-libglademm2.4_2.6.7-2-x32-bebFrn/libglademm2.4-2.6.7/libglade/libglademm'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory 
`/build/buildd-libglademm2.4_2.6.7-2-x32-bebFrn/libglademm2.4-2.6.7/libglade'
make[2]: *** [all] Error 2
make[2]: Leaving directory 
`/build/buildd-libglademm2.4_2.6.7-2-x32-bebFrn/libglademm2.4-2.6.7/libglade'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 
`/build/buildd-libglademm2.4_2.6.7-2-x32-bebFrn/libglademm2.4-2.6.7'
make: *** [debian/stamp-makefile-build] 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 (along with
a patch to fix the package so that the autoreconf actually works).
-- 
Daniel Schepler
diff -u libglademm2.4-2.6.7/debian/control.in libglademm2.4-2.6.7/debian/control.in
--- libglademm2.4-2.6.7/debian/control.in
+++ libglademm2.4-2.6.7/debian/control.in
@@ -13,7 +13,8 @@
                dpkg-dev (>= 1.14.16),
                gnome-pkg-tools (>= 0.11),
                libglade2-dev (>= 1:2.6.1),
-               libgtkmm-2.4-dev (>= 1:2.6.0)
+               libgtkmm-2.4-dev (>= 1:2.6.0),
+               dh-autoreconf
 Standards-Version: 3.8.1
 
 Package: libglademm-2.4-dev
diff -u libglademm2.4-2.6.7/debian/control libglademm2.4-2.6.7/debian/control
--- libglademm2.4-2.6.7/debian/control
+++ libglademm2.4-2.6.7/debian/control
@@ -13,7 +13,8 @@
                dpkg-dev (>= 1.14.16),
                gnome-pkg-tools (>= 0.11),
                libglade2-dev (>= 1:2.6.1),
-               libgtkmm-2.4-dev (>= 1:2.6.0)
+               libgtkmm-2.4-dev (>= 1:2.6.0),
+               dh-autoreconf
 Standards-Version: 3.8.1
 
 Package: libglademm-2.4-dev
diff -u libglademm2.4-2.6.7/debian/changelog libglademm2.4-2.6.7/debian/changelog
--- libglademm2.4-2.6.7/debian/changelog
+++ libglademm2.4-2.6.7/debian/changelog
@@ -1,3 +1,10 @@
+libglademm2.4 (2.6.7-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>  Tue, 05 Mar 2013 07:34:22 -0800
+
 libglademm2.4 (2.6.7-2) unstable; urgency=low
 
   * `make -C examples clean` after `make install` to prevent shipping
diff -u libglademm2.4-2.6.7/debian/rules libglademm2.4-2.6.7/debian/rules
--- libglademm2.4-2.6.7/debian/rules
+++ libglademm2.4-2.6.7/debian/rules
@@ -6,6 +6,7 @@
 include /usr/share/cdbs/1/class/autotools.mk
 include /usr/share/gnome-pkg-tools/1/rules/uploaders.mk
 include /usr/share/gnome-pkg-tools/1/rules/clean-la.mk
+include /usr/share/cdbs/1/rules/autoreconf.mk
 -include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk
 
 GNOME_MODULE := libglademm
@@ -20,6 +21,7 @@
 DEB_DH_INSTALL_SOURCEDIR := debian/tmp
 DEB_DH_MAKESHLIBS_ARGS_$(SHARED_PKG) += -V"$(SHARED_PKG) (>= $(SHVER))"
 DEB_INSTALL_EXAMPLES_$(DOC_PKG) += -XMakefile -X.deps -X.libs -X.o
+export AUTOHEADER=true
 
 # chrpath hack to get rid of amd64 rpath
 common-install-impl::
only in patch2:
unchanged:
--- libglademm2.4-2.6.7.orig/debian/patches/series
+++ libglademm2.4-2.6.7/debian/patches/series
@@ -0,0 +1,2 @@
+10_devhelp_index_path_fix.patch -p0
+autoreconf_fix.patch
only in patch2:
unchanged:
--- libglademm2.4-2.6.7.orig/debian/patches/autoreconf_fix.patch
+++ libglademm2.4-2.6.7/debian/patches/autoreconf_fix.patch
@@ -0,0 +1,35 @@
+Index: libglademm2.4-2.6.7/configure.in
+===================================================================
+--- libglademm2.4-2.6.7.orig/configure.in	2013-03-05 08:10:23.000000000 -0800
++++ libglademm2.4-2.6.7/configure.in	2013-03-05 08:11:18.000000000 -0800
+@@ -43,6 +43,7 @@
+ AC_SUBST(LIBGLADEMM_SO_VERSION)
+ 
+ AC_CONFIG_AUX_DIR(scripts)
++AC_CONFIG_MACRO_DIR(scripts)
+ 
+ dnl For automake.
+ VERSION=$LIBGLADEMM_VERSION
+@@ -141,10 +142,6 @@
+ SUN make does not work for building gtkmm.
+ Please install GNU make.]))
+ 
+-# This macro is installed by glibmm
+-# Doxygen needs the path to the installed perl.
+-GLIBMM_CHECK_PERL([5.6.0])
+-
+ #########################################################################
+ #  Dependancy checks
+ #########################################################################
+Index: libglademm2.4-2.6.7/Makefile.am
+===================================================================
+--- libglademm2.4-2.6.7.orig/Makefile.am	2013-03-05 08:10:23.000000000 -0800
++++ libglademm2.4-2.6.7/Makefile.am	2013-03-05 08:10:23.000000000 -0800
+@@ -6,6 +6,7 @@
+ 		  build_shared/Makefile_build_gensrc.am_fragment \
+ 		  build_shared/Makefile_gensrc.am_fragment
+ 
++ACLOCAL_AMFLAGS = -I scripts
+ 
+ all-local:
+ 	@echo "*** Everything completed ***"

Reply via email to