Seconded: Raphaƫl Hertzog <hertzog@debian.org>
Seconded: Emilio Pozuelo Monfort <pochu27@gmail.com>
Closes: #509933
+ * Policy: Only dpkg-gencontrol supports variable substitutions
+ Wording: Charles Plessy <plessy@debian.org>
+ Seconded: Emilio Pozuelo Monfort <pochu@debian.org>
+ Seconded: Guillem Jover <guillem@debian.org>
+ Closes: #589609
* Set the version of the Perl Policy to match the version of the Policy
package.
* Explain the Perl module package naming policy more explicitly and
<heading>Variable substitutions: <file>debian/substvars</file></heading>
<p>
- When <prgn>dpkg-gencontrol</prgn>,
- <prgn>dpkg-genchanges</prgn> and <prgn>dpkg-source</prgn>
- generate control files, they perform variable substitutions
- on their output just before writing it. Variable
+ When <prgn>dpkg-gencontrol</prgn>
+ generates <qref id="binarycontrolfiles">binary package control
+ files</qref> (<file>DEBIAN/control</file>), it performs variable
+ substitutions on its output just before writing it. Variable
substitutions have the form <tt>${<var>variable</var>}</tt>.
The optional file <file>debian/substvars</file> contains
variable substitutions to be used; variables can also be set
directly from <file>debian/rules</file> using the <tt>-V</tt>
- option to the source packaging commands, and certain
- predefined variables are also available.
+ option to the source packaging commands, and certain predefined
+ variables are also available.
</p>
<p>
to <prgn>dpkg-divert</prgn> when creating or removing diversions and
must not use <tt>--local</tt>.
</item>
+<tag>4.10</tag>
+ <item>Only <prgn>dpkg-gencontrol</prgn> supports variable substitution.
+ <prgn>dpkg-genchanges</prgn> (for <file>*.changes</file>)
+ and <prgn>dpkg-source</prgn> (for <file>*.dsc</file>) do not.
+ </item>
<tag>7.1</tag>
<item>Architecture restrictions and wildcards are also allowed in binary
package relationships provided that the binary package is not