dpkg-genbuildinfo.man 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. .\" dpkg manual page - dpkg-genbuildinfo(1)
  2. .\"
  3. .\" Copyright © 1995-1996 Ian Jackson <ian@chiark.chu.cam.ac.uk>
  4. .\" Copyright © 2000 Wichert Akkerman <wakkerma@debian.org>
  5. .\" Copyright © 2008-2010 Raphaël Hertzog <hertzog@debian.org>
  6. .\" Copyright © 2006-2016 Guillem Jover <guillem@debian.org>
  7. .\" Copyright © 2015 Jérémy Bobbio <lunar@debian.org>
  8. .\"
  9. .\" This is free software; you can redistribute it and/or modify
  10. .\" it under the terms of the GNU General Public License as published by
  11. .\" the Free Software Foundation; either version 2 of the License, or
  12. .\" (at your option) any later version.
  13. .\"
  14. .\" This is distributed in the hope that it will be useful,
  15. .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. .\" GNU General Public License for more details.
  18. .\"
  19. .\" You should have received a copy of the GNU General Public License
  20. .\" along with this program. If not, see <https://www.gnu.org/licenses/>.
  21. .
  22. .TH dpkg\-genbuildinfo 1 "%RELEASE_DATE%" "%VERSION%" "dpkg suite"
  23. .nh
  24. .SH NAME
  25. dpkg\-genbuildinfo \- generate Debian .buildinfo files
  26. .
  27. .SH SYNOPSIS
  28. .B dpkg\-genbuildinfo
  29. .RI [ option ...]
  30. .br
  31. .
  32. .SH DESCRIPTION
  33. .B dpkg\-genbuildinfo
  34. reads information from an unpacked and built Debian source tree and
  35. from the files it has generated and generates a Debian control
  36. file describing the build environment and the build artifacts
  37. .RB ( .buildinfo " file)."
  38. .P
  39. This command was introduced in dpkg 1.18.11.
  40. .
  41. .SH OPTIONS
  42. .TP
  43. .BI \-\-build= type
  44. Specifies the build \fItype\fP from a comma-separated list of components.
  45. The allowed values are:
  46. .RS
  47. .TP
  48. .B any
  49. Generate build information including unqualified build dependencies
  50. (\fBBuild\-Depends\fP) and architecture specific build dependencies
  51. (\fBBuild\-Depends\-Arch\fP).
  52. .TP
  53. .B all
  54. Generate build information including unqualified build dependencies
  55. (\fBBuild\-Depends\fP) and architecture independent build dependencies
  56. (\fBBuild\-Depends\-Indep\fP).
  57. .TP
  58. .B source
  59. Effectively ignored; generate build information with just the unqualified
  60. build dependencies (\fBBuild\-Depends\fP).
  61. .TP
  62. .B binary
  63. Generate build information with all three types of build dependencies.
  64. This is an alias for \fBany,all\fP.
  65. .TP
  66. .B full
  67. Generate build information with all three types of build dependencies.
  68. This is an alias for \fBany,all,source\fP, and the same as the default
  69. case when no build option is specified.
  70. .RE
  71. .TP
  72. .BI \-c controlfile
  73. Specifies the main source control file to read information from. The
  74. default is
  75. .BR debian/control .
  76. .TP
  77. .BI \-l changelog-file
  78. Specifies the changelog file to read information from. The
  79. default is
  80. .BR debian/changelog .
  81. .TP
  82. .BI \-f files-list-file
  83. Specifies where is the list of files that have been produced by the build,
  84. rather than using
  85. .BR debian/files .
  86. .TP
  87. .BI \-F changelog-format
  88. Specifies the format of the changelog. See \fBdpkg\-parsechangelog\fP(1)
  89. for information about alternative formats.
  90. .TP
  91. .BR \-O [\fIfilename\fP]
  92. Print the buildinfo file to standard output (or \fIfilename\fP if specified)
  93. rather than to
  94. .IB dir / source-name _ source-version _ arch .buildinfo
  95. (where \fIdir\fP is \fB..\fP by default or \fIupload-files-dir\fP
  96. if \fB\-u\fP was used).
  97. .TP
  98. .BI \-u upload-files-dir
  99. Look for the files to be uploaded in
  100. .I upload-files-dir
  101. rather than
  102. .B ..
  103. (\fBdpkg\-genbuildinfo\fP needs to find these files so that it can include
  104. their sizes and checksums in the \fB.buildinfo\fP file).
  105. .TP
  106. .BI \-\-always\-include\-path
  107. By default, the \fBBuild\-Path\fR field will only be written if the current
  108. directory starts with a whitelisted pattern.
  109. On Debian and derivatives the pattern matches on \fB/build/\fR at the start
  110. of the pathname.
  111. Specify this option to always write a \fBBuild\-Path\fR field when generating
  112. the \fB.buildinfo\fR.
  113. .TP
  114. .BI \-\-admindir= dir
  115. Change the location of the \fBdpkg\fR database. The default location is
  116. \fI/var/lib/dpkg\fP.
  117. .TP
  118. .B \-q
  119. .B dpkg\-genbuildinfo
  120. might produce informative messages on standard error.
  121. .B \-q
  122. suppresses these messages.
  123. .TP
  124. .BR \-? ", " \-\-help
  125. Show the usage message and exit.
  126. .TP
  127. .BR \-\-version
  128. Show the version and exit.
  129. .
  130. .SH ENVIRONMENT
  131. .TP
  132. .B DEB_BUILD_OPTIONS
  133. This variable can be used to enable or disable various features that affect
  134. the information included in the .buildinfo file, via the \fBbuildinfo\fP
  135. option (since dpkg 1.18.19).
  136. This option contains a comma-separated list of features, prefixed with the
  137. ‘\fB+\fP’ or ‘\fB\-\fP’ modifiers, to denote whether to enable or disable
  138. them.
  139. The special feature “\fBall\fP” can be used to enable or disable all other
  140. features.
  141. The feature “\fBpath\fP” controls whether to unconditionally include the
  142. \fBBuild\-Path\fP field.
  143. .
  144. .SH FILES
  145. .TP
  146. .B debian/files
  147. The list of generated files.
  148. .B dpkg\-genbuildinfo
  149. reads the data here when producing a
  150. .B .buildinfo
  151. file.
  152. .
  153. .SH SEE ALSO
  154. .BR deb-buildinfo (5).