Source: sysfsutils
Version: 2.1.0
Severity: normal
Tags: patch
User: debian-powe...@lists.debian.org
Usertags: ppc64el
User: debian-de...@lists.debian.org
Usertags: autoreconf

Dear Maintainer,

The package sysfsutils fails to build on ppc64el, as on new architectures,
because the config.{guess,sub} and libtool files are out of date, and are not
updated during the build, causing the following error, because shared library
is not generated.

        dh_installdirs -plibsysfs2-udeb 
        cp -L debian/tmp/lib/*/libsysfs.so.2 debian/libsysfs2-udeb/lib
        cp: cannot stat 'debian/tmp/lib/*/libsysfs.so.2': No such file or 
directory
        make: *** [install/libsysfs2-udeb] Error 1
        dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit 
status 2
        
────────────────────────────────────────────────────────────────────────────────
        Build finished at 20140625-2339

I just created a patch that enables the package to be reconfigured during the
build process, so, updating the libtool files. I am using the following URL as
reference:

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

Thank you,
Breno 
Index: sysfsutils-2.1.0+repack/configure.ac
===================================================================
--- sysfsutils-2.1.0+repack.orig/configure.ac	2006-08-07 05:08:00.000000000 +0000
+++ sysfsutils-2.1.0+repack/configure.ac	2014-06-26 20:53:44.000000000 +0000
@@ -1,5 +1,6 @@
 # Process this file with autoconf to produce a configure script.
 AC_INIT(sysfsutils, 2.1.0, linux-diag-de...@lists.sourceforge.net)
+AC_CONFIG_MACRO_DIR([m4])
 AM_INIT_AUTOMAKE
 AC_CONFIG_SRCDIR([config.h.in])
 AM_CONFIG_HEADER([config.h])
Index: sysfsutils-2.1.0+repack/debian/control
===================================================================
--- sysfsutils-2.1.0+repack.orig/debian/control	2012-10-07 13:52:39.000000000 +0000
+++ sysfsutils-2.1.0+repack/debian/control	2014-06-26 20:55:50.000000000 +0000
@@ -2,7 +2,7 @@
 Section: libs
 Priority: extra
 Maintainer: Debian QA Group <packa...@qa.debian.org>
-Build-Depends: debhelper (>= 8.1.3), cdbs (>= 0.4.93~), chrpath, autotools-dev
+Build-Depends: debhelper (>= 8.1.3), cdbs (>= 0.4.93~), chrpath, autotools-dev, dh-autoreconf
 Standards-Version: 3.9.3
 
 Package: libsysfs-dev
Index: sysfsutils-2.1.0+repack/debian/rules
===================================================================
--- sysfsutils-2.1.0+repack.orig/debian/rules	2012-10-07 13:52:39.000000000 +0000
+++ sysfsutils-2.1.0+repack/debian/rules	2014-06-26 20:55:40.000000000 +0000
@@ -1,6 +1,7 @@
 #!/usr/bin/make -f
 
 include /usr/share/cdbs/1/class/autotools.mk
+include /usr/share/cdbs/1/rules/autoreconf.mk
 include /usr/share/cdbs/1/rules/debhelper.mk
 
 DEB_CONFIGURE_EXTRA_FLAGS := --libdir=/lib/$(DEB_HOST_MULTIARCH)

Reply via email to