Package: tablix2
Version: 0.3.5-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: 

        This script, last modified 2007-03-06, has failed to recognize
        the operating system you are using. It is advised that you
        download the most up to date version of the config scripts from
        ...
        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

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

I tested it on ppc64el and it worked.

Thank you,
Breno
Index: tablix2-0.3.5/debian/control
===================================================================
--- tablix2-0.3.5.orig/debian/control
+++ tablix2-0.3.5/debian/control
@@ -2,7 +2,7 @@ Source: tablix2
 Section: misc
 Priority: extra
 Maintainer: Robert Lemmen <rober...@semistable.com>
-Build-Depends: debhelper (>= 7.0.0), pvm-dev, libxml2-dev
+Build-Depends: debhelper (>= 7.0.0), dh-autoreconf, pvm-dev, libxml2-dev
 Standards-Version: 3.8.3
 
 Package: tablix2
Index: tablix2-0.3.5/debian/rules
===================================================================
--- tablix2-0.3.5.orig/debian/rules
+++ tablix2-0.3.5/debian/rules
@@ -15,6 +15,7 @@ endif
 
 config.status: configure
 	dh_testdir
+	dh_autoreconf
 	CFLAGS="$(CFLAGS)" ./configure --prefix=/usr --mandir=/usr/share/man --with-pvm3 --enable-conv --enable-more-teachers --enable-tunable
 
 build: build-stamp
@@ -27,6 +28,7 @@ build-stamp:  config.status
 clean:
 	dh_testdir
 	dh_testroot
+	dh_autoreconf_clean
 	rm -f build-stamp 
 	rm -f examples/modules/*.so
 	[ ! -f Makefile ] || $(MAKE) distclean

Reply via email to