[Rpm-maint] [rpm-software-management/rpm] [4.20+] rpmbuild: "error: No patch number 6" no longer raises an error? (Issue #4079)
Jens Petersen
notifications at github.com
Tue Dec 30 16:38:40 UTC 2025
juhp created an issue (rpm-software-management/rpm#4079)
**Describe the bug**
>From testing, as of RPM 4.20 (I haven't bissected in detail), rpmbuild no longer errors for a missing Patch.
I ran into this with https://src.fedoraproject.org/rpms/ghc9.12/blob/f5da7728f1250fda6c4e2ba32d989fe52af16a47/f/ghc9.12.spec#_456 when building it on F42.
Note: that `Patch6:` is missing but it invokes `%patch -P6`, but on F42 (and later) rpmbuild continues after `error: No patch number 6`, whereas with rpm-4.19, it correctly raises an error and aborts the build as expected.
(Also NB as it appears ^ the (missing) patch 6 is _only_ applied on F42 or earlier: it is commented out for F43+.)
**To Reproduce**
1. On a Fedora system with rpm-4.20 or later try to build an rpm spec file with a missing Patch fields.
https://src.fedoraproject.org/rpms/ghc9.12/blob/f5da7728f1250fda6c4e2ba32d989fe52af16a47/f/ghc9.12.spec
**Expected behavior**
Expect rpmbuild to terminate the build as soon as the `%patch -P6` is reached.
**Output**
https://kojipkgs.fedoraproject.org/work/tasks/1401/140481401/build.log
https://kojipkgs.fedoraproject.org//work/tasks/4544/140504544/build.log
**Environment**
- OS / Distribution: Fedora 42+
- Version rpm-4.20.1
**Additional context**
c10s with rpm-4.19 seems to terminate correctly immediately.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/4079
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/4079 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20251230/3f17d93d/attachment.htm>
More information about the Rpm-maint
mailing list