rpms/glib2/devel timeout-wrap.patch, NONE, 1.1 glib2.spec, 1.161, 1.162

Matthias Clasen (mclasen) fedora-extras-commits at redhat.com
Thu Apr 3 05:43:31 UTC 2008


Author: mclasen

Update of /cvs/extras/rpms/glib2/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv30048

Modified Files:
	glib2.spec 
Added Files:
	timeout-wrap.patch 
Log Message:
Fix occasional misbehaviour of g_timeout_add_seconds


timeout-wrap.patch:

--- NEW FILE timeout-wrap.patch ---
diff -up glib-2.16.2/glib/gmain.c.timeout-wrap glib-2.16.2/glib/gmain.c
--- glib-2.16.2/glib/gmain.c.timeout-wrap	2008-04-03 01:39:46.000000000 -0400
+++ glib-2.16.2/glib/gmain.c	2008-04-03 01:40:08.000000000 -0400
@@ -3320,7 +3320,7 @@ g_timeout_set_expiration (GTimeoutSource
       if (!session_bus_address)
         session_bus_address = g_getenv ("HOSTNAME");
       if (session_bus_address)
-        timer_perturb = g_str_hash (session_bus_address);
+        timer_perturb = ABS (g_str_hash (session_bus_address));
       else
         timer_perturb = 0;
     }


Index: glib2.spec
===================================================================
RCS file: /cvs/extras/rpms/glib2/devel/glib2.spec,v
retrieving revision 1.161
retrieving revision 1.162
diff -u -r1.161 -r1.162
--- glib2.spec	1 Apr 2008 04:10:59 -0000	1.161
+++ glib2.spec	3 Apr 2008 05:42:42 -0000	1.162
@@ -3,7 +3,7 @@
 Summary: A library of handy utility functions
 Name: glib2
 Version: 2.16.2
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: LGPLv2+
 Group: System Environment/Libraries
 URL: http://www.gtk.org
@@ -19,6 +19,8 @@
 # for sys/inotify.h
 BuildRequires: glibc-devel
 
+# fixed in upstream svn
+Patch0: timeout-wrap.patch
 
 %description 
 GLib is the low-level core library that forms the basis
@@ -51,6 +53,7 @@
 
 %prep
 %setup -q -n glib-%{version}
+%patch0 -p1 -b .timeout-wrap
 
 %build
 %configure --disable-gtk-doc --enable-static 
@@ -123,6 +126,9 @@
 %{_libdir}/lib*.a
 
 %changelog
+* Thu Apr  3 2008 Matthias Clasen <mclasen at redhat.com> - 2.16.2-2
+- Fix occasional misbehaviour of g_timeout_add_seconds
+
 * Tue Apr  1 2008 Matthias Clasen <mclasen at redhat.com> - 2.16.2-1
 - Update to 2.16.2
 




More information about the fedora-extras-commits mailing list