[Rpm-maint] [rpm-software-management/rpm] RFE: support conditional patch application in %autosetup (Issue #3110)
Bernhard Rosenkraenzer
notifications at github.com
Sun May 26 22:32:41 UTC 2024
Adding the use case that was the reason for #3109: It would be good to have a way to apply different groups of patches at different times in the spec file, and in different locations.
For example, when building something that insists on bundling internal modified copies of various libraries (e.g. chromium -- and yes I agree they should be sent to hell for internalizing half an OS) and keeping patches in sync with the corresponding system libraries, or when dealing with something like wine-staging (where it may be necessary to apply some patches only after the staging script has run).
e.g. in wine-staging
```
%autosetup -p1
[regular patches are applied]
./staging/patchinstall.py
%autopatch -p1 -k staging
[patches specific to -staging applied now]
```
or for a chromium-like example
```
%autosetup -p1
[regular patches are applied]
cd third_party/libevent
%autopatch -p1 -k libevent
[libevent patches are applied]
```
Of course in the latter example, you could also modify the patch files to prefix `third_party/libevent` to all the files being patched, but that would make it harder to keep the patches in sync with the system libevent package.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/3110#issuecomment-2132416454
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/3110/2132416454 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240526/4f47708a/attachment.html>
More information about the Rpm-maint
mailing list