[Rpm-maint] [rpm-software-management/rpm] Deprecate numberless %patch and %patchN (PR #1981)

Panu Matilainen notifications at github.com
Thu Mar 31 11:28:17 UTC 2022


Like the code says, "use %patch N (or %patch -P N)"

`%patch N [...]` is the saner variant, because there always needs to be at least one patch number specified so the number is a required argument, options are ... just options. Unfortunately `-P N` is the more compatible variant, due to the wacko semantics removed in the first commit.

It's fun. Digging up Fedora specs turns up for example this: `%patch -p1 -P 0 1 2 3 4`. Which ends up applying all three four patches, but one of them through the -P option and three as arguments. Makes a whole lot of sense, not :D

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1981#issuecomment-1084452111
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/1981/c1084452111 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220331/0f5dac5a/attachment-0001.html>


More information about the Rpm-maint mailing list