Re: Bug#163666: debian-policy: Unclear result with [arch] and |
- To: debian-dpkg@lists.debian.org
- Cc: 163666@bugs.debian.org
- Subject: Re: Bug#163666: debian-policy: Unclear result with [arch] and |
- From: Russ Allbery <rra@debian.org>
- Date: Sun, 25 Jan 2009 15:20:02 -0800
- Message-id: <[🔎] 87skn7j7ml.fsf@windlord.stanford.edu>
- In-reply-to: <20080706043559.GA26108@zulo.hadrons.org> (Guillem Jover's message of "Sun\, 6 Jul 2008 07\:36\:00 +0300")
- References: <E17yYzI-0004P6-00@localhost> <873cqtyvck.fsf@glaurung.green-gryphon.com> <20021029142940.GA308@uvt407-5.ruk.cuni.cz> <87prprub3n.fsf@windlord.stanford.edu> <20080706043559.GA26108@zulo.hadrons.org>
I finally found some time to write new proposed wording for the section in
Policy on handling architecture-restricted dependencies. Could you review
this change and be sure that I'm correctly describing the situation? I
added a new, fairly complicated example based on one of the ones that
Guillem explained for me.
--- 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]
</example>
+ requires <tt>kernel-headers-2.2.0</tt> on all architectures
+ other than hurd-i386 and requires <tt>hurd-dev</tt> and
+ <tt>gnumach-dev</tt> only on hurd-i386.
+ </p>
+
+ <p>
+ If the architecture-restricted dependency is part of a set of
+ alternatives using <tt>|</tt>, that branch of the alternative is
+ ignored completely on architectures that do not match the
+ restriction. For example:
+ <example compact="compact">
+Build-Depends: foo [!i386] | bar [!amd64]
+ </example>
+ is equivalent to <tt>bar</tt> on the i386 architecture, to
+ <tt>foo</tt> on the amd64 architecture, and to <tt>foo |
+ bar</tt> on all other architectures.
</p>
<p>
--
Russ Allbery (rra@debian.org) <http://www.eyrie.org/~eagle/>
Reply to: