rpms/hardinfo/devel fixcrash.patch,NONE,1.1 hardinfo.spec,1.8,1.9

Adel Gadllah (drago01) fedora-extras-commits at redhat.com
Mon Jul 30 07:39:37 UTC 2007


Author: drago01

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

Modified Files:
	hardinfo.spec 
Added Files:
	fixcrash.patch 
Log Message:
fix #249794

fixcrash.patch:

--- NEW FILE fixcrash.patch ---
diff -upNr hardinfo-0.4.2.2.orign/shell.c hardinfo-0.4.2.2/shell.c
--- hardinfo-0.4.2.2.orign/shell.c	2007-07-20 16:45:08.000000000 +0200
+++ hardinfo-0.4.2.2/shell.c	2007-07-30 09:31:35.000000000 +0200
@@ -1017,13 +1017,11 @@ module_selected_show_info(ShellModuleEnt
     /* recreate the iter hash table */
     if (!reload) {
 	if (update_tbl) {
-	    g_hash_table_foreach_remove(update_tbl, (GHRFunc) gtk_true,
-					NULL);
-	} else {
-	    update_tbl =
-		g_hash_table_new_full(g_str_hash, g_str_equal, g_free,
-				      g_free);
-	}
+	       g_hash_table_destroy(update_tbl);
+        }
+
+       update_tbl = g_hash_table_new_full(g_str_hash, g_str_equal,
+                                           g_free, g_free);
     }
 
     if (update_sfusrc) {


Index: hardinfo.spec
===================================================================
RCS file: /cvs/pkgs/rpms/hardinfo/devel/hardinfo.spec,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- hardinfo.spec	27 Jul 2007 08:33:02 -0000	1.8
+++ hardinfo.spec	30 Jul 2007 07:39:04 -0000	1.9
@@ -1,6 +1,6 @@
 Name: hardinfo
 Version: 0.4.2.2
-Release: 8%{?dist}
+Release: 9%{?dist}
 Summary: System Profiler and Benchmark      
 
 Group: Applications/System     
@@ -10,6 +10,7 @@
 Patch0: multilibfix.patch  
 Patch1: fixsensors.patch
 Patch2: fixuserdsp.patch
+Patch3: fixcrash.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  gtk2-devel
@@ -32,6 +33,8 @@
 %patch1 -p1 -b .fixsensors
 #use correct uids
 %patch2 -p1 -b .fixuserdsp
+#crash fix (#249794)
+%patch3 -p1 -b .fixcrash
 
 %build
 export LIBDIR=%{_libdir}
@@ -63,6 +66,9 @@
 
 
 %changelog
+* Mon Aug 01 2007 Adel Gadllah <adel.gadllah at gmail.com> 0.4.2.2-9
+- Try to fix RH #249794 (upstream patch)
+
 * Fri Jul 27 2007 Adel Gadllah <adel.gadllah at gmail.com> 0.4.2.2-8
 - Fix build
 




More information about the scm-commits mailing list