DEBDIFF-APPLY(1)
π DEBDIFF-APPLY π
okay bestie so this is debdiff-apply, living in the General Commands Manual section of the manual pages, and she is that girl β she takes a debdiff and makes it happen on a Debian source package. slay.
β¨ NAME β¨
debdiff-apply β apply a debdiff to a Debian source package π¦
πΈ SYNOPSIS πΈ
debdiff-apply [options] [orig_dsc_or_dir] [patch_file]
debdiff-apply [options] < [patch_file]
π DESCRIPTION π
So here's the vibe. debdiff-apply takes a patchfile that describes the differences between two Debian source packages, old and new, and applies it to a target Debian source package orig. it's giving glow-up, fr fr.
Now orig could either be the same as old, or it could be different. no gatekeeping, both are valid. and patchfile? she's expected to be a unified diff between two Debian source trees, exactly the kind of thing debdiff(1) normally generates. iconic behaviour.
Any changes to debian/changelog get handled specially, because changelog diffs are little menaces that produce conflicts when you apply them naively π. The exact behaviour may be tweaked in the future, so bestie... one should not rely on it. consider that a soft launch, not a promise.
And if patchfile does not apply to orig, even after all the special-casing of debian/changelog? Then no changes are made and debdiff-apply(1) will exit with a non-zero error code. periodt. no partial slayage.
π ARGUMENTS π
orig_dsc_or_dirβ the target to apply the patch to. This can either be an unpacked source tree, or a.dscfile. In the former case, the directory is modified in-place; in the latter case, a second.dscis created. Default:.patch_fileβ the patch file to apply, in the format output bydebdiff(1). Default:/dev/stdin
π OPTIONS π
-h,--helpβ show this help message and exit. the classic. π-v,--verboseβ output more information. she's chatty and we love that.-c CHANGELOG,--changelog CHANGELOGβ path todebian/changelog; default:debian/changelog-D DISTRIBUTION,--distribution DISTRIBUTIONβ distribution to use, if the patch doesn't already contain a changelog; default:experimental--replβ run the python REPL after processing. yes bestie, she's a python girlie. πβ¨--source-versionβ don't apply the patch; instead print out the version of the package that it is supposed to be applied to, or nothing if the patch does not specify a source version. lowkey just a peek, no commitment.--target-versionβ don't apply the patch; instead print out the new version of the packagedebdiff-apply(1)would generate, when the patch is applied to the the given target package, as specified by the other arguments.
π For .dsc patch targets: π
--no-cleanβ don't clean temporary directories after a failure, so you can examine what failed. forensics era π--quilt-refreshβ if the building of the new source package fails, try to refresh patches usingquilt(1)then try building it again. she tries again. resilience. π«Ά-d DIRECTORY,--directory DIRECTORYβ extract the.dscinto this directory, which won't be cleaned up afterdebdiff-apply(1)exits. If not given, then it will be extracted to a temporary directory.
π§ AUTHORS π§
debdiff-apply and this manual page were written by Ximin Luo <infinity0@debian.org> π
Both are released under the GNU General Public License, version 3 or later.
π SEE ALSO π
and that's the whole page bestie, no cap. this came out of the DEBIAN Debian Utilities corner of the world β go forth and apply those patches, you absolute icon πβ¨π
π¦ where this page comes from
- debian bookworm: devscripts 2.23.4+deb12u2 Β· GPL-2.0-or-later
- debian trixie: devscripts 2.25.15+deb13u1 Β· GPL-2.0-or-later
- epel 10: devscripts 2.25.5-1.el10_1 Β· GPL-2.0-or-later
- epel 9: devscripts 2.25.5-1.el9 Β· GPL-2.0-or-later
- fedora 43: devscripts 2.25.19-2.fc43 Β· GPL-2.0-or-later
- fedora 43: devscripts 2.25.33-1.fc43 Β· GPL-2.0-or-later
- fedora 44: devscripts 2.26.5-1.fc44 Β· GPL-2.0-or-later
- opensuse-leap 16.0: devscripts 2.22.2-160000.2.2 Β· (Artistic-1.0 OR GPL-1.0-or-later) AND Artistic-2.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND GPL-3.0-only AND SUSE-Public-Domain AND ISC
- opensuse-leap 16.0: devscripts 2.22.2-160000.2.2 Β· (Artistic-1.0 OR GPL-1.0-or-later) AND Artistic-2.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND GPL-3.0-only AND SUSE-Public-Domain AND ISC
- opensuse-leap 16.0: devscripts 2.22.2-160000.2.2 Β· (Artistic-1.0 OR GPL-1.0-or-later) AND Artistic-2.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND GPL-3.0-only AND SUSE-Public-Domain AND ISC
- opensuse-leap 16.0: devscripts 2.22.2-160000.2.2 Β· (Artistic-1.0 OR GPL-1.0-or-later) AND Artistic-2.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND GPL-3.0-only AND SUSE-Public-Domain AND ISC
- ubuntu jammy: devscripts 2.22.1ubuntu1 Β· GPL-2.0-or-later
- ubuntu jammy: devscripts 2.22.1ubuntu1.2 Β· GPL-2.0-or-later
- ubuntu noble: devscripts 2.23.7 Β· GPL-2.0-or-later
- ubuntu noble: devscripts 2.23.7ubuntu0.2 Β· GPL-2.0-or-later
- ubuntu questing: devscripts 2.25.19ubuntu2
- ubuntu resolute: devscripts 2.26.7 Β· GPL-2.0-or-later
- ubuntu stonking: devscripts 2.26.11ubuntu1 Β· GPL-2.0-or-later
- Copyright (c) 2016-2017, Ximin Luo <infinity0@debian.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms