1 .\" dpkg manual page - dpkg-gencontrol(1)
3 .\" Copyright © 1995-1996 Ian Jackson <ijackson@chiark.greenend.org.uk>
4 .\" Copyright © 2000 Wichert Akkerman <wakkerma@debian.org>
5 .\" Copyright © 2006, 2012-2013, 2015 Guillem Jover <guillem@debian.org>
6 .\" Copyright © 2007-2008 Raphaël Hertzog <hertzog@debian.org>
8 .\" This is free software; you can redistribute it and/or modify
9 .\" it under the terms of the GNU General Public License as published by
10 .\" the Free Software Foundation; either version 2 of the License, or
11 .\" (at your option) any later version.
13 .\" This is distributed in the hope that it will be useful,
14 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
15 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 .\" GNU General Public License for more details.
18 .\" You should have received a copy of the GNU General Public License
19 .\" along with this program. If not, see <https://www.gnu.org/licenses/>.
21 .TH dpkg\-gencontrol 1 "%RELEASE_DATE%" "%VERSION%" "dpkg suite"
24 dpkg\-gencontrol \- generate Debian control files
32 reads information from an unpacked Debian source tree and generates a
33 binary package control file (which defaults to debian/tmp/DEBIAN/control);
34 during this process it will simplify the relation fields.
37 .BR Pre\-Depends ", " Depends ", " Recommends " and " Suggests
38 are simplified in this
39 order by removing dependencies which are known to be true according to the
40 stronger dependencies already parsed. It will also remove any self-dependency
41 (in fact it will remove any dependency which evaluates to true given the
42 current version of the package as installed). Logically it keeps the
43 intersection of multiple dependencies on the same package. The order
44 of dependencies is preserved as best as possible: if any dependency
45 must be discarded due to another dependency appearing further
46 in the field, the superseding dependency will take the place of the
49 The other relation fields
50 .RB ( Enhances ", " Conflicts ", " Breaks ", " Replaces " and " Provides )
51 are also simplified individually by computing the union of the various
52 dependencies when a package is listed multiple times in the field.
55 also adds an entry for the binary package to
61 Sets the version number of the binary package which will be generated.
64 Set an output substitution variable. See \fBdeb\-substvars\fP(5) for
65 discussion of output substitution.
67 .BI \-T substvars-file
68 Read substitution variables in
71 .BR debian/substvars .
72 This option can be used multiple times to read substitution variables from
73 multiple files (since dpkg 1.15.6).
76 Override or add an output control file field.
79 Remove an output control file field.
82 Specifies the main source control file to read information from. The
86 .BI \-l changelog-file
87 Specifies the changelog file to read information from. The
89 .BR debian/changelog .
91 .BI \-f files-list-file
92 Read or write the list of files to be uploaded here, rather than using
95 .BI \-F changelog-format
96 Specifies the format of the changelog. See \fBdpkg\-parsechangelog\fP(1)
97 for information about alternative formats.
100 Generate information for the binary package
102 If the source control file lists only one binary package then this
103 option may be omitted; otherwise it is essential to select which
104 binary package's information to generate.
107 Assume the filename of the package will be
109 instead of the normal package_version_arch.deb filename.
111 .BR \-is ", " \-ip ", " \-isp
112 These options are ignored for compatibility with older versions of the dpkg
113 build scripts but are now deprecated. Previously they were used to tell
114 \fBdpkg\-gencontrol\fP to include the Section and Priority fields in the
115 control file. This is now the default behaviour. If you want to
116 get the old behaviour you can use the
118 option to delete the fields from the control file.
120 .BI \-P package-build-dir
123 that the package is being built in
127 This value is used to find the default value of the
129 substitution variable and control file field (using
131 and for the default location of the output file.
133 .BR \-O [\fIfilename\fP]
134 Print the control file to standard output (or \fIfilename\fP if specified,
135 since dpkg 1.17.2), rather than to
136 .B debian/tmp/DEBIAN/control
138 .IB package-build-dir /DEBIAN/control
143 .BR \-? ", " \-\-help
144 Show the usage message and exit.
147 Show the version and exit.
152 The main source control information file, giving version-independent
153 information about the source package and the binary packages it can
157 The list of generated files which are part of the upload being
160 adds the presumed filenames of binary packages whose control files it
164 .BR deb\-substvars (5),
165 .BR deb\-src\-control (5),
166 .BR deb\-changelog (5),
167 .BR deb\-control (5).