public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Panu Matilainen <pmatilai@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: - fix regression in patch number handling (#455872)
Date: Mon, 23 Nov 2026 09:25:02 GMT	[thread overview]
Message-ID: <179542590234.1.104929814761585765.rpms-rpm-e62394bdc94a@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rpm
Branch : pmatilai-v6
Commit : e62394bdc94a20ace673e4288276923d5eb31d2e
Author : Panu Matilainen <pmatilai@fedoraproject.org>
Date   : 2008-07-19T12:31:18+00:00
Stats  : +39/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/rpm/c/e62394bdc94a20ace673e4288276923d5eb31d2e?branch=pmatilai-v6

Log:
- fix regression in patch number handling (#455872)

---
diff --git a/rpm-4.5.90-patchnum.patch b/rpm-4.5.90-patchnum.patch
new file mode 100644
index 0000000..ad80e3a
--- /dev/null
+++ b/rpm-4.5.90-patchnum.patch
@@ -0,0 +1,32 @@
+commit 6df78d16a68ff508a965ba2166f3b376e850b138
+Author: Panu Matilainen <pmatilai@redhat.com>
+Date:   Sat Jul 19 15:27:42 2008 +0300
+
+    Fix regression in %patch handling (rhbz#455872)
+    - popt doesn't think of "008" as an integer, let popt think it's a string
+      as we do our own conversion to number anyway
+
+diff --git a/build/parsePrep.c b/build/parsePrep.c
+index 4b0ccdf..fcc28c8 100644
+--- a/build/parsePrep.c
++++ b/build/parsePrep.c
+@@ -403,16 +403,16 @@ static int doSetupMacro(rpmSpec spec, const char *line)
+  */
+ static rpmRC doPatchMacro(rpmSpec spec, const char *line)
+ {
+-    char *opt_b;
++    char *opt_b, *opt_P;
+     char *buf = NULL;
+-    int opt_P, opt_p, opt_R, opt_E, opt_F;
++    int opt_p, opt_R, opt_E, opt_F;
+     int argc, c;
+     const char **argv = NULL;
+     ARGV_t patch, patchnums = NULL;
+     rpmRC rc = RPMRC_FAIL; /* assume failure */
+     
+     struct poptOption const patchOpts[] = {
+-	{ NULL, 'P', POPT_ARG_INT, &opt_P, 'P', NULL, NULL },
++	{ NULL, 'P', POPT_ARG_STRING, &opt_P, 'P', NULL, NULL },
+ 	{ NULL, 'p', POPT_ARG_INT, &opt_p, 'p', NULL, NULL },
+ 	{ NULL, 'R', POPT_ARG_NONE, &opt_R, 'R', NULL, NULL },
+ 	{ NULL, 'E', POPT_ARG_NONE, &opt_E, 'E', NULL, NULL },

diff --git a/rpm.spec b/rpm.spec
index acc5f55..c99b0dc 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -18,7 +18,7 @@
 Summary: The RPM package management system
 Name: rpm
 Version: %{rpmver}
-Release: 0.%{snapver}.8
+Release: 0.%{snapver}.9
 Group: System Environment/Base
 Url: http://www.rpm.org/
 Source0: http://rpm.org/releases/testing/%{name}-%{srcver}.tar.bz2
@@ -35,6 +35,7 @@ Patch100: rpm-4.6.x-no-pkgconfig-reqs.patch
 Patch200: rpm-4.5.90-digestlen.patch
 Patch201: rpm-4.5.90-mono-magic.patch
 Patch202: rpm-4.5.90-macroarg.patch
+Patch203: rpm-4.5.90-patchnum.patch
 
 # Partially GPL/LGPL dual-licensed and some bits with BSD
 # SourceLicense: (GPLv2+ and LGPLv2+ with exceptions) and BSD 
@@ -165,6 +166,7 @@ that will manipulate RPM packages and databases.
 %patch200 -p1 -b .diglen
 %patch201 -p1 -b .mono-magic
 %patch202 -p1 -b .macroarg
+%patch203 -p1 -b .patchnum
 
 %if %{with int_bdb}
 ln -s db-%{bdbver} db
@@ -340,6 +342,10 @@ exit 0
 %doc doc/librpm/html/*
 
 %changelog
+* Sat Jul 19 2008 Panu Matilainen <pmatilai@redhat.com>
+- 4.5.90-0.git8426.9
+- fix regression in patch number handling (#455872)
+
 * Tue Jul 15 2008 Panu Matilainen <pmatilai@redhat.com>
 - 4.5.90-0.git8426.8
 - fix regression in macro argument handling (#455333)

                 reply	other threads:[~2026-11-23  9:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179542590234.1.104929814761585765.rpms-rpm-e62394bdc94a@fedoraproject.org \
    --to=pmatilai@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox