Package: comedilib
Version: 0.10.2-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:
dh_install --sourcedir=debian/tmp --list-missing
cp: cannot stat 'debian/tmp/usr/lib/libcomedi.so': No such file or
directory
dh_install: cp -a debian/tmp/usr/lib/libcomedi.so
debian/libcomedi-dev//usr/lib/ returned exit code 1
make: *** [binary-arch] Error 2
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/logs/comedilib_0.10.2-1_ppc64el.build
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: comedilib-0.10.2/debian/control
===================================================================
--- comedilib-0.10.2.orig/debian/control
+++ comedilib-0.10.2/debian/control
@@ -5,7 +5,7 @@ Maintainer: Gudjon I. Gudjonsson <gudjon
Build-Depends: debhelper (>= 9), dpkg-dev (>= 1.16.1~), autotools-dev,
swig, docbook-utils, dblatex, bison, flex, libtool, xmlto, imagemagick, fop,
libboost-program-options-dev, libgsl0-dev,
- python-all-dev, python3-all-dev, libboost-dev
+ python-all-dev, python3-all-dev, libboost-dev, dh-autoreconf
Standards-Version: 3.9.5
Homepage: http://www.comedi.org
X-Python-Version: all
Index: comedilib-0.10.2/debian/rules
===================================================================
--- comedilib-0.10.2.orig/debian/rules
+++ comedilib-0.10.2/debian/rules
@@ -28,10 +28,7 @@ endif
configure: configure-stamp
configure-stamp:
dh_testdir
- cp /usr/share/misc/config.sub .
- cp /usr/share/misc/config.guess .
- cp /usr/share/misc/config.sub comedi-calibrate/
- cp /usr/share/misc/config.guess comedi-calibrate/
+ dh_autoreconf
for pyvers in ${PYTHONS}; \
do\
mkdir -p pybuild/$$pyvers; \
@@ -113,8 +110,7 @@ build-indep-stamp: configure-stamp
clean:
dh_testdir
dh_testroot
- rm -f config.sub
- rm -f config.guess
+ dh_autoreconf_clean
rm -f config.log
rm -f *-stamp
rm -rf pybuild
@@ -134,8 +130,6 @@ clean:
rm -f doc/extensions_funcref.xml
rm -f doc/funcref.xml
[ ! -f Makefile ] || $(MAKE) distclean
- rm -f comedi-calibrate/config.sub
- rm -f comedi-calibrate/config.guess
rm -f comedi-calibrate/config.log
rm -f doc/pdf/comedilib.pdf
[ ! -f comedi-calibrate/Makefile ]] || cd comedi-calibrate && [ ! -f Makefile ] || $(MAKE) distclean