rpms/powerpc-utils/devel powerpc-utils-cpu_diag_mode.patch, NONE, 1.1 powerpc-utils.spec, 1.11, 1.12

Roman Rakus rrakus at fedoraproject.org
Wed Jun 2 12:50:44 UTC 2010


Author: rrakus

Update of /cvs/pkgs/rpms/powerpc-utils/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv15698

Modified Files:
	powerpc-utils.spec 
Added Files:
	powerpc-utils-cpu_diag_mode.patch 
Log Message:
correct the parameter checking when attempting to set the run mode

powerpc-utils-cpu_diag_mode.patch:
 ppc64_cpu.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- NEW FILE powerpc-utils-cpu_diag_mode.patch ---
Index: powerpc-utils-1.2.2/src/ppc64_cpu.c
===================================================================
--- powerpc-utils-1.2.2.orig/src/ppc64_cpu.c	2009-10-22 14:00:13.000000000 -0500
+++ powerpc-utils-1.2.2/src/ppc64_cpu.c	2010-05-17 14:29:45.577267014 -0500
@@ -383,7 +383,7 @@
 	} else {
 		signed char rmode = *run_mode;
 
-		if (rmode < 0 || rmode > 3) {
+		if (rmode < '0' || rmode > '3') {
 			printf("Invalid run-mode=%c\n", rmode);
 			return -1;
 		}


Index: powerpc-utils.spec
===================================================================
RCS file: /cvs/pkgs/rpms/powerpc-utils/devel/powerpc-utils.spec,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -p -r1.11 -r1.12
--- powerpc-utils.spec	5 Mar 2010 17:38:36 -0000	1.11
+++ powerpc-utils.spec	2 Jun 2010 12:50:44 -0000	1.12
@@ -1,6 +1,6 @@
 Name:           powerpc-utils
 Version:        1.2.2
-Release:        2%{?dist}
+Release:        4%{?dist}
 Summary:        Utilities for PowerPC platforms
 
 Group:          System Environment/Base
@@ -16,7 +16,10 @@ Requires:       libservicelog 
 ExclusiveArch:  ppc ppc64
 
 # This hack is needed only for platforms with autoconf < 2.63
-Patch2:		powerpc-utils-autoconf.patch
+Patch1:		powerpc-utils-autoconf.patch
+
+# correct the parameter checking when attempting to set the run mode
+Patch2:		powerpc-utils-cpu_diag_mode.patch
 
 # This is done before release of F12
 Obsoletes:      powerpc-utils-papr < 1.1.6-3
@@ -33,6 +36,8 @@ Utilities for PowerPC platforms.
 %patch1 -p1 -b .aconf
 %endif
 
+%patch2 -p1 -b .cpu_diag_mode
+
 %build
 ./bootstrap.sh
 %configure
@@ -109,6 +114,10 @@ rm -rf $RPM_BUILD_ROOT
 %preun
 
 %changelog
+* Wed Jun 02 2010 Roman Rakus <rrakus at redhat.com> - 1.2.2-4
+- correct the parameter checking when attempting to set the run mode
+- also bump release
+
 * Fri Mar 05 2010 Roman Rakus <rrakus at redhat.com> - 1.2.2-2
 - Removed deprecated init script and perl script
 



More information about the scm-commits mailing list