Patch Systems
Sometimes, a maintainer needs to modify the original source. While, in the past, this was often done simply by editing the files in place and including the changes in the diff.gz
, this could make maintenance difficult when new upstream versions were released, because all the changes had to be examined and merged when necessary.
The newer source format, 3.0 (quilt), uses the quilt patch system, to allow the modifications to be broken into groups of logically separated patches, each of which deals with one change and can be sent upstream as is. These patches live in debian/patches
.
There are also packages using other patch systems, such as dpatch
. It generates and executes shell scripts that are non-standard unified diff files with a header, which nevertheless are compatible with the standard diff
utility. The debian/rules
file is modified to call dpatch apply-all
before building the binary package and dpatch deapply-all
before building the source package (and cleaning up any build byproducts). quilt
and certain other patch systems eliminate the need for special headers and use standard diff files.
Read more about this topic: Debian Build Toolchain
Famous quotes containing the words patch and/or systems:
“Whatever patch of limb
he gazes on
with unblinking eyes,
I cover up
but I want him to see it all anyway.”
—Hla Stavhana (c. 50 A.D.)
“Before anything else, we need a new age of Enlightenment. Our present political systems must relinquish their claims on truth, justice and freedom and have to replace them with the search for truth, justice, freedom and reason.”
—Friedrich Dürrenmatt (19211990)