diff2patches(1)
π diff2patches π
okay bestie, so diff2patches is this lil Unix tool β it lives in section 1 of the manual, iykyk β and it does exactly one thing but it does it beautifully: it goes into a .diff.gz file and pulls out all the patches that touch stuff outside the debian/ folder. no cap.
β¨ SYNTAX β¨
diff2patches filename
diff2patches --help|--version
πΈ DESCRIPTION πΈ
okay so here's the vibe. diff2patches extracts patches from a .diff.gz which apply to files outside the debian/ directory scope. like, it's not here for debian-stuff, it's here for everything else. main character energy only.
and it's so organized about it π β a patch is created for each modified file. not one big blob, no. one per file. iconic.
each patch gets named according to the path of the modified file, with / replaced by ___, and an extension of .patch. so like the slashes get swapped out for triple underscores, cute little name glow-up, and then it gets .patch slapped on the end. periodt.
π OPTIONS π
filenameβ extract patches fromfilenamewhich apply outside thedebian/directory. that's the whole job fr fr.--helpβ output help information and exit. it's giving "let me explain myself."--versionβ output version information and exit. it's giving "who am I, what am I."
π¦ FILES π¦
debian/controlβ the existence of this file is tested before any patch is extracted. like a little vibe check at the door π. nodebian/control, no patches.debian/debian/patches/β patches are extracted to one of these directories.debian/patches/is preferred, if it exists. and ifDEB_PATCHESis present in the environment, it will override this behavior (see the βENVIRONMENT VARIABLESβ section below, bestie, I got you π).
π ENVIRONMENT VARIABLES π
DEB_PATCHESβ when defined and points to an existing directory, patches are extracted in that directory and not underdebian/nordebian/patches/. it literally overrides everything. it's the final boss π.
β SEE ALSO β
π AUTHOR π
Raphael Geissert <atomo64@gmail.com>
ok so that's the whole page, no crumbs left π β and before you go, the official vibes check: this wasdiff2patches(1)from thediff2patches(1)manual, authored by the one and only Raphael Geissert<atomo64@gmail.com>. slay, bye π«Άβ¨
π¦ 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
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms