1dpkg-genbuildinfo(1) dpkg suite dpkg-genbuildinfo(1)
2
3
4
6 dpkg-genbuildinfo - generate Debian .buildinfo files
7
9 dpkg-genbuildinfo [option...]
10
12 dpkg-genbuildinfo reads information from an unpacked and built Debian
13 source tree and from the files it has generated and generates a Debian
14 control file describing the build environment and the build artifacts
15 (.buildinfo file).
16
17 This command was introduced in dpkg 1.18.11.
18
20 --build=type
21 Specifies the build type from a comma-separated list of components.
22
23 The allowed values are:
24
25 any Generate build information including unqualified build
26 dependencies (Build-Depends) and architecture specific build
27 dependencies (Build-Depends-Arch).
28
29 all Generate build information including unqualified build
30 dependencies (Build-Depends) and architecture independent build
31 dependencies (Build-Depends-Indep).
32
33 source
34 Effectively ignored; generate build information with just the
35 unqualified build dependencies (Build-Depends).
36
37 binary
38 Generate build information with all three types of build
39 dependencies. This is an alias for any,all.
40
41 full
42 Generate build information with all three types of build
43 dependencies. This is an alias for any,all,source, and the
44 same as the default case when no build option is specified.
45
46 -ccontrolfile
47 Specifies the main source control file to read information from.
48 The default is debian/control.
49
50 -lchangelog-file
51 Specifies the changelog file to read information from. The default
52 is debian/changelog.
53
54 -ffiles-list-file
55 Specifies where is the list of files that have been produced by the
56 build, rather than using debian/files.
57
58 -Fchangelog-format
59 Specifies the format of the changelog. See dpkg-parsechangelog(1)
60 for information about alternative formats.
61
62 -O[filename]
63 Print the buildinfo file to standard output (or filename if
64 specified) rather than to dir/source-name_binary-
65 version_arch.buildinfo (where dir is .. by default or upload-files-
66 dir if -u was used).
67
68 -uupload-files-dir
69 Look for the files to be uploaded in upload-files-dir rather than
70 .. (dpkg-genbuildinfo needs to find these files so that it can
71 include their sizes and checksums in the .buildinfo file).
72
73 --always-include-kernel
74 By default, the Build-Kernel-Version field will not be written out.
75
76 Specify this option (since dpkg 1.19.0) to always write a Build-
77 Kernel-Version field when generating the .buildinfo.
78
79 --always-include-path
80 By default, the Build-Path field will only be written if the
81 current directory starts with an allowed pattern.
82
83 On Debian and derivatives the pattern matches on /build/ at the
84 start of the pathname.
85
86 Specify this option to always write a Build-Path field when
87 generating the .buildinfo.
88
89 --admindir=dir
90 Change the location of the dpkg database. The default location is
91 /var/lib/dpkg.
92
93 -q dpkg-genbuildinfo might produce informative messages on standard
94 error. -q suppresses these messages.
95
96 -?, --help
97 Show the usage message and exit.
98
99 --version
100 Show the version and exit.
101
103 DEB_BUILD_OPTIONS
104 This variable can be used to enable or disable various features
105 that affect the information included in the .buildinfo file, via
106 the buildinfo option (since dpkg 1.18.19). This option contains a
107 comma-separated list of features, prefixed with the ‘+’ or ‘-’
108 modifiers, to denote whether to enable or disable them. The
109 special feature “all” can be used to enable or disable all other
110 features. The feature “path” controls whether to unconditionally
111 include the Build-Path field.
112
113 DPKG_COLORS
114 Sets the color mode (since dpkg 1.18.5). The currently accepted
115 values are: auto (default), always and never.
116
117 DPKG_NLS
118 If set, it will be used to decide whether to activate Native
119 Language Support, also known as internationalization (or i18n)
120 support (since dpkg 1.19.0). The accepted values are: 0 and 1
121 (default).
122
124 debian/files
125 The list of generated files. dpkg-genbuildinfo reads the data here
126 when producing a .buildinfo file.
127
129 deb-buildinfo(5).
130
131
132
1331.21.8 2022-05-25 dpkg-genbuildinfo(1)