.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "dpkg-gencontrol 1" .TH dpkg-gencontrol 1 2024-01-19 1.22.3 "dpkg suite" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME dpkg\-gencontrol \- generate Debian control files .SH SYNOPSIS .IX Header "SYNOPSIS" \&\fBdpkg-gencontrol\fR [\fIoption\fR...] .SH DESCRIPTION .IX Header "DESCRIPTION" \&\fBdpkg-gencontrol\fR reads information from an unpacked Debian source tree and generates a binary package control file (which defaults to debian/tmp/DEBIAN/control); during this process it will simplify the relation fields. .PP Thus \&\fBPre-Depends\fR, \fBDepends\fR, \fBRecommends\fR and \fBSuggests\fR are simplified in this order by removing dependencies which are known to be true according to the stronger dependencies already parsed. It will also remove any self-dependency (in fact it will remove any dependency which evaluates to true given the current version of the package as installed). Logically it keeps the intersection of multiple dependencies on the same package. The order of dependencies is preserved as best as possible: if any dependency must be discarded due to another dependency appearing further in the field, the superseding dependency will take the place of the discarded one. .PP The other relation fields (\fBEnhances\fR, \fBConflicts\fR, \fBBreaks\fR, \fBReplaces\fR and \fBProvides\fR) are also simplified individually by computing the union of the various dependencies when a package is listed multiple times in the field. .PP \&\fBdpkg-gencontrol\fR also adds an entry for the binary package to \&\fBdebian/files\fR. .SH OPTIONS .IX Header "OPTIONS" .IP \fB\-v\fR\fIversion\fR 4 .IX Item "-vversion" Sets the version number of the binary package which will be generated. .IP \fB\-V\fR\fIname\fR\fB=\fR\fIvalue\fR 4 .IX Item "-Vname=value" Set an output substitution variable. See \fBdeb\-substvars\fR\|(5) for discussion of output substitution. .IP \fB\-T\fR\fIsubstvars-file\fR 4 .IX Item "-Tsubstvars-file" Read substitution variables in \&\fIsubstvars-file\fR; the default is \&\fBdebian/substvars\fR. This option can be used multiple times to read substitution variables from multiple files (since dpkg 1.15.6). .IP \fB\-D\fR\fIfield\fR\fB=\fR\fIvalue\fR 4 .IX Item "-Dfield=value" Override or add an output control file field. .IP \fB\-U\fR\fIfield\fR 4 .IX Item "-Ufield" Remove an output control file field. .IP \fB\-c\fR\fIcontrol-file\fR 4 .IX Item "-ccontrol-file" Specifies the main source control file to read information from. The default is \&\fBdebian/control\fR. .IP \fB\-l\fR\fIchangelog-file\fR 4 .IX Item "-lchangelog-file" Specifies the changelog file to read information from. The default is \&\fBdebian/changelog\fR. .IP \fB\-f\fR\fIfiles-list-file\fR 4 .IX Item "-ffiles-list-file" Read or write the list of files to be uploaded here, rather than using \&\fBdebian/files\fR. .IP \fB\-F\fR\fIchangelog-format\fR 4 .IX Item "-Fchangelog-format" Specifies the format of the changelog. See \fBdpkg\-parsechangelog\fR\|(1) for information about alternative formats. .IP \fB\-p\fR\fIpackage\fR 4 .IX Item "-ppackage" Generate information for the binary package \&\fIpackage\fR. If the source control file lists only one binary package then this option may be omitted; otherwise it is essential to select which binary package's information to generate. .IP \fB\-n\fR\fIfilename\fR 4 .IX Item "-nfilename" Assume the filename of the package will be \&\fIfilename\fR instead of the normal package_version_arch.deb filename. .IP "\fB\-is\fR, \fB\-ip\fR, \fB\-isp\fR" 4 .IX Item "-is, -ip, -isp" These options are ignored for compatibility with older versions of the dpkg build scripts but are now deprecated. Previously they were used to tell \&\fBdpkg-gencontrol\fR to include the Section and Priority fields in the control file. This is now the default behavior. If you want to get the old behavior you can use the \&\fB\-U\fR option to delete the fields from the control file. .IP \fB\-P\fR\fIpackage-build-dir\fR 4 .IX Item "-Ppackage-build-dir" Scan \&\fIpackage-build-dir\fR instead of \&\fBdebian/tmp\fR. This value is used to find the default value of the \&\fBInstalled-Size\fR substitution variable and control file field, and for the default location of the output file. .IP \fB\-O\fR[\fIfilename\fR] 4 .IX Item "-O[filename]" Print the control file to standard output (or \fIfilename\fR if specified, since dpkg 1.17.2), rather than to \&\fBdebian/tmp/DEBIAN/control\fR (or \&\fIpackage-build-dir\fR\fB/DEBIAN/control\fR if \&\fB\-P\fR was used). .IP "\fB\-?\fR, \fB\-\-help\fR" 4 .IX Item "-?, --help" Show the usage message and exit. .IP \fB\-\-version\fR 4 .IX Item "--version" Show the version and exit. .SH ENVIRONMENT .IX Header "ENVIRONMENT" .IP \fBDPKG_COLORS\fR 4 .IX Item "DPKG_COLORS" Sets the color mode (since dpkg 1.18.5). The currently accepted values are: \fBauto\fR (default), \fBalways\fR and \&\fBnever\fR. .IP \fBDPKG_NLS\fR 4 .IX Item "DPKG_NLS" If set, it will be used to decide whether to activate Native Language Support, also known as internationalization (or i18n) support (since dpkg 1.19.0). The accepted values are: \fB0\fR and \fB1\fR (default). .SH FILES .IX Header "FILES" .IP \fBdebian/control\fR 4 .IX Item "debian/control" The main source control information file, giving version-independent information about the source package and the binary packages it can produce. .IP \fBdebian/files\fR 4 .IX Item "debian/files" The list of generated files which are part of the upload being prepared. \&\fBdpkg-gencontrol\fR adds the presumed filenames of binary packages whose control files it generates here. .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fBdeb\-substvars\fR\|(5), \&\fBdeb\-src\-control\fR\|(5), \&\fBdeb\-changelog\fR\|(5), \&\fBdeb\-control\fR\|(5).