From: Manoj Srivastava Date: Thu, 16 Jun 2005 05:43:33 +0000 (+0000) Subject: clarified the section about the Architecture field and added footnotes to indicate... X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=766a66d269b8669b86ff4cbda912fd8ea3cbb2c7;p=debian%2Fdebian-policy.git clarified the section about the Architecture field and added footnotes to indicate recommended actions, closes: #51832 Author: joy Date: 2003/11/02 13:59:55 clarified the section about the Architecture field and added footnotes to indicate recommended actions, closes: #51832 git-archimport-id: srivasta@debian.org--etch/debian-policy--devel--3.0--patch-260 --- diff --git a/policy.sgml b/policy.sgml index 9b2a138..d0a0e36 100644 --- a/policy.sgml +++ b/policy.sgml @@ -2469,31 +2469,54 @@ Package: libc6 Architecture

- This is the architecture string; it is a single word for - the Debian architecture. The special value all - indicates that the package is architecture-independent. + Depending on context and the control file used, the + Architecture field can include the following sets of + values: + + A unique single word identifying a Debian machine + architecture, see . + all, which indicates an + architecture-independent package. + any, which indicates a package available + for building on any architecture. + source, which indicates a source package. +

In the main debian/control file in the source package, or in the source package control file - .dsc, a list of architectures (separated by - spaces) is also allowed, as is the special value - any. A list indicates that the source will build - an architecture-dependent package, and will only work - correctly on the listed architectures. any - indicates that though the source package isn't dependent - on any particular architecture and should compile fine on - any one, the binary package(s) produced are not - architecture-independent but will instead be specific to - whatever the current build architecture is. + .dsc, one may specify a list of architectures + separated by spaces, or the special values any or + all. +

+ +

+ Specifying any indicates that the source package + isn't dependent on any particular architecture and should + compile fine on any one. The produced binary package(s) + will be specific to whatever the current build architecture + is. + This is the most often used setting, and is recommended + for new packages that aren't Architecture: all. + +

+ +

+ Specifying a list of architectures indicates that the source + will build an architecture-dependent package, and will only + work correctly on the listed architectures. + This is a setting used for a minority of cases where the + program is not portable. Generally, it should not be used + for new packages. +

- In a .changes file the Architecture + In a .changes file, the Architecture field lists the architecture(s) of the package(s) currently being uploaded. This will be a list; if the - source for the package is being uploaded too the special + source for the package is also being uploaded, the special entry source is also present.