rpms/mcs/devel libmcs-0.7.1-walk.patch,NONE,1.1 mcs.spec,1.14,1.15

Michael Schwendt mschwendt at fedoraproject.org
Wed Dec 23 23:14:00 UTC 2009


Author: mschwendt

Update of /cvs/pkgs/rpms/mcs/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv21141

Modified Files:
	mcs.spec 
Added Files:
	libmcs-0.7.1-walk.patch 
Log Message:
* Thu Dec 24 2009 Michael Schwendt <mschwendt at fedoraproject.org> - 0.7.1-7
- Fix floating point exception in mcs-walk-config tool.


libmcs-0.7.1-walk.patch:
 mcs_walk_config.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

--- NEW FILE libmcs-0.7.1-walk.patch ---
diff -Nur libmcs-0.7.1-orig/src/tools/mcs-walk-config/mcs_walk_config.c libmcs-0.7.1/src/tools/mcs-walk-config/mcs_walk_config.c
--- libmcs-0.7.1-orig/src/tools/mcs-walk-config/mcs_walk_config.c	2008-04-21 00:05:48.000000000 +0200
+++ libmcs-0.7.1/src/tools/mcs-walk-config/mcs_walk_config.c	2009-12-24 00:10:01.000000000 +0100
@@ -37,7 +37,7 @@
 {
 	mcs_handle_t *h;
 	mowgli_queue_t *groups, *i;
-	int entries = 0, sections = 0;
+	int entries = 0, sections = 0, avgentries = 0;
 
 	if (argc < 2)
 	{
@@ -75,8 +75,9 @@
 	mowgli_queue_destroy(groups);
 	mcs_fini();
 
+    avgentries = sections ? (entries/sections) : 0;
 	printf("\n%d entries across %d groups, average %d entries per group\n",
-		entries, sections, entries / sections);
+		entries, sections, avgentries);
 
 	return 0;
 }


Index: mcs.spec
===================================================================
RCS file: /cvs/pkgs/rpms/mcs/devel/mcs.spec,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -p -r1.14 -r1.15
--- mcs.spec	23 Dec 2009 23:04:19 -0000	1.14
+++ mcs.spec	23 Dec 2009 23:14:00 -0000	1.15
@@ -1,6 +1,6 @@
 Name:           mcs
 Version:        0.7.1
-Release:        6%{?dist}
+Release:        7%{?dist}
 Summary:        Configuration file abstraction system
 
 Group:          Applications/System
@@ -11,6 +11,7 @@ URL:            http://atheme.org
 
 Source0:        http://distfiles.atheme.org/libmcs-%{version}.tgz
 Patch0: libmcs-0.7.1-sysconfdir.patch
+Patch1: libmcs-0.7.1-walk.patch
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
@@ -82,6 +83,7 @@ This package contains the files necessar
 %prep
 %setup -q -n libmcs-%{version}
 %patch0 -p1 -b .sysconfdir
+%patch1 -p1 -b .walk
 
 # Make the build system more verbose
 #perl -pi -e 's/^\.SILENT:.*$//' buildsys.mk.in
@@ -135,6 +137,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/pkgconfig/libmcs.pc
 
 %changelog
+* Thu Dec 24 2009 Michael Schwendt <mschwendt at fedoraproject.org> - 0.7.1-7
+- Fix floating point exception in mcs-walk-config tool.
+
 * Wed Dec 23 2009 Michael Schwendt <mschwendt at fedoraproject.org> - 0.7.1-6
 - Add --disable-kconfig to fix build requirements usage (#529696).
   The kconfig backend has never been built or included before.




More information about the fedora-extras-commits mailing list