deb-buildinfo.man 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. .\" dpkg manual page - deb-buildinfo(5)
  2. .\"
  3. .\" Copyright © 1995-1996 Ian Jackson <ijackson@chiark.greenend.org.uk>
  4. .\" Copyright © 2010 Russ Allbery <rra@debian.org>
  5. .\" Copyright © 2015-2016 Guillem Jover <guillem@debian.org>
  6. .\"
  7. .\" This is free software; you can redistribute it and/or modify
  8. .\" it under the terms of the GNU General Public License as published by
  9. .\" the Free Software Foundation; either version 2 of the License, or
  10. .\" (at your option) any later version.
  11. .\"
  12. .\" This is distributed in the hope that it will be useful,
  13. .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. .\" GNU General Public License for more details.
  16. .\"
  17. .\" You should have received a copy of the GNU General Public License
  18. .\" along with this program. If not, see <https://www.gnu.org/licenses/>.
  19. .
  20. .TH deb\-buildinfo 5 "%RELEASE_DATE%" "%VERSION%" "dpkg suite"
  21. .nh
  22. .SH NAME
  23. deb\-buildinfo \- Debian build information file format
  24. .
  25. .SH SYNOPSIS
  26. .IB filename .buildinfo
  27. .
  28. .SH DESCRIPTION
  29. Each Debian source package build can record the build information in
  30. a \fB.buildinfo\fP control file, which contains a number of fields.
  31. Each field begins with a tag, such as
  32. .B Source
  33. or
  34. .B Binary
  35. (case insensitive), followed by a colon, and the body of the field.
  36. Fields are delimited only by field tags.
  37. In other words, field text may be multiple lines in length, but the
  38. installation tools will generally join lines when processing the body
  39. of the field (except in case of the multiline fields
  40. .BR Binary\-Only\-Changes ", " Installed\-Build\-Depends ", " Environment ", "
  41. .BR Checksums\-Md5 ", " Checksums\-Sha1
  42. and
  43. .BR Checksums\-Sha256 ,
  44. see below).
  45. .PP
  46. The control data might be enclosed in an OpenPGP ASCII Armored signature,
  47. as specified in RFC4880.
  48. .PP
  49. The \fB.buildinfo\fP filename by default has the following form:
  50. \fIsource-name\fP\fB_\fP\fIsource-version\fP\fB_\fP\fIbuildinfo-id\fP\fB.buildinfo\fP
  51. where \fIbuildinfo-id\fP is composed of the build time formatted as
  52. \fBstrftime\fP(2) «%Y%m%dT%H%M%Sz», followed by a minus ‘\-’ and the
  53. eight left-most characters from the \fB.buildinfo\fP's file contents MD5
  54. digest.
  55. .
  56. .SH FIELDS
  57. .TP
  58. .BR Format: " \fIformat-version\fP (required)"
  59. The value of this field declares the format version of the file.
  60. The syntax of the field value is a version number with a major and minor
  61. component.
  62. Backward incompatible changes to the format will bump the major version,
  63. and backward compatible changes (such as field additions) will bump the
  64. minor version.
  65. The current format version is \fB0.1\fP.
  66. .TP
  67. .BR Source: " \fIsource-name\fP [\fB(\fP\fIsource-version\fP\fB)\fP] (required)"
  68. The name of the source package.
  69. If the source version differs from the binary version, then the
  70. \fIsource-name\fP will be followed by a \fIsource-version\fP in parenthesis.
  71. This can happen when the build is for a binary-only non-maintainer upload.
  72. .TP
  73. .BR Binary: " \fIbinary-package-list\fP (required)"
  74. This folded field is a space-separated list of binary packages built.
  75. .TP
  76. .BR Architecture: " \fIarch-list\fP (required)"
  77. This space-separated field lists the architectures of the files currently
  78. being built.
  79. Common architectures are \fBamd64\fP, \fBarmel\fP, \fBi386\fP, etc.
  80. Note that the \fBall\fP value is meant for packages that are architecture
  81. independent.
  82. If the source for the package is also being built, the special entry
  83. \fBsource\fP is also present.
  84. Architecture wildcards must never be present in the list.
  85. .TP
  86. .BR Version: " \fIversion-string\fP (required)"
  87. Typically, this is the original package's version number in whatever form
  88. the program's author uses.
  89. It may also include a Debian revision number (for non-native packages).
  90. The exact format and sorting algorithm are described in
  91. .BR deb\-version (5).
  92. .TP
  93. .B Binary\-Only\-Changes:
  94. .TQ
  95. .I " changelog-entry"
  96. This multiline field contains the concatenated text of the changelog
  97. entry for a binary-only non-maintainer upload (binNMU) if that is the case.
  98. To make this a valid multiline field empty lines are replaced with a
  99. single full stop (‘.’) and all lines are indented by one space
  100. character.
  101. The exact content depends on the changelog format.
  102. .TP
  103. .BR Checksums\-Md5: " (required)"
  104. .TQ
  105. .BR Checksums\-Sha1: " (required)"
  106. .TQ
  107. .BR Checksums\-Sha256: " (required)"
  108. .TQ
  109. .RI " " checksum " " size " " filename
  110. These multiline fields contain a list of files with a checksum and size
  111. for each one.
  112. These fields have the same syntax and differ only in the checksum algorithm
  113. used: MD5 for \fBChecksums\-Md5\fP, SHA-1 for \fBChecksums\-Sha1\fP and
  114. SHA-256 for \fBChecksums\-Sha256\fP.
  115. The first line of the field value (the part on the same line as the field
  116. name followed by a colon) is always empty.
  117. The content of the field is expressed as continuation lines, one line per file.
  118. Each line consists of space-separated entries describing the file:
  119. the checksum, the file size, and the file name.
  120. These fields list all files that make up the build.
  121. .TP
  122. .BR Build\-Origin: " \fIname\fP"
  123. The name of the distribution this package is originating from.
  124. .TP
  125. .BR Build\-Architecture: " \fIarch\fP (required)"
  126. The Debian architecture for the installation the packages is being built in.
  127. Common architectures are \fBamd64\fP, \fBarmel\fP, \fBi386\fP, etc.
  128. .TP
  129. .BR Build\-Path: " \fIbuild-path\fP"
  130. The absolute build path, which correspond to the unpacked source tree.
  131. This field is only going to be present if the vendor has whitelisted it
  132. via some pattern match to avoid leaking possibly sensitive information.
  133. On Debian and derivaties only build paths starting with \fI/build/\fP
  134. will emit this field.
  135. .TP
  136. .BR Installed\-Build\-Depends: " (required)"
  137. .TQ
  138. .I " package-list"
  139. The list of installed and configured packages that might affect the package
  140. build process.
  141. The list consists of each package name, optionally arch-qualified for foreign
  142. architectures, with an exact version restriction, separated by commas.
  143. The list includes all essential packages, packages listed in
  144. \fBBuild\-Depends\fP, \fBBuild\-Depends\-Arch\fP, \fBBuild\-Depends\-Indep\fP
  145. source control fields, any vendor specific builtin dependencies, and all
  146. their recursive dependencies.
  147. On Debian and derivatives the dependency builtin is \fBbuild\-essential\fP.
  148. For dependencies coming from the source control fields, all dependency
  149. alternatives and all providers of virtual packages depended on will be
  150. included.
  151. .TP
  152. .BR Environment:
  153. .TQ
  154. .I " variable-list"
  155. The list of environment variables that are known to affect the package build
  156. process, with each environment variable followed by an equal sign (‘=’)
  157. and the variable's quoted value, using double quotes (‘"’), and
  158. backslashes escaped (‘\\\\’).
  159. .
  160. .\" .SH EXAMPLE
  161. .\" .RS
  162. .\" .nf
  163. .\"
  164. .\" .fi
  165. .\" .RE
  166. .
  167. .SH SEE ALSO
  168. .BR deb\-changes (5),
  169. .BR deb\-version (5),
  170. .BR dpkg\-genbuildinfo (1).