From: Russ Allbery Date: Wed, 18 Aug 2010 20:55:56 +0000 (-0700) Subject: Merge branch 'master' into bug488214-rra X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=f1e57c2dd51829620dffb46e12271e3ec6f1f6f4;hp=90ee15294f6d5de94a1197ee45d1bd2565e06f39;p=debian%2Fdebian-policy.git Merge branch 'master' into bug488214-rra --- 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