From 191c59413924e9b0a8a9cd16071178ee205f4013 Mon Sep 17 00:00:00 2001 From: Raphael Hertzog Date: Mon, 16 May 2011 13:54:34 -0700 Subject: [PATCH] Architecture in .dsc may now be "any all" With dpkg >= 1.16.1, the value of the Architecture field in the .dsc is generated a bit differently. The goal is to be able to always know when a source package generates an architecture-independent package. Currently as soon as one binary is "Architecture: any", the value generated is "any" and we have no way to know that there are "Architecture: all". With dpkg >= 1.16.1, the "all" is kept even if there's a binary package with "any". So the resulting value is then "any all". This allows wanna-build to know if it must schedule a build for the "Architecure: all" packages. --- policy.sgml | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/policy.sgml b/policy.sgml index 9b4a93e..0650306 100644 --- a/policy.sgml +++ b/policy.sgml @@ -2975,10 +2975,14 @@ Package: libc6

In the source package control file .dsc, this - field may contain either the architecture - wildcard any or a list of architectures and - architecture wildcards separated by spaces. If a list is - given, it may include (or consist solely of) the special + field contains a list of architectures and architecture + wildcards separated by spaces. When the list contains the + architecture wildcard any, the only other value + allowed in the list is all. +

+ +

+ The list may include (or consist solely of) the special value all. In other words, in .dsc files unlike the debian/control, all may occur in combination with specific architectures. @@ -2989,19 +2993,23 @@ Package: libc6

- Specifying any indicates that the source package + Specifying only 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 either be specific to whatever the current build - architecture is or will be architecture-independent. + will be specific to whatever the current build architecture is.

Specifying only all indicates that the source package - will only build architecture-independent packages. If this is - the case, all must be used rather than any; - any implies that the source package will build at - least one architecture-dependent package. + will only build architecture-independent packages. +

+ +

+ Specifying any all indicates that the source package + isn't dependent on any particular architecture. The set of + produced binary packages will include at least one + architecture-dependant package and one architecture-independent + package.

@@ -11272,4 +11280,4 @@ END-INFO-DIR-ENTRY - + -- 2.39.5