[Rpm-maint] [rpm-software-management/rpm] Document %setup and %patch, officially deprecating %patchN (PR #2352)
Panu Matilainen
notifications at github.com
Tue Jan 17 13:24:17 UTC 2023
@pmatilai commented on this pull request.
> +-c create the build directory (and change to it) before unpacking
+-D do not delete the build directory prior to unpacking (used
+ when more than one source is to be unpacked with `-a` or `-b`)
+-n DIR set the name of build directory (default is `%{name}-%{version}`)
+-T skip the default unpacking of the first source (used with
+ `-a` or `-b`)
+-q operate quietly
+```
+
+#### %patch
+
+`%patch [options] [arguments]`
+
+`%patch` is used to apply patches on top of the just unpacked pristine sources.
+Historically it supports multiple strange syntaxes which are nowadays
+deprecated. To apply patch number 1, the main syntaxes are:
See https://github.com/rpm-software-management/rpm/blob/3e8c997a281031b40dd8412d745c8b0e4580c788/build/parsePrep.c#L379 for starters, but it's the combos that really kill: "%patch 1" would try to apply patch number 0 and 1. And so on.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2352#discussion_r1072203006
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/2352/review/1251546128 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20230117/f77453f1/attachment.html>
More information about the Rpm-maint
mailing list