Linux "dpkg-genbuildinfo" Command Line Options and Examples
generate Debian .buildinfo files

dpkg-genbuildinfo reads information from an unpacked and built Debian source tree and from the files it has generated and generates a Debian control file describing the build environment and the build artifacts (.buildinfo file). This command was introduced in dpkg 1.


Usage:

dpkg-genbuildinfo [option...]




Command Line Options:

--build
Specifies the build type from a comma-separated list of components.The allowed values are:any Generate build information including unqualified build dependencies (Build-Depends) and architecture specific builddependencies (Build-Depends-Arch).all Generate build information including unqualified build dependencies (Build-Depends) and architecture independent builddependencies (Build-Depends-Indep).source Effectively ignored; generate build information with just the unqualified build dependencies (Build-Depends).binary Generate build information with all three types of build dependencies. This is an alias for any,all.full Generate build information with all three types of build dependencies. This is an alias for any,all,source, and thesame as the default case when no build option is specified.
dpkg-genbuildinfo --build ...
-ccontrolfile
Specifies the main source control file to read information from. The default is debian/control.
dpkg-genbuildinfo -ccontrolfile ...
-lchangelog-file
Specifies the changelog file to read information from. The default is debian/changelog.
dpkg-genbuildinfo -lchangelog-file ...
-ffiles-list-file
Specifies where is the list of files that have been produced by the build, rather than using debian/files.
dpkg-genbuildinfo -ffiles-list-file ...
-Fchangelog-format
Specifies the format of the changelog. See dpkg-parsechangelog(1) for information about alternative formats.
dpkg-genbuildinfo -Fchangelog-format ...
-O[filename]
Print the buildinfo file to standard output (or filename if specified) rather than to dir/source-name_binary-version_arch.buildinfo (where dir is .. by default or upload-files-dir if -u was used).
dpkg-genbuildinfo -O[filename] ...
-uupload-files-dir
Look for the files to be uploaded in upload-files-dir rather than .. (dpkg-genbuildinfo needs to find these files so that itcan include their sizes and checksums in the .buildinfo file).
dpkg-genbuildinfo -uupload-files-dir ...
--always-include-kernel
By default, the Build-Kernel-Version field will not be written out.Specify this option (since dpkg 1.19.0) to always write a Build-Kernel-Version field when generating the .buildinfo.
dpkg-genbuildinfo --always-include-kernel ...
--always-include-path
By default, the Build-Path field will only be written if the current directory starts with a whitelisted pattern.On Debian and derivatives the pattern matches on /build/ at the start of the pathname.Specify this option to always write a Build-Path field when generating the .buildinfo.
dpkg-genbuildinfo --always-include-path ...
--admindir
Change the location of the dpkg database. The default location is /var/lib/dpkg.
dpkg-genbuildinfo --admindir ...
-q
dpkg-genbuildinfo might produce informative messages on standard error. -q suppresses these messages.
dpkg-genbuildinfo -q ...
-?
Show the usage message and exit.
dpkg-genbuildinfo -? ...
--version
Show the version and exit.ENVIRONMENTDEB_BUILD_OPTIONSThis variable can be used to enable or disable various features that affect the information included in the .buildinfo file,via the buildinfo option (since dpkg 1.18.19). This option contains a comma-separated list of features, prefixed with the ‘+’or ‘-’ modifiers, to denote whether to enable or disable them. The special feature “all” can be used to enable or disable allother features. The feature “path” controls whether to unconditionally include the Build-Path field.FILESdebian/filesThe list of generated files. dpkg-genbuildinfo reads the data here when producing a .buildinfo file.
dpkg-genbuildinfo --version ...