deb-substvars - Debian source substitution variables
substvars
Before dpkg-source, dpkg-gencontrol and dpkg-genchanges write their
control information (to the source control file .dsc for dpkg-source
and to standard output for dpkg-gencontrol and dpkg-genchanges) they
perform some variable substitutions on the output file.
A variable substitution has the form ${variable-name}. Variable names
consist of alphanumerics, hyphens and colons and start with an
alphanumeric. Variable substitutions are performed repeatedly until
none are left; the full text of the field after the substitution is
rescanned to look for more substitutions.
After all the substitutions have been done each occurrence of the
string ${} (which is not a legal substitution) is replaced with a $
sign.
While variable substitution is done on all control fields, some of
those fields are used and needed during the build when the substitution
did not yet occur. That's why you can't use variables in the Package,
Source and Architecture fields.
Variable substitution happens on the content of the fields after they
have been parsed, thus if you want a variable to expand over multiple
lines you do not have to include a space after the newline. This is
done implicitly when the field is output. For example, if the variable
${Description} is set to "foo is bar.${Newline}foo is great." and if
you have the following field:
Description: foo application
${Description}
.
More text.
It will result in:
Description: foo application
foo is bar.
foo is great.
.
More text.
Variables can be set using the -V common option. They can be also
specified in the file debian/substvars (or whatever other file is
specified using the -T option). This file consists of lines of the form
name=value. Trailing whitespace on each line, blank lines, and lines
starting with a # symbol (comments) are ignored.
Additionally, the following standard variables are available:
Arch The current host architecture (i.e. the architecture the package
is being built for, the equivalent of DEB_HOST_ARCH).
source:Version
The source package version.
source:Upstream-Version
The upstream source package version, including the Debian
version epoch if any.
binary:Version
The binary package version (which may differ from source:Version
in a binNMU for example).
Source-Version
The source package version (from the changelog file). This
variable is now deprecated as its meaning is different from its
function, please use the source:Version or binary:Version as
appropriate.
Installed-Size
The approximate total size of the package's installed files.
This value is copied into the corresponding control file field;
setting it will modify the value of that field. If this variable
is not set dpkg-gencontrol will compute the default value by
accumulating the size of each regular file and symlink rounded
to 1 KiB used units, and a baseline of 1 KiB for any other
filesystem object type.
Note: Take into account that this can only ever be an
approximation, as the actual size used on the installed system
will depend greatly on the filesystem used and its parameters,
which might end up using either more or less space than the
specified in this field.
Extra-Size
Additional disk space used when the package is installed. If
this variable is set its value is added to that of the
Installed-Size variable (whether set explicitly or using the
default value) before it is copied into the Installed-Size
control file field.
F:fieldname
The value of the output field fieldname (which must be given in
the canonical capitalisation). Setting these variables has no
effect other than on places where they are expanded explicitly.
Format The .changes file format version generated by this version of
the source packaging scripts. If you set this variable the
contents of the Format field in the .changes file will change
too.
Newline, Space, Tab
These variables each hold the corresponding character.
shlibs:dependencyfield
Variable settings with names of this form are generated by
dpkg-shlibdeps.
dpkg:Upstream-Version
The upstream version of dpkg.
dpkg:Version
The full version of dpkg.
If a variable is referred to but not defined it generates a warning and
an empty value is assumed.
debian/substvars
List of substitution variables and values.
dpkg(1), dpkg-genchanges(1), dpkg-gencontrol(1), dpkg-shlibdeps(1), dpkg-source(1).
Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.
Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.
Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.
Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.
The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.
Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.
Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.
Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.