DH_DPATCH_PATCH(1)

πŸ“¦ version 2.0.41, in ubuntu jammy

πŸ’– dh_dpatch_patch β€” the manual page, bestie edition πŸ’–

okay so this is the dh_dpatch_patch page from the Debhelper manual, and I'm about to make it make sense for you. no cap, it's short, it's sweet, it's a whole mood. πŸŽ€


✨ NAME ✨

dh_dpatch_patch β€” the little helper that applies every patch listed in debian/patches/00list for you. it's giving "personal assistant but for patches". πŸ’…


🌸 SYNOPSIS 🌸

dh_dpatch_patch [debhelper options]

that's it. that's the whole vibe. you pass it whatever debhelper options you want, and it does the thing.


πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea, bestie: dh_dpatch_patch literally just calls dpatch apply-all. that's the entire job description. 🫢

once it does that, every single patch listed in debian/patches/00list gets applied in the current directory. all of them. no cherry-picking, no "oh maybe just this one". the whole list, periodt. πŸ‘‘

and here's the iconic part: the command does not fail if the patches have already been applied. so if you run it twice, or your patches were already sitting there all cozy, it's not gonna yell at you. it's very forgiving. main character energy fr fr. ✨


πŸ“ EXAMPLES πŸ“

most of the time you're not even calling dh_dpatch_patch directly β€” it gets called indirectly in a rules file, through the dh command. like so:

%:
    dh --with dpatch $@

but you can also call it directly at the start of your build rule (or your configure rule, whichever one you're doing). look at this:

build:
    dh_dpatch_patch
    ./configure
    $(MAKE)

see how it just chills at the top, does its patch thing, and then you configure and make? yeah. that's the order. patches first, always. πŸ’–


🌈 SEE ALSO 🌈

and just so you know: this program is meant to be used together with debhelper. they're a package deal. a duo. you don't split them up. 😭


πŸ‘‘ AUTHOR πŸ‘‘

Hideki Yamane <henrich@debian.or.jp>, who stole it from dh_dpatch_quilt, which was written by Raphael Hertzog <hertzog@debian.org>.

shoutout to both of them honestly, legends only. πŸ™ˆ


and that's the whole page, bestie!! 🧚 written up as perl v5.30.3, dated 2020-09-17, and it's the DH_DPATCH_PATCH(1) page from the Debhelper manual. go forth and apply those patches. slay. πŸ’œ

πŸ“¦ where this page comes from