Przeglądaj źródła

man: Document arch-qualifiers for dependency fields

Closes: #768842
Reported-by: Johannes Schauer <j.schauer@email.de>
Guillem Jover 11 lat temu
rodzic
commit
0fec5cfcf2
3 zmienionych plików z 32 dodań i 7 usunięć
  1. 3 1
      debian/changelog
  2. 16 5
      man/deb-control.5
  3. 13 1
      man/deb-src-control.5

+ 3 - 1
debian/changelog

@@ -1,6 +1,8 @@
 dpkg (1.18.0) UNRELEASED; urgency=low
 dpkg (1.18.0) UNRELEASED; urgency=low
 
 
-  *
+  * Document arch-qualifiers for dependency fields in deb-control(5) and
+    deb-src-control(5). Reported by Johannes Schauer <j.schauer@email.de>.
+    Closes: #768842
 
 
  -- Guillem Jover <guillem@debian.org>  Tue, 09 Dec 2014 23:53:18 +0100
  -- Guillem Jover <guillem@debian.org>  Tue, 09 Dec 2014 23:53:18 +0100
 
 

+ 16 - 5
man/deb-control.5

@@ -3,7 +3,7 @@
 .\" Copyright © 1995 Raul Miller, Ian Jackson, Ian Murdock
 .\" Copyright © 1995 Raul Miller, Ian Jackson, Ian Murdock
 .\" Copyright © 1999 Ben Collins <bcollins@debian.org>
 .\" Copyright © 1999 Ben Collins <bcollins@debian.org>
 .\" Copyright © 2000 Wichert Akkerman <wakkerma@debian.org>
 .\" Copyright © 2000 Wichert Akkerman <wakkerma@debian.org>
-.\" Copyright © 2007-2011, 2013 Guillem Jover <guillem@debian.org>
+.\" Copyright © 2007-2011, 2013-2014 Guillem Jover <guillem@debian.org>
 .\" Copyright © 2008-2012 Raphaël Hertzog <hertzog@debian.org>
 .\" Copyright © 2008-2012 Raphaël Hertzog <hertzog@debian.org>
 .\"
 .\"
 .\" This is free software; you can redistribute it and/or modify
 .\" This is free software; you can redistribute it and/or modify
@@ -126,8 +126,8 @@ of a different architecture from itself. The value \fBforeign\fP means that
 the package is not co-installable with itself, but should be allowed to
 the package is not co-installable with itself, but should be allowed to
 satisfy the dependency of a package of a different arch from itself. The
 satisfy the dependency of a package of a different arch from itself. The
 value \fBallowed\fP allows reverse-dependencies to indicate in their
 value \fBallowed\fP allows reverse-dependencies to indicate in their
-Depends field that they accept a package from a foreign architecture, but
-has no effect otherwise.
+Depends field that they accept a package from a foreign architecture by
+qualifying the package name with \fB:any\fP, but has no effect otherwise.
 The value \fBno\fP is the default when the field is omitted, in which case
 The value \fBno\fP is the default when the field is omitted, in which case
 adding the field with an explicit \fBno\fP value is generally not needed.
 adding the field with an explicit \fBno\fP value is generally not needed.
 .TP
 .TP
