On 3/31/23 18:49, Ron Olson wrote:
One thing to note is that the new format doesn’t work with EPEL
releases; I had to revert to the %patchN style for them.
The following bit from
https://rpm-software-management.github.io/rpm/manual/spec.html was
already quoted in this thread, but:
%patch is used to apply patches on top of the just unpacked
pristine sources. Historically it supported multiple strange
syntaxes and buggy behaviors, which are no longer
maintained. To apply patch number 1, the following are
recognized:
%patch 1 (since rpm >= 4.18)
%patch -P1 (all rpm versions)
%patch1 (deprecated, do not use)
For new packages, the positional argument form 1) is
preferred. For maximal compatibility use 2). Both forms can
be used to apply several patches at once, in the order they
appear on the line. The third form where the number is a
part of the directive is deprecated and should not be used
anymore.
In other words, if you need to care about compatibility, use -PN.
- Panu -