rpms/gnome-chemistry-utils/devel 19808.patch, NONE, 1.1 gnome-chemistry-utils.spec, 1.5, 1.6

Julian Sikorski (belegdol) fedora-extras-commits at redhat.com
Mon May 7 18:31:12 UTC 2007


Author: belegdol

Update of /cvs/extras/rpms/gnome-chemistry-utils/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv14485

Modified Files:
	gnome-chemistry-utils.spec 
Added Files:
	19808.patch 
Log Message:
* Mon May  7 2007 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.6.5-2
- Fixed gchemtable crash (RH #239056, Savannah #19808)


19808.patch:

--- NEW FILE 19808.patch ---
Index: programs/gchemtable-elt.cc
===================================================================
RCS file: /cvsroot/gchemutils/gchemutils/programs/Attic/gchemtable-elt.cc,v
retrieving revision 1.7.2.4
diff -p -u -5 -r1.7.2.4 gchemtable-elt.cc
--- programs/gchemtable-elt.cc	7 Apr 2007 15:06:01 -0000	1.7.2.4
+++ programs/gchemtable-elt.cc	7 May 2007 16:54:15 -0000
@@ -243,13 +243,13 @@ GChemTableElt::GChemTableElt (GChemTable
 	int maxspin = 0;
 	if (radii) while (*radii) {
 		if (((*radii)->type == GCU_IONIC) && !strcmp ((*radii)->scale, "Shannon")) {
 			j = radii_list.begin ();
 			jend = radii_list.end ();
-			while (((j != jend) && ((*j)->charge < (*radii)->charge)) || 
-				(((*j)->charge == (*radii)->charge) && ((*j)->cn < (*radii)->cn)) ||
-				(((*j)->cn == (*radii)->cn) && ((*j)->spin < (*radii)->spin)))
+			while ((j != jend) && (((*j)->charge < (*radii)->charge) || 
+				(((*j)->charge == (*radii)->charge) && ((*j)->cn < (*radii)->cn) ||
+				(((*j)->cn == (*radii)->cn) && ((*j)->spin < (*radii)->spin)))))
 				j++;
 			radii_list.insert (j, *radii);
 			if ((*radii)->spin > maxspin)
 				maxspin = (*radii)->spin;
 		}


Index: gnome-chemistry-utils.spec
===================================================================
RCS file: /cvs/extras/rpms/gnome-chemistry-utils/devel/gnome-chemistry-utils.spec,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- gnome-chemistry-utils.spec	9 Apr 2007 15:37:50 -0000	1.5
+++ gnome-chemistry-utils.spec	7 May 2007 18:30:35 -0000	1.6
@@ -1,12 +1,13 @@
 Name:           gnome-chemistry-utils
 Version:        0.6.5
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        A set of chemical utilities
 
 Group:          Applications/Engineering
 License:        GPL
 URL:            http://www.nongnu.org/gchemutils/
 Source0:        http://download.savannah.nongnu.org/releases/gchemutils/%{name}-%{version}.tar.bz2
+Patch0:         19808.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  openbabel-devel
@@ -60,6 +61,7 @@
 
 %prep
 %setup -q
+%patch0 -p0 -b .crashfix
 
 
 %build
@@ -133,6 +135,9 @@
 
 
 %changelog
+* Mon May  7 2007 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.6.5-2
+- Fixed gchemtable crash (RH #239056, Savannah #19808)
+
 * Mon Apr  9 2007 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.6.5-1
 - Updated to 0.6.5
 - Switched to bzip2 sources
@@ -161,4 +166,4 @@
 - Preserve timestamps
 
 * Sat Dec 02 2006 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.6.3-1
-- Initial RPM release
\ No newline at end of file
+- Initial RPM release




More information about the fedora-extras-commits mailing list