An example shows there
%patch0 -p1
but when I use it I get
error: %patchN is obsolete, use %patch N (or %patch -P N): %patch0 -p1
with
rpm-build-4.20.0-1.fc41.x86_64
I even do not know how to do it, as the suggested syntax uses "patch -p0" (and not "patch -p1").
Yeah, this needs to be updated, but we also should be shifting things to %autosetup -p1 instead.
%autosetup -p1
Note that the suggestion in the error message is correct (but maybe incomplete) - the flags are case sensitive, so -P and -p are not the same, and you would actually need both (i.e. %patch -P0 -p1 to apply patch number 0 with patchlevel 1).
-P
-p
%patch -P0 -p1
https://pagure.io/packaging-committee/pull-request/1448
Commit 224d855 fixes this issue
Log in to comment on this ticket.