From 478c037195972221841011150aad26d631da18fc Mon Sep 17 00:00:00 2001
From: Russ Allbery
Date: Wed, 18 Aug 2010 13:55:34 -0700
Subject: [PATCH] Clarify required rules in debian/rules
* Use the word "implemented" to describe required targets in
debian/rules, which is clearer about allowing wildcard rules. List
the required rules in their own paragraph rather than with the
paragraph discussing non-interactivity, and explicitly mark all rules
as either required or optional. (Closes: #536790)
---
debian/changelog | 5 +++++
policy.sgml | 29 ++++++++++++++++-------------
2 files changed, 21 insertions(+), 13 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 743a18e..035fc26 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,6 +10,11 @@ debian-policy (3.9.2.0) UNRELEASED; urgency=low
machine. (Closes: #591857)
* Correct the name of the Filesystem Hierarchy Standard in the package
description. Patch from Christoph Anton Mitterer. (Closes: #590696)
+ * Use the word "implemented" to describe required targets in
+ debian/rules, which is clearer about allowing wildcard rules. List
+ the required rules in their own paragraph rather than with the
+ paragraph discussing non-interactivity, and explicitly mark all rules
+ as either required or optional. (Closes: #536790)
-- Russ Allbery Thu, 12 Aug 2010 10:47:47 -0700
diff --git a/policy.sgml b/policy.sgml
index 0624290..9037de8 100644
--- a/policy.sgml
+++ b/policy.sgml
@@ -1826,23 +1826,26 @@
identical behavior.
+
+ The following targets are required and must be implemented
+ by debian/rules: clean, binary,
+ binary-arch, binary-indep, and build.
+ These are the targets called by dpkg-buildpackage.
+
+
Since an interactive debian/rules script makes it
- impossible to auto-compile that package and also makes it
- hard for other people to reproduce the same binary
- package, all required targets must be
- non-interactive. At a minimum, required targets are the
- ones called by dpkg-buildpackage, namely,
- clean, binary, binary-arch,
- binary-indep, and build. It also follows
- that any target that these targets depend on must also be
+ impossible to auto-compile that package and also makes it hard
+ for other people to reproduce the same binary package, all
+ required targets must be non-interactive. It also follows that
+ any target that these targets depend on must also be
non-interactive.
- The targets are as follows (required unless stated otherwise):
+ The targets are as follows:
- build
+ build (required)
-
The build target should perform all the
@@ -1953,8 +1956,8 @@
- binary, binary-arch,
- binary-indep
+ binary (required), binary-arch
+ (required), binary-indep (required)
-
@@ -2002,7 +2005,7 @@
- clean
+ clean (required)
-
This must undo any effects that the build
--
2.39.5