Package: libgcrypt11
Version: 1.5.3-3
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: 

        cd debian/tmp/usr/lib/powerpc64le-linux-gnu \
                        && ln -v -s /lib/powerpc64le-linux-gnu/`readlink 
../../../lib/*/*.so` libgcrypt.so
        'libgcrypt.so' -> '/lib/powerpc64le-linux-gnu/'
        rm -v debian/tmp/lib/powerpc64le-linux-gnu/*.so
        rm: cannot remove 'debian/tmp/lib/powerpc64le-linux-gnu/*.so': No such 
file or directory
        make[1]: *** [override_dh_auto_install] Error 1
        make[1]: Leaving directory `/«PKGBUILDDIR»'
        make: *** [binary] Error 2

The full log could be found at 
http://ftp.unicamp.br/pub/ppc64el/debian/buildd-upstream/build_logs/logs/libgcrypt11_1.5.3-4_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.

PS: Since libgcrypt11 is a VERY important package, and one of the key missing
packages for the ppc64el architecture, I would love to see this patch
integrated. FWIW, Ubuntu has been using this autoreconf for a while on
libgcrypt11 package. 

Thank you,
Breno
Index: libgcrypt11-1.5.3/debian/control
===================================================================
--- libgcrypt11-1.5.3.orig/debian/control
+++ libgcrypt11-1.5.3/debian/control
@@ -6,7 +6,7 @@ Uploaders: Andreas Metzler <ametzler@deb
  Eric Dorland <[email protected]>, James Westby <[email protected]>,
  Simon Josefsson <[email protected]>
 Build-Depends: debhelper (>= 9),
- libgpg-error-dev (>> 1.10-0.1), autotools-dev
+ libgpg-error-dev (>> 1.10-0.1), dh-autoreconf
 Build-Depends-Indep: texlive-latex-base, texlive-generic-recommended,
  texinfo (>= 4.6-0)
 Standards-Version: 3.9.5
Index: libgcrypt11-1.5.3/debian/rules
===================================================================
--- libgcrypt11-1.5.3.orig/debian/rules
+++ libgcrypt11-1.5.3/debian/rules
@@ -35,4 +35,4 @@ override_dh_installinfo:
 	fi
 
 %:
-	dh $@ --parallel --with autotools_dev
+	dh $@ --parallel --with autoreconf

Reply via email to