dpkg (1.18.25) stretch; urgency=medium
[dpkg] / man / dpkg-genbuildinfo.man
CommitLineData
1479465f
GJ
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
25dpkg\-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
34reads information from an unpacked and built Debian source tree and
35from the files it has generated and generates a Debian control
36file describing the build environment and the build artifacts
37.RB ( .buildinfo " file)."
38.P
39This command was introduced in dpkg 1.18.11.
40.
41.SH OPTIONS
42.TP
43.BI \-\-build= type
44Specifies the build \fItype\fP from a comma-separated list of components.
45
46The allowed values are:
47.RS
48.TP
49.B any
50Generate build information including unqualified build dependencies
51(\fBBuild\-Depends\fP) and architecture specific build dependencies
52(\fBBuild\-Depends\-Arch\fP).
53.TP
54.B all
55Generate build information including unqualified build dependencies
56(\fBBuild\-Depends\fP) and architecture independent build dependencies
57(\fBBuild\-Depends\-Indep\fP).
58.TP
59.B source
60Effectively ignored; generate build information with just the unqualified
61build dependencies (\fBBuild\-Depends\fP).
62.TP
63.B binary
64Generate build information with all three types of build dependencies.
65This is an alias for \fBany,all\fP.
66.TP
67.B full
68Generate build information with all three types of build dependencies.
69This is an alias for \fBany,all,source\fP, and the same as the default
70case when no build option is specified.
71.RE
72.TP
73.BI \-c controlfile
74Specifies the main source control file to read information from. The
75default is
76.BR debian/control .
77.TP
78.BI \-l changelog-file
79Specifies the changelog file to read information from. The
80default is
81.BR debian/changelog .
82.TP
83.BI \-f files-list-file
84Specifies where is the list of files that have been produced by the build,
85rather than using
86.BR debian/files .
87.TP
88.BI \-F changelog-format
89Specifies the format of the changelog. See \fBdpkg\-parsechangelog\fP(1)
90for information about alternative formats.
91.TP
92.BR \-O [\fIfilename\fP]
93Print the buildinfo file to standard output (or \fIfilename\fP if specified)
94rather than to
95.IB dir / source-name _ binary-version _ arch .buildinfo
96(where \fIdir\fP is \fB..\fP by default or \fIupload-files-dir\fP
97if \fB\-u\fP was used).
98.TP
99.BI \-u upload-files-dir
100Look for the files to be uploaded in
101.I upload-files-dir
102rather than
103.B ..
104(\fBdpkg\-genbuildinfo\fP needs to find these files so that it can include
105their sizes and checksums in the \fB.buildinfo\fP file).
106.TP
107.BI \-\-always\-include\-path
108By default, the \fBBuild\-Path\fR field will only be written if the current
109directory starts with a whitelisted pattern.
110
111On Debian and derivatives the pattern matches on \fB/build/\fR at the start
112of the pathname.
113
114Specify this option to always write a \fBBuild\-Path\fR field when generating
115the \fB.buildinfo\fR.
116.TP
117.BI \-\-admindir= dir
118Change the location of the \fBdpkg\fR database. The default location is
119\fI/var/lib/dpkg\fP.
120.TP
121.B \-q
122.B dpkg\-genbuildinfo
123might produce informative messages on standard error.
124.B \-q
125suppresses these messages.
126.TP
127.BR \-? ", " \-\-help
128Show the usage message and exit.
129.TP
130.BR \-\-version
131Show the version and exit.
132.
133.SH ENVIRONMENT
134.TP
135.B DEB_BUILD_OPTIONS
136This variable can be used to enable or disable various features that affect
137the information included in the .buildinfo file, via the \fBbuildinfo\fP
138option (since dpkg 1.18.19).
139This 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
141them.
142The special feature “\fBall\fP” can be used to enable or disable all other
143features.
144The feature “\fBpath\fP” controls whether to unconditionally include the
145\fBBuild\-Path\fP field.
146.
147.SH FILES
148.TP
149.B debian/files
150The list of generated files.
151.B dpkg\-genbuildinfo
152reads the data here when producing a
153.B .buildinfo
154file.
155.
156.SH SEE ALSO
157.BR deb-buildinfo (5).