Skip to content

Do not use obsolete %patchN #842

Description

@jplesnik

Description

%patchN is obsolete; %patch -P N should be used instead for applying patches.

If a patch is being added to a spec file for the first time, the new %patch -P N format should be used by default. If the spec file already contains existing patches, use whichever format is currently established in that file.

Benefit

Prevents introducing obsolete code into spec files and suppresses warnings such as:

rhpkg defined %patchN compatibility shims to parse the spec file. %patchN is obsolete, use %patch -P N instead.

Importance

No response

Workaround

  • There is an existing workaround that can be used until this feature is implemented.

Participation

  • I am willing to submit a pull request for this issue. (Packit team is happy to help!)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions