DPATCH(7)
π DPATCH(7) β the dpatch manual, bestie edition π
okay so you're looking at a page from the dpatch manual (section 7, we're fancy like that) and honestly? it's giving legacy. but let's go, because you deserve to know.
β¨ NAME β¨
debian/patches/script.dpatch β a patch that applies itself, no cap π«Ά
πΈ SYNOPSIS πΈ
debian/patches/script.dpatch -patch [directory]
debian/patches/script.dpatch -unpatch [directory]
debian/patches/script.dpatch -pkg-custom [directory]
π¦ DESCRIPTION π¦
so a dpatch is literally just a program that modifies the source tree inside a given directory. how it does that? entirely up to whoever wrote it, bestie. total creative freedom, main character energy. it can be a lil script that calls patch(1) with the right options, or a whole complicated perl script doing deep arcane magic, or honestly anything else your heart desires. π
the only requirement β and she is strict about this one β is that it MUST accept the -patch and -unpatch options, followed by the destination (aka working) directory, when one is specified. note the "when specified" because for compatibility reasons, that second argument is only present when a working directory was explicitly set with dpatch --workdir. iykyk. π
and for some of the dpatch(1) features to actually work, your script should follow a common style. there should be a line near the top of the file that looks exactly like this:
filename -- author <email>
and one or more lines that look like this:
# DP: description
these get used by things like dpatch cat, for example. so like, do it. it's not optional-optional but it's the vibe. π
β οΈ WARNING β οΈ
dpatchis deprecated, bestie. please switch to the3.0 (quilt)Debian source package format instead. π
there's a short guide on how to do that over at http://wiki.debian.org/Projects/DebSrc3.0#FAQ β go read it, i'm begging.
π EXAMPLES π
you can find dpatch examples chilling under /usr/share/doc/dpatch/examples/. go look, they're right there. π
π AUTHOR π
this manual page was written by Gergely Nagy. thank you for your service. π«Ά
π SEE ALSO π
and that's the whole page, babe β¨ this was DPATCH 2, dated Dec 13 2011 β oldie but a goodie, slay, periodt. π
πΈ
π¦ where this page comes from
- ubuntu jammy: dpatch 2.0.41 Β· GPL-2.0-or-later
- Copyright (C) 2003 Gergely Nagy <algernon@bonehunter.rulez.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms