Package: libtemplate-perl Version: 2.24-1.2 Severity: serious Tags: patch
Hi, The libtemplate-perl package FTBFS with debhelper/11.1 as its build target is not safe to run multiple times. However, since debhelper/11.1 this is occurs becase we had to fix a bug in debhelper's handling of "explicitly defined rules targets". In the concrete case, it is appears to be relaitively simple to convert libtemplate-perl to use override targets rather than the deprecated manual sequence control parameters. I have attached a patch for this. More details can be found in: * #886901 comment #35 * #887688 comment #37 * #880840 Apologies for the inconvenience. Thanks, ~Niels
>From cf111ede34f6b34ecad12531e826e523c54b4a55 Mon Sep 17 00:00:00 2001 From: Niels Thykier <ni...@thykier.net> Date: Sun, 28 Jan 2018 14:26:30 +0000 Subject: [PATCH] Rewrite d/rules to avoid deprecated dh sequence ctrl parameters Signed-off-by: Niels Thykier <ni...@thykier.net> --- debian/rules | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/debian/rules b/debian/rules index db25e51..8480199 100755 --- a/debian/rules +++ b/debian/rules @@ -2,18 +2,16 @@ %: dh $@ -build: - dh build --before dh_auto_configure +override_dh_auto_configre: [ ! -f $(CURDIR)/lib/Template/Config.pm.orig ] && cp $(CURDIR)/lib/Template/Config.pm $(CURDIR)/lib/Template/Config.pm.orig - dh build --remaining + dh_auto_configure override_dh_installdocs: dh_installdocs -X.svn/ -clean: - dh clean --until dh_auto_clean +override_dh_auto_clean: + dh_auto_clean rm -f $(CURDIR)/.defaults.cfg rm -f $(CURDIR)/t/test/src/divisionbyzero.ttc rm -rf $(CURDIR)/t/test/tmp/cache/* [ ! -f $(CURDIR)/lib/Template/Config.pm.orig ] || mv -f $(CURDIR)/lib/Template/Config.pm.orig $(CURDIR)/lib/Template/Config.pm - dh clean --remaining -- 2.15.1