diff --git a/gnucash-2.4.7-never-unload.patch b/gnucash-2.4.7-never-unload.patch deleted file mode 100644 index d77553d..0000000 --- a/gnucash-2.4.7-never-unload.patch +++ /dev/null @@ -1,28 +0,0 @@ -diff -up gnucash-2.4.7/src/gnc-module/gnc-module.c.foo gnucash-2.4.7/src/gnc-module/gnc-module.c ---- gnucash-2.4.7/src/gnc-module/gnc-module.c.foo 2011-10-14 16:19:52.296521997 -0400 -+++ gnucash-2.4.7/src/gnc-module/gnc-module.c 2011-10-14 16:19:56.893522125 -0400 -@@ -5,6 +5,7 @@ - - #include "config.h" - -+#include - #include - #include - #include -@@ -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; - g_hash_table_insert(loaded_modules, info, info); -+ dlopen(modinfo->module_filepath, RTLD_LAZY|RTLD_GLOBAL|RTLD_NOLOAD); - - /* now call its init function. this should load any dependent - * modules, too. If it doesn't return TRUE unload the module. */ diff --git a/gnucash-2.4.9-never-unload.patch b/gnucash-2.4.9-never-unload.patch new file mode 100644 index 0000000..e0e52b2 --- /dev/null +++ b/gnucash-2.4.9-never-unload.patch @@ -0,0 +1,19 @@ +diff -up gnucash-2.4.7/src/gnc-module/gnc-module.c.foo gnucash-2.4.7/src/gnc-module/gnc-module.c +--- gnucash-2.4.7/src/gnc-module/gnc-module.c.foo 2011-10-14 16:19:52.296521997 -0400 ++++ gnucash-2.4.7/src/gnc-module/gnc-module.c 2011-10-14 16:19:56.893522125 -0400 +@@ -5,6 +5,7 @@ + + #include "config.h" + ++#include + #include + #include + #include +@@ -513,6 +513,7 @@ gnc_module_load_common(const char * modu + info->load_count = 1; + info->init_func = initfunc; + g_hash_table_insert(loaded_modules, info, info); ++ dlopen(modinfo->module_filepath, RTLD_LAZY|RTLD_GLOBAL|RTLD_NOLOAD); + + /* now call its init function. this should load any dependent + * modules, too. If it doesn't return TRUE unload the module. */ diff --git a/gnucash.spec b/gnucash.spec index db46f6d..04d34a2 100644 --- a/gnucash.spec +++ b/gnucash.spec @@ -17,7 +17,7 @@ BuildRequires: desktop-file-utils, texinfo BuildRequires: gettext, slib >= 3a1-5, libtool, intltool BuildRequires: python-devel, libdbi-devel Patch0: gnucash-quiet.patch -Patch1: gnucash-2.4.7-never-unload.patch +Patch1: gnucash-2.4.9-never-unload.patch Requires: gnucash-docs >= 2.2.0 Requires: slib >= 3a1-5 Requires: perl(Finance::Quote)