Re: %patchN deprecated?

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

 



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 -
_______________________________________________
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