1dpkg-gencontrol(1) dpkg utilities dpkg-gencontrol(1)
2
3
4
6 dpkg-gencontrol - generate Debian control files
7
9 dpkg-gencontrol [options]
10
12 dpkg-gencontrol reads information from an unpacked Debian source tree
13 and generates a binary package control file (which defaults to
14 debian/tmp/DEBIAN/control); during this process it will simplify the
15 relation fields.
16
17 Thus Pre-Depends, Depends, Recommends and Suggests are simplified in
18 this order by removing dependencies which are known to be true accord‐
19 ing to the stronger dependencies already parsed. It will also remove
20 any self-dependency (in fact it will remove any dependency which evalu‐
21 ates to true given the current version of the package as installed).
22 Logically it keeps the intersection of multiple dependencies on the
23 same package. The order of dependencies is preserved as best as possi‐
24 ble: if any dependency must be discarded due to another dependency
25 appearing further in the field, the superseding dependency will take
26 the place of the discarded one.
27
28 The other relation fields (Enhances, Conflicts, Breaks, Replaces and
29 Provides) are also simplified individually by computing the union of
30 the various dependencies when a package is listed multiple times in the
31 field.
32
33 dpkg-gencontrol also adds an entry for the binary package to
34 debian/files.
35
37 -vversion
38 Sets the version number of the binary package which will be gen‐
39 erated.
40
41 -Vname=value
42 Set an output substitution variable. See deb-substvars(5) for
43 discussion of output substitution.
44
45 -Tsubstvarsfile
46 Read substitution variables in substvarsfile; the default is
47 debian/substvars.
48
49 -Dfield=value
50 Override or add an output control file field.
51
52 -Ufield
53 Remove an output control file field.
54
55 -ccontrolfile
56 Specifies the main source control file to read information from.
57 The default is debian/control.
58
59 -lchangelogfile
60 Specifies the change log file to read information from. The
61 default is debian/changelog.
62
63 -ffileslistfile
64 Read or write the list of files to be uploaded here, rather than
65 using debian/files.
66
67 -Fchangelogformat
68 Specifies the format of the changelog. By default the format is
69 read from a special line near the bottom of the changelog or
70 failing that defaults to the debian standard format.
71
72 -ppackage
73 Generate information for the binary package package. If the
74 source control file lists only one binary package then this
75 option may be omitted; otherwise it is essential to select which
76 binary package's information to generate.
77
78 -nfilename
79 Assume the filename of the package will be filename instead of
80 the normal package_version_arch.deb filename.
81
82 -is, -ip, -isp
83 These options are ignored for compatibility with older versions
84 of dpkg-dev but are now deprecated. Previously they were used to
85 tell dpkg-gencontrol to include the Section and Priority fields
86 in the control file. This is now the default behaviour. If you
87 want to get the old behaviour you can use the -U option to
88 delete the fields from the control file.
89
90 -Ppackagebuilddir
91 Tells dpkg-source that the package is being built in package‐
92 builddir instead of debian/tmp. This value is used to find the
93 default value of the Installed-Size substitution variable and
94 control file field (using du), and for the default location of
95 the output file.
96
97 -O Print the control file to standard output, rather than to
98 debian/tmp/DEBIAN/control (or packagebuilddir/DEBIAN/control if
99 -P was used).
100
101 -h, --help
102 Show the usage message and exit.
103
104 --version
105 Show the version and exit.
106
108 debian/control
109 The main source control information file, giving version-inde‐
110 pendent information about the source package and the binary
111 packages it can produce.
112
113 debian/files
114 The list of generated files which are part of the upload being
115 prepared. dpkg-gencontrol adds the presumed filenames of binary
116 packages whose control files it generates here.
117
119 Copyright © 1995-1996 Ian Jackson
120 Copyright © 2000 Wichert Akkerman
121 Copyright © 2007-2008 Raphaël Hertzog
122
123 This is free software; see the GNU General Public Licence version 2 or
124 later for copying conditions. There is NO WARRANTY.
125
126
127
128Debian Project 2008-08-18 dpkg-gencontrol(1)