Source: ck
Version: 0.6.0-1
Severity: serious
Tags: patch

The ck package FTBFS with debhelper/11.1 as it has an empty build
target.  This is caused by debhelper had a bug in its handling of
"explicitly defined rules targets" that has now been fixed.

Previously, this happened to work because dpkg-buildpackage would
invoke "debian/rules build" (which would be a no-op) followed by
"fakeroot debian/rules binary".  During the binary target, dh's
suboptimal handling would run the build commands.


The solution is trivial but less pretty; explicitly define "build"
with the same content as the "%:" target (or rename the "build" folder
and drop the ".PHONY" target).  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 2617adf33fb648fa775754aac9e7e66c1b0793c3 Mon Sep 17 00:00:00 2001
From: Niels Thykier <ni...@thykier.net>
Date: Sat, 27 Jan 2018 14:15:55 +0000
Subject: [PATCH] Avoid empty build target

The dh sequencer as of debhelper/11.1 is stricter with this in other
to solve #880840 (where debhelper would fail to handle such targets
correctly).

Signed-off-by: Niels Thykier <ni...@thykier.net>
---
 debian/rules | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/debian/rules b/debian/rules
index fbcfe82..ca7adfe 100755
--- a/debian/rules
+++ b/debian/rules
@@ -14,5 +14,10 @@ override_dh_auto_test:
 %:
        dh $@
 
+# The build target must not be empty.  Sadly because of how make
+# works, we have do duplicate the target in this case.
+build:
+       dh $@
+
 .PHONY: build
 
-- 
2.15.1

Reply via email to