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/3...@github.com>
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to