Build additional components
dh_components [debhelper options] [--components comp[,comp,...]] [--build_stages stage[,stage,...]] [--rules_locations dir[,dir,...]]
\*(C`dh_components\*(C' is a debhelper program that is responsible for handling additional components that come from separate upstream sources. The aim is to turn each component into a \*(L"mini Debian package\*(R". It takes the following actions:
These directories contain all the component data for a given binary package. The second form only works for the first binary in a source package and is overridden by the equivalent first form.
This is a directory that contains the files specific to that component. In some ways it is like a cut-down version of the debian directory.
These are the default locations of the build stage scripts in the order of precedence with highest first. These can be overridden using the \*(C`--rules_locations\*(C'.
This file provides the \s-1DEP-5\s0 copyright stanzas for the package but without any of the component stanzas. It forms the basis for the package.copyright file.
This file provides a \s-1DEP-5\s0 fragment of the Debian copyright for this component. It will be merged into the main copyright file at package.copyright. Any duplicate \*(C`License\*(C' clauses will be shown only once.
If present this file should look like a Debian control file for the component. The package name of the binary stanza should match the component name. The \*(C`Depends\*(C', \*(C`Recommends\*(C', \*(C`Suggests\*(C', \*(C`Enhances\*(C', \*(C`Replaces\*(C', \*(C`Pre-Depends\*(C', \*(C`Conflicts\*(C', \*(C`Breaks\*(C' fields are read and turned into substitution variables. So if you have a component \*(C`X\*(C' which declares a Depends on \*(C`Y\*(C', then a substvar variable \*(C`X:Depends\*(C' will be created with the value \*(C`Y\*(C'. The source package stanza is ignored but can be used to document which build dependencies are due to the component.
If this option is listed the sequence described will be used instead of the normal one.
If this option is listed only those components listed will be considered.
If this option is listed the specified locations will be used instead of the default ones. One can use \*(C`%\*(C' to mean the component. Thus to explicitly specify the default one would set:
--rules_locations debian/components/%,debian/components,/usr/share/pkg-components/build_stages
To enable this functionality it is necessary to pass the argument \*(C`--with components\*(C' to the \*(C`dh\*(C' programa in the \*(C`debian/rules\*(C' file.
debhelper\|(1)
This program is used with debhelper.
quilt\|(1)
Nicholas Bamber <[email protected]>