From c1e0e4e636844b4a08b77ca596df8cabb5e93af3 Mon Sep 17 00:00:00 2001
From: Russ Allbery
Date: Sun, 25 Jan 2009 15:11:56 -0800
Subject: [PATCH] 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)
---
policy.sgml | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
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.
--
2.39.5