Re: Mass Package Change: Turn deprecated %patchN syntax into %patch -PN

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Neal Gompa wrote:

> On Mon, May 6, 2024 at 8:17 AM Leon Fauster via devel
> <devel@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
>>
>> Am 06.05.24 um 13:56 schrieb Florian Festi:
>> > Hi everyone,
>> >
>> > RPM has deprecated the %patchN syntax in favor of %patch -PN where N is
>> > the patch number for a year now. See the RPM documentation for more
>> > information [1]. In current RPM versions, this syntax only emits a
>> > deprecation warning, but support for this syntax has been removed
>> > completely in the upcoming RPM 4.20 release. As it will be added in
>> > Fedora soon [2] it is time to switch over to the new syntax now.
>> >
>> > There are around 1800 packages that still use the old syntax. Later
>> > this week/next week, we will run this script [3] over the affected
>> > packages
>> > [4][5] to update them to the modern patch syntax. For example, the
>> > script will change:
>> >
>> > %patch0 -p1 → %patch -P0 -p1
>> > %patch0005 -p2 → %patch -P0005 -p2
>> >
>>
>>
>> Is this supported by rpm in RHEL8/9 (EPEL8/9 builds)?
>>
> 
> Yes. It's been supported for a very long time.

%patch -P is already documented in the 1997 First Edition of Maximum RPM. 
Here is the link in the 2000 online edition:
https://ftp.osuosl.org/pub/rpm/max-rpm/s1-rpm-inside-macros.html#S3-RPM-INSIDE-WHICH-PATCH-TAG

        Kevin Kofler
--
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux