[Rpm-maint] [rpm-software-management/rpm] RFE: support conditional patch application in %autosetup (Issue #3110)

Panu Matilainen notifications at github.com
Mon May 20 05:36:17 UTC 2024


Currently %autosetup only supports conditional patch application by either conditionalizing the patch declarations (which leads to inconsistent src.rpms). The other alternative is falling back to %autosetup -N and manual patch application with (ranged) %autopatch and/or plain %patch, both of which are error-prone.

While ideally you don't carry conditional patches, real world often disagrees. We need a better way to handle this, something that removes the need for humans to deal with individual patch numbers while preserving them all in the src.rpm. One possible idea could be supporting multiple (named) %patchlist sections that are generally applied in the order they appear in the spec, but allow conditionalizing by the name/keyword, eg `%patchlist -k s390` whose patches are only applied if %bcond s390 is true. 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/3110
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/3110 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240519/a352cac3/attachment.html>


More information about the Rpm-maint mailing list