#1442 [master] Doc issue in file guidelines/modules/ROOT/pages/index.adoc
Closed: Fixed 9 days ago by james. Opened 2 months ago 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).

Commit 224d855 fixes this issue

Log in to comment on this ticket.

Metadata
Related Pull Requests
  • #1448 Merged 9 days ago