Source: libexplain
Version: 1.4.D001-1
Severity: normal
Tags: patch
User: [email protected]
Usertags: ppc64el
User: [email protected]
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

        configure: error: cannot guess build type; you must specify one
        make: *** [config.status] Error 1
        dpkg-buildpackage: error: debian/rules build gave error exit status 2
        checking build system type... 
────────────────────────────────────────────────────────────────────────────────
        Build finished at 20140813-1139

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: libexplain-1.4.D001/debian/autoreconf
===================================================================
--- /dev/null
+++ libexplain-1.4.D001/debian/autoreconf
@@ -0,0 +1 @@
+etc
Index: libexplain-1.4.D001/debian/rules
===================================================================
--- libexplain-1.4.D001.orig/debian/rules
+++ libexplain-1.4.D001/debian/rules
@@ -12,6 +12,8 @@ endif
 
 config.status: configure
 	dh_testdir
+	dh_autotools-dev_updateconfig
+	dh_autoreconf
 	sh configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc \
 		--mandir=/usr/share/man CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
 
@@ -33,6 +35,8 @@ build-stamp: config.status
 clean:
 	dh_testdir
 	dh_testroot
+	dh_autotools-dev_restoreconfig
+	dh_autoreconf_clean
 	rm -f build-stamp
 	test ! -f Makefile || $(MAKE) distclean
 	dh_clean
Index: libexplain-1.4.D001/etc/configure.ac
===================================================================
--- libexplain-1.4.D001.orig/etc/configure.ac
+++ libexplain-1.4.D001/etc/configure.ac
@@ -17,7 +17,7 @@ dnl! You should have received a copy of
 dnl! along with this program. If not, see <http://www.gnu.org/licenses/>.
 dnl!
 AC_INIT(install-sh)
-AC_CONFIG_HEADER(libexplain/config.h)
+AC_CONFIG_HEADER(../libexplain/config.h)
 AC_USE_SYSTEM_EXTENSIONS
 AC_LANG_C
 AC_LANG_ASSERT(C)
Index: libexplain-1.4.D001/debian/control
===================================================================
--- libexplain-1.4.D001.orig/debian/control
+++ libexplain-1.4.D001/debian/control
@@ -5,7 +5,7 @@ Maintainer: Peter Miller <pmiller@openso
 Homepage: http://libexplain.sourceforge.net/
 DM-Upload-Allowed: yes
 Build-Depends: bison, debhelper (>= 5), ghostscript, groff, libacl1-dev,
- libcap-dev, libtool, linux-libc-dev, lsof
+ libcap-dev, libtool, linux-libc-dev, lsof, dh-autoreconf, autotools-dev
 Standards-Version: 3.9.3
 
 Package: explain

Reply via email to