From: Russ Allbery Date: Mon, 27 Feb 2012 04:34:04 +0000 (-0800) Subject: Clarify dependency relationships between build, build-{arch,indep} X-Git-Url: https://git.donarmstrong.com/?p=debian%2Fdebian-policy.git;a=commitdiff_plain;h=fd12af4ff32ea9c025a0e9c21127d78cf120051c Clarify dependency relationships between build, build-{arch,indep} * Clarify that only one of build-arch or build-indep may be provided (currently, at least) and that build should depend on whichever exist or perform the equivalent actions. Thanks to Jonathan Nieder for some of the wording. (Closes: #601839) --- diff --git a/debian/changelog b/debian/changelog index b81d85b..a82cf5c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -13,6 +13,10 @@ debian-policy (3.9.3.1) UNRELEASED; urgency=low of files and directories follow the FHS. (Closes: #638060) * Clarify the syntax of field names to make it clear that they may not contain spaces. Thanks, Charles Plessy. (Closes: #647645) + * Clarify that only one of build-arch or build-indep may be provided + (currently, at least) and that build should depend on whichever exist + or perform the equivalent actions. Thanks to Jonathan Nieder for some + of the wording. (Closes: #601839) * Install the HTML version of upgrading-checklist in the policy.html directory as upgrading-checklist.html so that it can be deployed on www.debian.org in a way that will allow links to Policy sections to diff --git a/policy.sgml b/policy.sgml index 465a129..2c0c72a 100644 --- a/policy.sgml +++ b/policy.sgml @@ -1951,7 +1951,7 @@

- A package may also provide both of the targets + A package may also provide one or both of the targets build-arch and build-indep. The build-arch target, if provided, should perform all the configuration and compilation required for @@ -1964,9 +1964,13 @@ architecture-independent binary packages (those packages for which the body of the Architecture field in debian/control is all). - The build target should depend on those of the - targets build-arch and build-indep that - are provided in the rules file. +

+ +

+ If build-arch or build-indep targets are + provided in the rules file, the build target + should either depend on those targets or take the same + actions as invoking those targets would perform. The intent of this split is so that binary-only builds need not install the dependencies required for the build-indep target. However, this is not