* Michael Prokop [Mon Jan 25, 2016 at 11:56:30AM +0100]:

> When running "debian/rules build && debian/rules clean && debian/rules build"
> this fails with:

> | pod2man: unable to format script/deb-systemd-helper.1p
> | pod2man: unable to format script/deb-systemd-invoke.1p
> | pod2man: unable to format script/dh_systemd_enable.1p
> | pod2man: unable to format script/dh_systemd_start.1p
> | debian/rules:21: recipe for target 'override_dh_auto_build' failed

> The fix is simple, I'll provide a patch.

Attached patch takes care of that.

regards,
-mika-
From 60fec8e167e6cb309cd84cf500693886445bbf1a Mon Sep 17 00:00:00 2001
From: Michael Prokop <[email protected]>
Date: Mon, 25 Jan 2016 11:51:19 +0100
Subject: [PATCH] Ensure that generated pod2man files get removed in clean
 target

Otherwise rebuilding the package after build/clean once again
fails with:

| pod2man: unable to format script/deb-systemd-helper.1p
| pod2man: unable to format script/deb-systemd-invoke.1p
| pod2man: unable to format script/dh_systemd_enable.1p
| pod2man: unable to format script/dh_systemd_start.1p
| debian/rules:21: recipe for target 'override_dh_auto_build' failed

Closes: #812586
---
 debian/rules | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/debian/rules b/debian/rules
index 6b1fe21..6af00d6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -17,6 +17,10 @@ override_dh_perl:
 	dh_perl -d --package=init-system-helpers
 	dh_perl --no-package=init-system-helpers
 
+override_dh_auto_clean:
+	dh_auto_clean
+	rm -f script/*.1p
+
 override_dh_auto_build:
 	dh_auto_build
 	for file in $$(ls script/deb-* script/dh_*); do \
-- 
2.1.4

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Pkg-systemd-maintainers mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-systemd-maintainers

Reply via email to