[gnucash] Fix module unload patch.

Bill Nottingham notting at fedoraproject.org
Thu Jan 19 16:20:39 UTC 2012


commit 8db5b2affb3485ead2797649064b902d0630a86e
Author: Bill Nottingham <notting at redhat.com>
Date:   Thu Jan 19 11:19:12 2012 -0500

    Fix module unload patch.

 ...nload.patch => gnucash-2.4.9-never-unload.patch |    9 ---------
 gnucash.spec                                       |    2 +-
 2 files changed, 1 insertions(+), 10 deletions(-)
---
diff --git a/gnucash-2.4.7-never-unload.patch b/gnucash-2.4.9-never-unload.patch
similarity index 73%
rename from gnucash-2.4.7-never-unload.patch
rename to gnucash-2.4.9-never-unload.patch
index d77553d..e0e52b2 100644
--- a/gnucash-2.4.7-never-unload.patch
+++ b/gnucash-2.4.9-never-unload.patch
@@ -9,15 +9,6 @@ diff -up gnucash-2.4.7/src/gnc-module/gnc-module.c.foo gnucash-2.4.7/src/gnc-mod
  #include <stdio.h>
  #include <stdlib.h>
  #include <string.h>
-@@ -323,7 +323,7 @@ gnc_module_get_info(const char * fullpat
-     info->module_age         = *(int *)age;
-     info->module_revision    = *(int *)revision;
- 
--
-+    g_module_make_resident(gmodule);
- get_info_close:
-     /*   g_debug("(init) closing '%s'\n", fullpath); */
-     g_module_close(gmodule);
 @@ -513,6 +513,7 @@ gnc_module_load_common(const char * modu
              info->load_count = 1;
              info->init_func  = initfunc;
diff --git a/gnucash.spec b/gnucash.spec
index a391f90..dfb3faf 100644
--- a/gnucash.spec
+++ b/gnucash.spec
@@ -19,7 +19,7 @@ BuildRequires: gettext, libtool, intltool
 BuildRequires: python-devel, libdbi-devel
 BuildRequires: libtool-ltdl-devel
 Patch0: gnucash-quiet.patch
-Patch1: gnucash-2.4.7-never-unload.patch
+Patch1: gnucash-2.4.9-never-unload.patch
 Patch2: gnucash-2.4.8-glib.patch
 
 # Guile 2.0 support


More information about the scm-commits mailing list