1 .\" dpkg manual page - dpkg-genbuildinfo(1)
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>
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.
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.
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/>.
22 .TH dpkg\-genbuildinfo 1 "%RELEASE_DATE%" "%VERSION%" "dpkg suite"
25 dpkg\-genbuildinfo \- generate Debian .buildinfo files
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)."
39 This command was introduced in dpkg 1.18.11.
44 Specifies the build \fItype\fP from a comma-separated list of components.
46 The allowed values are:
50 Generate build information including unqualified build dependencies
51 (\fBBuild\-Depends\fP) and architecture specific build dependencies
52 (\fBBuild\-Depends\-Arch\fP).
55 Generate build information including unqualified build dependencies
56 (\fBBuild\-Depends\fP) and architecture independent build dependencies
57 (\fBBuild\-Depends\-Indep\fP).
60 Effectively ignored; generate build information with just the unqualified
61 build dependencies (\fBBuild\-Depends\fP).
64 Generate build information with all three types of build dependencies.
65 This is an alias for \fBany,all\fP.
68 Generate build information with all three types of build dependencies.
69 This is an alias for \fBany,all,source\fP, and the same as the default
70 case when no build option is specified.
74 Specifies the main source control file to read information from. The
78 .BI \-l changelog-file
79 Specifies the changelog file to read information from. The
81 .BR debian/changelog .
83 .BI \-f files-list-file
84 Specifies where is the list of files that have been produced by the build,
88 .BI \-F changelog-format
89 Specifies the format of the changelog. See \fBdpkg\-parsechangelog\fP(1)
90 for information about alternative formats.
92 .BR \-O [\fIfilename\fP]
93 Print the buildinfo file to standard output (or \fIfilename\fP if specified)
95 .IB dir / source-name _ binary-version _ arch .buildinfo
96 (where \fIdir\fP is \fB..\fP by default or \fIupload-files-dir\fP
97 if \fB\-u\fP was used).
99 .BI \-u upload-files-dir
100 Look for the files to be uploaded in
104 (\fBdpkg\-genbuildinfo\fP needs to find these files so that it can include
105 their sizes and checksums in the \fB.buildinfo\fP file).
107 .BI \-\-always\-include\-path
108 By default, the \fBBuild\-Path\fR field will only be written if the current
109 directory starts with a whitelisted pattern.
111 On Debian and derivatives the pattern matches on \fB/build/\fR at the start
114 Specify this option to always write a \fBBuild\-Path\fR field when generating
115 the \fB.buildinfo\fR.
117 .BI \-\-admindir= dir
118 Change the location of the \fBdpkg\fR database. The default location is
122 .B dpkg\-genbuildinfo
123 might produce informative messages on standard error.
125 suppresses these messages.
127 .BR \-? ", " \-\-help
128 Show the usage message and exit.
131 Show the version and exit.
136 This variable can be used to enable or disable various features that affect
137 the information included in the .buildinfo file, via the \fBbuildinfo\fP
138 option (since dpkg 1.18.19).
139 This option contains a comma-separated list of features, prefixed with the
140 ‘\fB+\fP’ or ‘\fB\-\fP’ modifiers, to denote whether to enable or disable
142 The special feature “\fBall\fP” can be used to enable or disable all other
144 The feature “\fBpath\fP” controls whether to unconditionally include the
145 \fBBuild\-Path\fP field.
150 The list of generated files.
151 .B dpkg\-genbuildinfo
152 reads the data here when producing a
157 .BR deb-buildinfo (5).