From ef1facdb27ddb584747ae8bded3d6006b1848505 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Oct 11 2011 16:16:32 +0000 Subject: Add patch to not unload modules, to avoid crashes on startup. (#703249, others) --- diff --git a/gnucash-2.4.7-never-unload.patch b/gnucash-2.4.7-never-unload.patch new file mode 100644 index 0000000..46c717c --- /dev/null +++ b/gnucash-2.4.7-never-unload.patch @@ -0,0 +1,12 @@ +diff -up gnucash-2.4.7/src/gnc-module/gnc-module.c.never gnucash-2.4.7/src/gnc-module/gnc-module.c +--- gnucash-2.4.7/src/gnc-module/gnc-module.c.never 2011-10-11 11:47:40.706200237 -0400 ++++ gnucash-2.4.7/src/gnc-module/gnc-module.c 2011-10-11 11:48:21.254201370 -0400 +@@ -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); diff --git a/gnucash.spec b/gnucash.spec index 5777e6e..a56058b 100644 --- a/gnucash.spec +++ b/gnucash.spec @@ -4,7 +4,7 @@ Name: gnucash Summary: Finance management application Version: 2.4.7 URL: http://gnucash.org/ -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv2+ Group: Applications/Productivity Source: http://www.gnucash.org/pub/gnucash/sources/unstable/2.3.x/gnucash-%{version}.tar.bz2 @@ -19,6 +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 # Guile 2.0 support Patch101: gnucash-guile-1.patch @@ -56,6 +57,7 @@ balanced books. %prep %setup -q %patch0 -p1 +%patch1 -p1 %patch101 -p1 %patch102 -p1 %patch103 -p1 @@ -164,6 +166,9 @@ fi %doc doc/README.german doc/README.francais doc/README.OFX doc/README.HBCI %changelog +* Tue Oct 11 2011 Bill Nottingham - 2.4.7-3 +- when scanning modules, don't unload them (#703249, #742202, #744310) + * Tue Aug 9 2011 Bill Nottingham - 2.4.7-2 - fix python bindings on 64bit (#729454)