250 lines
6.6 KiB
HTML
250 lines
6.6 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of dpkg-gencontrol</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>dpkg-gencontrol</H1>
|
|
Section: dpkg suite (1)<BR>Updated: 2020-03-23<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
dpkg-gencontrol - generate Debian control files
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>dpkg-gencontrol</B>
|
|
|
|
[<I>option</I>...]
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<B>dpkg-gencontrol</B>
|
|
|
|
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.
|
|
<P>
|
|
Thus
|
|
<B>Pre-Depends</B>, <B>Depends</B>, <B>Recommends</B> and <B>Suggests</B>
|
|
|
|
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.
|
|
<P>
|
|
The other relation fields
|
|
(<B>Enhances</B>, <B>Conflicts</B>, <B>Breaks</B>, <B>Replaces</B> and <B>Provides</B>)
|
|
|
|
are also simplified individually by computing the union of the various
|
|
dependencies when a package is listed multiple times in the field.
|
|
<P>
|
|
<B>dpkg-gencontrol</B>
|
|
|
|
also adds an entry for the binary package to
|
|
<B>debian/files</B>.
|
|
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1"><B>-v</B><I>version</I>
|
|
|
|
<DD>
|
|
Sets the version number of the binary package which will be generated.
|
|
<DT id="2"><B>-V</B><I>name</I><B>=</B><I>value</I>
|
|
|
|
<DD>
|
|
Set an output substitution variable. See <B><A HREF="/cgi-bin/man/man2html?5+deb-substvars">deb-substvars</A></B>(5) for
|
|
discussion of output substitution.
|
|
<DT id="3"><B>-T</B><I>substvars-file</I>
|
|
|
|
<DD>
|
|
Read substitution variables in
|
|
<I>substvars-file</I>;
|
|
|
|
the default is
|
|
<B>debian/substvars</B>.
|
|
|
|
This option can be used multiple times to read substitution variables from
|
|
multiple files (since dpkg 1.15.6).
|
|
<DT id="4"><B>-D</B><I>field</I><B>=</B><I>value</I>
|
|
|
|
<DD>
|
|
Override or add an output control file field.
|
|
<DT id="5"><B>-U</B><I>field</I>
|
|
|
|
<DD>
|
|
Remove an output control file field.
|
|
<DT id="6"><B>-c</B><I>control-file</I>
|
|
|
|
<DD>
|
|
Specifies the main source control file to read information from. The
|
|
default is
|
|
<B>debian/control</B>.
|
|
|
|
<DT id="7"><B>-l</B><I>changelog-file</I>
|
|
|
|
<DD>
|
|
Specifies the changelog file to read information from. The
|
|
default is
|
|
<B>debian/changelog</B>.
|
|
|
|
<DT id="8"><B>-f</B><I>files-list-file</I>
|
|
|
|
<DD>
|
|
Read or write the list of files to be uploaded here, rather than using
|
|
<B>debian/files</B>.
|
|
|
|
<DT id="9"><B>-F</B><I>changelog-format</I>
|
|
|
|
<DD>
|
|
Specifies the format of the changelog. See <B><A HREF="/cgi-bin/man/man2html?1+dpkg-parsechangelog">dpkg-parsechangelog</A></B>(1)
|
|
for information about alternative formats.
|
|
<DT id="10"><B>-p</B><I>package</I>
|
|
|
|
<DD>
|
|
Generate information for the binary package
|
|
<I>package</I>.
|
|
|
|
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.
|
|
<DT id="11"><B>-n</B><I>filename</I>
|
|
|
|
<DD>
|
|
Assume the filename of the package will be
|
|
<I>filename</I>
|
|
|
|
instead of the normal package_version_arch.deb filename.
|
|
<DT id="12"><B>-is</B>, <B>-ip</B>, <B>-isp</B>
|
|
|
|
<DD>
|
|
These options are ignored for compatibility with older versions of the dpkg
|
|
build scripts but are now deprecated. Previously they were used to tell
|
|
<B>dpkg-gencontrol</B> to include the Section and Priority fields in the
|
|
control file. This is now the default behaviour. If you want to
|
|
get the old behaviour you can use the
|
|
<B>-U</B>
|
|
|
|
option to delete the fields from the control file.
|
|
<DT id="13"><B>-P</B><I>package-build-dir</I>
|
|
|
|
<DD>
|
|
Tells
|
|
<B>dpkg-source</B>
|
|
|
|
that the package is being built in
|
|
<I>package-build-dir</I>
|
|
|
|
instead of
|
|
<B>debian/tmp</B>.
|
|
|
|
This value is used to find the default value of the
|
|
<B>Installed-Size</B>
|
|
|
|
substitution variable and control file field (using
|
|
<B>du</B>),
|
|
|
|
and for the default location of the output file.
|
|
<DT id="14"><B>-O</B>[<I>filename</I>]
|
|
|
|
<DD>
|
|
Print the control file to standard output (or <I>filename</I> if specified,
|
|
since dpkg 1.17.2), rather than to
|
|
<B>debian/tmp/DEBIAN/control</B>
|
|
|
|
(or
|
|
<I>package-build-dir</I><B>/DEBIAN/control</B>
|
|
|
|
if
|
|
<B>-P</B>
|
|
|
|
was used).
|
|
<DT id="15"><B>-?</B>, <B>--help</B>
|
|
|
|
<DD>
|
|
Show the usage message and exit.
|
|
<DT id="16"><B>--version</B>
|
|
|
|
<DD>
|
|
Show the version and exit.
|
|
</DL>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>ENVIRONMENT</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="17"><B>DPKG_COLORS</B>
|
|
|
|
<DD>
|
|
Sets the color mode (since dpkg 1.18.5).
|
|
The currently accepted values are: <B>auto</B> (default), <B>always</B> and
|
|
<B>never</B>.
|
|
<DT id="18"><B>DPKG_NLS</B>
|
|
|
|
<DD>
|
|
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: <B>0</B> and <B>1</B> (default).
|
|
</DL>
|
|
<A NAME="lbAG"> </A>
|
|
<H2>FILES</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="19"><B>debian/control</B>
|
|
|
|
<DD>
|
|
The main source control information file, giving version-independent
|
|
information about the source package and the binary packages it can
|
|
produce.
|
|
<DT id="20"><B>debian/files</B>
|
|
|
|
<DD>
|
|
The list of generated files which are part of the upload being
|
|
prepared.
|
|
<B>dpkg-gencontrol</B>
|
|
|
|
adds the presumed filenames of binary packages whose control files it
|
|
generates here.
|
|
</DL>
|
|
<A NAME="lbAH"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?5+deb-substvars">deb-substvars</A></B>(5),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?5+deb-src-control">deb-src-control</A></B>(5),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?5+deb-changelog">deb-changelog</A></B>(5),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?5+deb-control">deb-control</A></B>(5).
|
|
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="21"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="22"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="23"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="24"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="25"><A HREF="#lbAF">ENVIRONMENT</A><DD>
|
|
<DT id="26"><A HREF="#lbAG">FILES</A><DD>
|
|
<DT id="27"><A HREF="#lbAH">SEE ALSO</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:11 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|