Source: liblqr
Version: 0.4.1-2
Severity: normal
Tags: patch
User: debian-powe...@lists.debian.org
Usertags: ppc64el
User: debian-de...@lists.debian.org
Usertags: autoreconf

Dear Maintainer,

Currently this package FTBFS when compiled in new architectures (as ppc64el)
that is not supported on the outdated package autotools files, mainly because
it fails to understand that the new architectures has support for shared
libraries, as shown below:.

The full log could be found at the package log on our buildd entries at:
http://ftp.unicamp.br/pub/ppc64el/debian/buildd-upstream/build_logs/Build-Attempted.html

        dh_install              --sourcedir=debian/tmp -X.la --list-missing
        dh_install: liblqr-1-0-dev missing files (usr/lib/*/liblqr-1.so), 
aborting
        make: *** [binary-arch] Error 2
        dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit 
status 2

I created this patch that call autoreconf to updates the autotool files during
the build, as suggest by the following wiki:

https://wiki.debian.org/qa.debian.org/FTBFS#A2014-01-21_using_dh-autoreconf_during_the_build

You can find more information about autoreconf in the following link:
https://wiki.debian.org/Autoreconf

I tested this patch and it worked fine.

Thank you,
Breno
Index: liblqr-0.4.1/configure.ac
===================================================================
--- liblqr-0.4.1.orig/configure.ac
+++ liblqr-0.4.1/configure.ac
@@ -63,6 +63,7 @@ AM_INIT_AUTOMAKE([-Wall -Werror])
 AC_ISC_POSIX
 AC_PROG_CC
 AC_PROG_CXX
+AM_PROG_AR
 AM_PROG_CC_STDC
 AC_PROG_INSTALL
 AC_PROG_LN_S
Index: liblqr-0.4.1/debian/rules
===================================================================
--- liblqr-0.4.1.orig/debian/rules
+++ liblqr-0.4.1/debian/rules
@@ -31,16 +31,7 @@ LIB_version := $(LIB_soname).$(LIB_versi
 
 config.status: configure
 	dh_testdir
-	# Add here commands to configure the package.
-	# it saves upstream version of config.{sub,guess}
-ifneq "$(wildcard /usr/share/misc/config.sub)" ""
-	[ -e config.sub.debian ] || cp -pf config.sub config.sub.debian
-	cp -f /usr/share/misc/config.sub config.sub
-endif
-ifneq "$(wildcard /usr/share/misc/config.guess)" ""
-	[ -e config.guess.debian ] || cp -pf config.guess config.guess.debian
-	cp -f /usr/share/misc/config.guess config.guess
-endif
+	dh_autoreconf
 	./configure $(CROSS) --prefix=/usr CFLAGS="$(CFLAGS)" --libdir=/usr/lib/$(strip $(shell dpkg-architecture -qDEB_HOST_MULTIARCH))\
 		LDFLAGS="-Wl,-z,defs" --enable-install-man
 
@@ -69,8 +60,7 @@ clean:
 	rm -rf docs/html
 
 	# restore upstream version of config.{sub,guess}
-	[ ! -e config.sub.debian ] || mv -f config.sub.debian config.sub
-	[ ! -e config.guess.debian ] || mv -f config.guess.debian config.guess
+	dh_autoreconf_clean
 
 	dh_clean 
 

Reply via email to