dpkg-genbuildinfo.man 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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 _ buildinfo-id .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 \-\-buildinfo-id= identifier
  107. Specify the identifier part of the \fB.buildinfo\fP file name.
  108. By default, \fBdpkg\-genbuildinfo\fP will create an identifier using
  109. the current time and the first characters of the MD5 hash.
  110. An arbitrary identifier can be specified as a replacement.
  111. The identifier has the same restriction as package names: it must consist
  112. only of lower case letters (a-z), digits (0-9), plus (+) and minus (\-)
  113. signs, and periods (.), be at least two characters long and must start
  114. with an alphanumeric character.
  115. .TP
  116. .BI \-\-always\-include\-path
  117. By default, the \fBBuild\-Path\fR field will only be written if the current
  118. directory starts with a whitelisted pattern.
  119. On Debian and derivatives the pattern matches on \fB/build/\fR at the start
  120. of the pathname.
  121. Specify this option to always write a \fBBuild\-Path\fR field when generating
  122. the \fB.buildinfo\fR.
  123. .TP
  124. .BI \-\-admindir= dir
  125. Change the location of the \fBdpkg\fR database. The default location is
  126. \fI/var/lib/dpkg\fP.
  127. .TP
  128. .B \-q
  129. .B dpkg\-genbuildinfo
  130. might produce informative messages on standard error.
  131. .B \-q
  132. suppresses these messages.
  133. .TP
  134. .BR \-? ", " \-\-help
  135. Show the usage message and exit.
  136. .TP
  137. .BR \-\-version
  138. Show the version and exit.
  139. .
  140. .SH FILES
  141. .TP
  142. .B debian/files
  143. The list of generated files.
  144. .B dpkg\-genbuildinfo
  145. reads the data here when producing a
  146. .B .buildinfo
  147. file.
  148. .
  149. .SH SEE ALSO
  150. .BR deb-buildinfo (5).