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/>.
26 dpkg-genbuildinfo - generate Debian .buildinfo files
36 reads information from an unpacked and built Debian source tree and
37 from the files it has generated and generates a Debian control
38 file describing the build environment and the build artifacts
41 This command was introduced in dpkg 1.18.11.
47 =item B<--build=>I<type>
49 Specifies the build I<type> from a comma-separated list of components.
51 The allowed values are:
57 Generate build information including unqualified build dependencies
58 (B<Build-Depends>) and architecture specific build dependencies
59 (B<Build-Depends-Arch>).
63 Generate build information including unqualified build dependencies
64 (B<Build-Depends>) and architecture independent build dependencies
65 (B<Build-Depends-Indep>).
69 Effectively ignored; generate build information with just the unqualified
70 build dependencies (B<Build-Depends>).
74 Generate build information with all three types of build dependencies.
75 This is an alias for B<any,all>.
79 Generate build information with all three types of build dependencies.
80 This is an alias for B<any,all,source>, and the same as the default
81 case when no build option is specified.
85 =item B<-c>I<controlfile>
87 Specifies the main source control file to read information from. The
91 =item B<-l>I<changelog-file>
93 Specifies the changelog file to read information from. The
97 =item B<-f>I<files-list-file>
99 Specifies where is the list of files that have been produced by the build,
103 =item B<-F>I<changelog-format>
105 Specifies the format of the changelog. See B<dpkg-parsechangelog>(1)
106 for information about alternative formats.
108 =item B<-O>[I<filename>]
110 Print the buildinfo file to standard output (or I<filename> if specified)
112 I<dir>B</>I<source-name>B<_>I<binary-version>B<_>I<arch>B<.buildinfo>
113 (where I<dir> is B<..> by default or I<upload-files-dir>
116 =item B<-u>I<upload-files-dir>
118 Look for the files to be uploaded in
122 (B<dpkg-genbuildinfo> needs to find these files so that it can include
123 their sizes and checksums in the B<.buildinfo> file).
125 =item B<--always-include-kernel>
127 By default, the B<Build-Kernel-Version> field will not be written out.
129 Specify this option (since dpkg 1.19.0) to always write a
130 B<Build-Kernel-Version> field when generating the B<.buildinfo>.
132 =item B<--always-include-path>
134 By default, the B<Build-Path> field will only be written if the current
135 directory starts with an allowed pattern.
137 On Debian and derivatives the pattern matches on B</build/> at the start
140 Specify this option to always write a B<Build-Path> field when generating
143 =item B<--admindir=>I<dir>
145 Change the location of the B<dpkg> database. The default location is
151 might produce informative messages on standard error.
153 suppresses these messages.
155 =item B<-?>, B<--help>
157 Show the usage message and exit.
161 Show the version and exit.
169 =item B<DEB_BUILD_OPTIONS>
171 This variable can be used to enable or disable various features that affect
172 the information included in the .buildinfo file, via the B<buildinfo>
173 option (since dpkg 1.18.19).
174 This option contains a comma-separated list of features, prefixed with the
175 ‘B<+>’ or ‘B<->’ modifiers, to denote whether to enable or disable
177 The special feature “B<all>” can be used to enable or disable all other
179 The feature “B<path>” controls whether to unconditionally include the
184 Sets the color mode (since dpkg 1.18.5).
185 The currently accepted values are: B<auto> (default), B<always> and
190 If set, it will be used to decide whether to activate Native Language Support,
191 also known as internationalization (or i18n) support (since dpkg 1.19.0).
192 The accepted values are: B<0> and B<1> (default).
200 =item B<debian/files>
202 The list of generated files.
204 reads the data here when producing a