Steps of a Build Sequence
Explore the Debian build system's step-by-step process, including build, install, and binary sequences divided into architecture-specific parts. Understand how to list build steps, override default commands in debian/rules, and add extensions to customize package builds. This lesson helps you grasp the practical mechanics behind creating Debian packages with flexibility and control.
We'll cover the following...
Build steps
The build, install, and binary phases of the build sequence are subdivided into
sequences called build-indep, build-arch, install-indep,
install-arch, binary-indep, and binary-arch. When a package with all architecture is being built, the -indep versions are executed.
Otherwise, the -arch variants are run. In source packages that produce multiple binary packages, some of which are of the all architecture and some of which are architecture specific, this distinction can be used to override some steps with custom actions for only one of the variants.
Each sequence consists of several steps, which correspond to invocations
of dh_* tools.