[Rpm-maint] [rpm-software-management/rpm] %autopatch -m/-M fall through silently if no patches are in range (Issue #3093)
Adam Williamson
notifications at github.com
Mon Nov 18 17:16:49 UTC 2024
Note, there is a pattern here that seems valid to me, which triggers this warning. See [Fedora's evolution-data-server package](https://src.fedoraproject.org/rpms/evolution-data-server/blob/rawhide/f/evolution-data-server.spec). An edited extract:
```
# 0-99: General patches
# 100-199: Flatpak-specific patches
# https://gitlab.gnome.org/GNOME/evolution-data-server/-/merge_requests/144
Patch100: Make-DBUS_SERVICES_PREFIX-runtime-configurable.patch
...
%prep
%autosetup -p1 -S gendiff -N
# General patches
%autopatch -p1 -m 0 -M 99
# Flatpak-specific patches
%if 0%{?flatpak}
%autopatch -p1 -m 100 -M 199
%endif
```
that is, it wants to carry "general" patches **IF ANY** in the range 0-99, and "flatpak-specific" patches **IF ANY** in the range 100-199. The problem comes if we don't have at least one general patch and one flatpak-specific patch, because now that triggers this warning. But you can see the logic of what the package wants to do, and it makes sense, and I don't see how it could avoid this warning...
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/3093#issuecomment-2483643008
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/3093/2483643008 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20241118/22b3a5a8/attachment.htm>
More information about the Rpm-maint
mailing list