@@ -187,8 +187,16 @@ fields is a list of groups of alternative packages. Each group is a list
 of packages separated by vertical bar (or `pipe') symbols, `|'. The
 of packages separated by vertical bar (or `pipe') symbols, `|'. The
 groups are separated by commas. Commas are to be read as `AND', and pipes
 groups are separated by commas. Commas are to be read as `AND', and pipes
 as `OR', with pipes binding more tightly. Each package name is
 as `OR', with pipes binding more tightly. Each package name is
+optionally followed by an architecture qualifier appended after a colon ":",
 optionally followed by a version number specification in parentheses.
 optionally followed by a version number specification in parentheses.
 .LP
 .LP
+An architecture qualifier name can be a real Debian architecture name
+(since dpkg 1.16.5) or \fBany\fP (since dpkg 1.16.2).
+If omitted, the default is the current binary package architecture.
+A real Debian architecture name will match exactly that architecture for
+that package name, \fBany\fP will match any architecture for that package
+name if the package has been marked as \fBMulti\-Arch: allowed\fP.
+.LP
 A version number may start with a `>>', in which case any later version
 A version number may start with a `>>', in which case any later version
 will match, and may specify or omit the Debian packaging revision (separated
 will match, and may specify or omit the Debian packaging revision (separated
 by a hyphen). Accepted version relationships are ">>" for greater than,
 by a hyphen). Accepted version relationships are ">>" for greater than,
@@ -240,8 +248,11 @@ In the
 .B Breaks
 .B Breaks
 and
 and
 .B Conflicts
 .B Conflicts
-fields, the comma should be read as `OR'. An optional version can also be
-given with the same syntax as above for the
+fields, the comma should be read as `OR'.
+An optional architecture qualifier can also be appended to the package name
+with the same syntax as above, but the default is \fBany\fP instead of the
+binary package architecture.
+An optional version can also be given with the same syntax as above for the
 .BR Breaks ,
 .BR Breaks ,
 .B Conflicts
 .B Conflicts
 and
 and

+ 13 - 1
man/deb-src-control.5

@@ -2,7 +2,7 @@
 .\"
 .\"
 .\" Copyright © 2010 Oxan van Leeuwen <oxan@oxanvanleeuwen.nl>
 .\" Copyright © 2010 Oxan van Leeuwen <oxan@oxanvanleeuwen.nl>
 .\" Copyright © 2011 Raphaël Hertzog <hertzog@debian.org>
 .\" Copyright © 2011 Raphaël Hertzog <hertzog@debian.org>
-.\" Copyright © 2011-2013 Guillem Jover <guillem@debian.org>
+.\" Copyright © 2011-2014 Guillem Jover <guillem@debian.org>
 .\"
 .\"
 .\" This is free software; you can redistribute it and/or modify
 .\" This is free software; you can redistribute it and/or modify
 .\" it under the terms of the GNU General Public License as published by
 .\" it under the terms of the GNU General Public License as published by
@@ -186,6 +186,7 @@ fields is a list of groups of alternative packages. Each group is a list
 of packages separated by vertical bar (or "pipe") symbols, "|". The
 of packages separated by vertical bar (or "pipe") symbols, "|". The
 groups are separated by commas. Commas are to be read as "AND", and pipes
 groups are separated by commas. Commas are to be read as "AND", and pipes
 as "OR", with pipes binding more tightly. Each package name is
 as "OR", with pipes binding more tightly. Each package name is
+optionally followed by an architecture qualifier appended after a colon ":",
 optionally followed by a version number specification in parentheses, an
 optionally followed by a version number specification in parentheses, an
 architecture specification in square brackets, and a restriction formula
 architecture specification in square brackets, and a restriction formula
 consisting of one or more lists of profile names in angle brackets.
 consisting of one or more lists of profile names in angle brackets.
@@ -202,6 +203,17 @@ parentheses, an architecture specification in square brackets, and a
 restriction formula consisting of one or more lists of profile names in
 restriction formula consisting of one or more lists of profile names in
 angle brackets.
 angle brackets.
 
 
+An architecture qualifier name can be a real Debian architecture name
+(since dpkg 1.16.5), \fBany\fP (since dpkg 1.16.2) or \fBnative\fP
+(since dpkg 1.16.5).
+If omitted, the default for \fBBuild\-Depends\fP fields is the current host
+architecture, the default for \fBBuild\-Conflicts\fP fields is \fBany\fP.
+A real Debian architecture name will match exactly that architecture for
+that package name, \fBany\fP will match any architecture for that package
+name if the package is marked with \fBMulti\-Arch: allowed\fP, and
+\fBnative\fP will match the current build architecture if the package
+is not marked with \fBMulti\-Arch: foreign\fP.
+
 A version number may start with a ">>", in which case any later version
 A version number may start with a ">>", in which case any later version
 will match, and may specify or omit the Debian packaging revision (separated
 will match, and may specify or omit the Debian packaging revision (separated
 by a hyphen). Accepted version relationships are ">>" for greater than,
 by a hyphen). Accepted version relationships are ">>" for greater than,