From: Russ Allbery Date: Sun, 25 Jan 2009 23:11:56 +0000 (-0800) Subject: Clarify handling of architecture restrictions in dependencies X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=c1e0e4e636844b4a08b77ca596df8cabb5e93af3;p=debian%2Fdebian-policy.git Clarify handling of architecture restrictions in dependencies Add an explanation of the example and an additional example and explanation for handling of architecture restrictions within alternatives. Thanks, Guillem Jover. (Closes: #163666) --- diff --git a/policy.sgml b/policy.sgml index 7de382d..120fc3a 100644 --- a/policy.sgml +++ b/policy.sgml @@ -4188,6 +4188,22 @@ Build-Depends-Indep: texinfo Build-Depends: kernel-headers-2.2.10 [!hurd-i386], hurd-dev [hurd-i386], gnumach-dev [hurd-i386] + requires kernel-headers-2.2.0 on all architectures + other than hurd-i386 and requires hurd-dev and + gnumach-dev only on hurd-i386. +

+ +

+ If the architecture-restricted dependency is part of a set of + alternatives using |, that branch of the alternative is + ignored completely on architectures that do not match the + restriction. For example: + +Build-Depends: foo [!i386] | bar [!amd64] + + is equivalent to bar on the i386 architecture, to + foo on the amd64 architecture, and to foo | + bar on all other architectures.