#1442 [master] Doc issue in file guidelines/modules/ROOT/pages/index.adoc
Closed: Fixed by james. Opened by jankratochvil.

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.

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).

https://pagure.io/packaging-committee/pull-request/1448

Commit 224d8554 fixes this issue

Metadata
Related Pull Requests