RPM Community Forums

Mailing List Message of <rpm-devel>

Just notice: small incompatibility between RPM 4 and 5 on %patch

From: Ralf S. Engelschall <rse+rpm-devel@rpm5.org>
Date: Fri 02 May 2008 - 11:45:40 CEST
Message-ID: <20080502094540.GA45112@engelschall.com>
Just a heads up in case you have not noticed (like me): In RPM 5 %patch
is a regular macro while in RPM 4 it was a built-in "pseudo-macro". The
two are mostly compatible, but in RPM 4 one could have written "%patch
... -P 0 1 2 3" and get %Patch0, %Patch1, %Patch2 and %Patch3 applied.
In RPM 5 only %Patch0 is applied because only the first argument is
considered. Not a major problem, but something I stumbled over currently
(I wondered why some patches were not applied under RPM 5).

                                       Ralf S. Engelschall
                                       rse@engelschall.com
                                       www.engelschall.com
Received on Fri May 2 11:48:43 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.