rpms/GConf2/devel GConf2.spec, 1.84, 1.85 gconf-timeouts.patch, 1.1, 1.2
Ray Strode (rstrode)
fedora-extras-commits at redhat.com
Wed May 14 13:41:20 UTC 2008
Author: rstrode
Update of /cvs/pkgs/rpms/GConf2/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv6934
Modified Files:
GConf2.spec gconf-timeouts.patch
Log Message:
- update add_seconds patch to not remove timeouts that aren't
created anymore
Index: GConf2.spec
===================================================================
RCS file: /cvs/pkgs/rpms/GConf2/devel/GConf2.spec,v
retrieving revision 1.84
retrieving revision 1.85
diff -u -r1.84 -r1.85
--- GConf2.spec 12 May 2008 19:07:25 -0000 1.84
+++ GConf2.spec 14 May 2008 13:38:50 -0000 1.85
@@ -7,7 +7,7 @@
Summary: A process-transparent configuration system
Name: GConf2
Version: 2.22.0
-Release: 6%{?dist}
+Release: 7%{?dist}
License: LGPLv2+
Group: System Environment/Base
Source: http://download.gnome.org/sources/GConf/2.22/GConf-%{version}.tar.bz2
@@ -160,6 +160,10 @@
%{_libdir}/pkgconfig/*
%changelog
+* Wed May 14 2008 Ray Strode <rstrode at redhat.com> - 2.22.0-7
+- update add_seconds patch to not remove timeouts that aren't
+ created anymore
+
* Mon May 12 2008 Ray Strode <rstrode at redhat.com> - 2.22.0-6
- If the session bus isn't running, don't autolaunch it unless
we also want to autostart gconfd.
gconf-timeouts.patch:
Index: gconf-timeouts.patch
===================================================================
RCS file: /cvs/pkgs/rpms/GConf2/devel/gconf-timeouts.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- gconf-timeouts.patch 2 May 2008 14:39:44 -0000 1.1
+++ gconf-timeouts.patch 14 May 2008 13:38:50 -0000 1.2
@@ -1,41 +1,62 @@
diff -up GConf-2.22.0/backends/markup-backend.c.timeouts GConf-2.22.0/backends/markup-backend.c
---- GConf-2.22.0/backends/markup-backend.c.timeouts 2008-05-02 09:36:25.000000000 -0400
-+++ GConf-2.22.0/backends/markup-backend.c 2008-05-02 09:36:46.000000000 -0400
-@@ -878,17 +878,17 @@ gconf_backend_get_vtable (void)
- /* This timeout periodically unloads
- * data that hasn't been used in a while.
- */
-+#if 0
- static gboolean
- cleanup_timeout (gpointer data)
+--- GConf-2.22.0/backends/markup-backend.c.timeouts 2007-06-25 07:11:19.000000000 -0400
++++ GConf-2.22.0/backends/markup-backend.c 2008-05-14 09:33:04.000000000 -0400
+@@ -59,7 +59,6 @@ typedef struct
{
+ GConfSource source; /* inherit from GConfSource */
+ char *root_dir;
+- guint timeout_id;
+ GConfLock* lock;
+ MarkupTree *tree;
+ guint dir_mode;
+@@ -875,21 +874,6 @@ gconf_backend_get_vtable (void)
+ * MarkupSource
+ */
+
+-/* This timeout periodically unloads
+- * data that hasn't been used in a while.
+- */
+-static gboolean
+-cleanup_timeout (gpointer data)
+-{
-#if 0
- MarkupSource* ms = (MarkupSource*)data;
-
- cache_clean(ms->cache, 60*5 /* 5 minutes */);
+- MarkupSource* ms = (MarkupSource*)data;
+-
+- cache_clean(ms->cache, 60*5 /* 5 minutes */);
-#endif
-
- return TRUE;
- }
-+#endif
-
+-
+- return TRUE;
+-}
+-
static MarkupSource*
ms_new (const char* root_dir,
-@@ -903,9 +903,11 @@ ms_new (const char* root_dir,
+ guint dir_mode,
+@@ -903,10 +887,6 @@ ms_new (const char* root_dir,
ms = g_new0(MarkupSource, 1);
-+#if 0
- ms->timeout_id = g_timeout_add (1000*60*5, /* 1 sec * 60 s/min * 5 min */
- cleanup_timeout,
- ms);
-+#endif
-
+- ms->timeout_id = g_timeout_add (1000*60*5, /* 1 sec * 60 s/min * 5 min */
+- cleanup_timeout,
+- ms);
+-
ms->root_dir = g_strdup (root_dir);
+ ms->lock = lock;
+@@ -941,11 +921,6 @@ ms_destroy (MarkupSource* ms)
+ error = NULL;
+ }
+
+- if (!g_source_remove (ms->timeout_id))
+- {
+- /* should not happen, don't translate */
+- gconf_log (GCL_ERR, "timeout not found to remove?");
+- }
+
+ markup_tree_unref (ms->tree);
+
diff -up GConf-2.22.0/gconf/gconf-database.c.timeouts GConf-2.22.0/gconf/gconf-database.c
---- GConf-2.22.0/gconf/gconf-database.c.timeouts 2008-05-02 09:37:52.000000000 -0400
-+++ GConf-2.22.0/gconf/gconf-database.c 2008-05-02 09:38:12.000000000 -0400
+--- GConf-2.22.0/gconf/gconf-database.c.timeouts 2008-01-08 09:28:38.000000000 -0500
++++ GConf-2.22.0/gconf/gconf-database.c 2008-05-14 09:29:17.000000000 -0400
@@ -1008,7 +1008,7 @@ gconf_database_schedule_sync(GConfDataba
else
{
@@ -46,8 +67,8 @@
}
diff -up GConf-2.22.0/gconf/gconfd.c.timeouts GConf-2.22.0/gconf/gconfd.c
---- GConf-2.22.0/gconf/gconfd.c.timeouts 2008-05-02 09:36:57.000000000 -0400
-+++ GConf-2.22.0/gconf/gconfd.c 2008-05-02 09:37:43.000000000 -0400
+--- GConf-2.22.0/gconf/gconfd.c.timeouts 2008-05-14 09:29:17.000000000 -0400
++++ GConf-2.22.0/gconf/gconfd.c 2008-05-14 09:29:17.000000000 -0400
@@ -910,12 +910,12 @@ gconf_main(void)
if (main_loops == NULL)
More information about the fedora-extras-commits
mailing list