On Sat, Apr 23, 2016 at 09:10:51PM -0700, Martin Michlmayr wrote:
> Package: enscript
> Version: 1.6.5.90-2
> Severity: serious
> 
> This package fails to build in unstable:
> 
> > sbuild (Debian sbuild) 0.68.0 (15 Jan 2016) on dl580gen9-02.hlinux
> ...
> >    debian/rules override_dh_auto_configure
> > make[1]: Entering directory '/<<PKGBUILDDIR>>'
> > AUTOMAKE=automake-1.11 autoreconf -fis
> > Copying file intl/Makefile.in
> > Copying file m4/intldir.m4
> > Copying file po/Makevars.template
> > configure.ac:14: error: automatic de-ANSI-fication support has been removed
> > /usr/share/aclocal-1.15/obsolete.m4:26: AM_C_PROTOTYPES is expanded from...
> > configure.ac:14: the top level
> > autom4te: /usr/bin/m4 failed with exit status: 1
> > aclocal: error: echo failed with exit status: 1
> > autoreconf: aclocal failed with exit status: 1
> > debian/rules:13: recipe for target 'override_dh_auto_configure' failed
> > make[1]: *** [override_dh_auto_configure] Error 1
> > make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> > debian/rules:6: recipe for target 'build' failed
> > make: *** [build] Error 2

The attached patch makes the package build again.

Tested using cowbuilder with an up-to-date sid chroot.

-- 
Andrea Bolognani <e...@kiyuko.org>
Resistance is futile, you will be garbage collected.
From 453531070fd2b44dbef28c01763ad1836bb51fad Mon Sep 17 00:00:00 2001
From: Andrea Bolognani <e...@kiyuko.org>
Date: Sat, 28 May 2016 17:53:06 +0200
Subject: [PATCH] Force use of aclocal 1.11

debian/rules is set up so that automake 1.11 will
always be used - even on unstable, where the default
version is 1.15. However, the same is not true for
aclocal, which will be always used in its default
version.

The version mismatch between automake 1.11 and
aclocal 1.15 causes a FTBFS.

Fix the issue by forcing the use of aclocal 1.11.

Signed-off-by: Andrea Bolognani <e...@kiyuko.org>
---
 debian/rules | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index c6e729f..a6fa59f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,7 +10,7 @@ override_dh_auto_clean:
 	find -name Makefile.in -exec rm {} \;
 
 override_dh_auto_configure:
-	AUTOMAKE=automake-1.11 autoreconf -fis
+	AUTOMAKE=automake-1.11 ACLOCAL=aclocal-1.11 autoreconf -fis
 	dh_auto_configure
 
 override_dh_auto_install:
-- 
2.8.1

Attachment: signature.asc
Description: PGP signature

Reply via email to