rpms/rpm/devel rpm-4.5.90-patchnum.patch, NONE, 1.1 rpm.spec, 1.287, 1.288

Panu Matilainen (pmatilai) fedora-extras-commits at redhat.com
Sat Jul 19 12:32:11 UTC 2008


Author: pmatilai

Update of /cvs/pkgs/rpms/rpm/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv13237

Modified Files:
	rpm.spec 
Added Files:
	rpm-4.5.90-patchnum.patch 
Log Message:
- fix regression in patch number handling (#455872)


rpm-4.5.90-patchnum.patch:

--- NEW FILE rpm-4.5.90-patchnum.patch ---
commit 6df78d16a68ff508a965ba2166f3b376e850b138
Author: Panu Matilainen <pmatilai at 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 },


Index: rpm.spec
===================================================================
RCS file: /cvs/pkgs/rpms/rpm/devel/rpm.spec,v
retrieving revision 1.287
retrieving revision 1.288
diff -u -r1.287 -r1.288
--- rpm.spec	15 Jul 2008 17:18:17 -0000	1.287
+++ rpm.spec	19 Jul 2008 12:31:18 -0000	1.288
@@ -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 @@
 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 @@
 %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 @@
 %doc doc/librpm/html/*
 
 %changelog
+* Sat Jul 19 2008 Panu Matilainen <pmatilai at redhat.com>
+- 4.5.90-0.git8426.9
+- fix regression in patch number handling (#455872)
+
 * Tue Jul 15 2008 Panu Matilainen <pmatilai at redhat.com>
 - 4.5.90-0.git8426.8
 - fix regression in macro argument handling (#455333)




More information about the scm-commits mailing list