Source: hwloc
Version: 1.9-4
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: 

        dh_install: libhwloc-dev missing files (usr/lib/*/lib*.so), aborting
        make: *** [binary-arch] Error 255
        dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit 
status 2

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

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: hwloc-1.9/debian/control
===================================================================
--- hwloc-1.9.orig/debian/control
+++ hwloc-1.9/debian/control
@@ -8,6 +8,7 @@ Build-Depends: debhelper (>= 7), cdbs, l
   libibverbs-dev [linux-any],
   ocl-icd-opencl-dev [!hurd-i386], opencl-headers,
   autoconf (>= 2.63),
+  dh-autoreconf,
   dpkg-dev (>= 1.16),
   hardening-wrapper
 Build-Depends-Indep: doxygen-latex, transfig
Index: hwloc-1.9/debian/rules
===================================================================
--- hwloc-1.9.orig/debian/rules
+++ hwloc-1.9/debian/rules
@@ -21,6 +21,7 @@ confflags=--prefix=/usr --libdir=\$${pre
 
 configure: configure.ac config/hwloc.m4
 	autoconf
+	dh_autoreconf
 
 config.status: configure
 	dh_testdir
@@ -43,6 +44,7 @@ debian/libhwloc5.links: debian/libhwloc5
 clean: 
 	dh_testdir
 	dh_testroot
+	dh_autoreconf_clean
 	rm -f build-stamp
 	rm -f debian/libhwloc5.links
 

Reply via email to