[gnucash/f15] Update to 2.4.8

Bill Nottingham notting at fedoraproject.org
Tue Oct 25 21:22:57 UTC 2011


commit b711a897b3cc0628c017ea738ee416163aed0109
Author: Bill Nottingham <notting at redhat.com>
Date:   Tue Oct 25 17:22:48 2011 -0400

    Update to 2.4.8

 .gitignore                       |    2 +-
 gnucash-2.4.7-never-unload.patch |   28 ++++++++++++++++++++++++++++
 gnucash.spec                     |    9 +++++++--
 sources                          |    2 +-
 4 files changed, 37 insertions(+), 4 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index d892cb0..186422a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-/gnucash-2.4.7.tar.bz2
+/gnucash-2.4.8.tar.bz2
diff --git a/gnucash-2.4.7-never-unload.patch b/gnucash-2.4.7-never-unload.patch
new file mode 100644
index 0000000..d77553d
--- /dev/null
+++ b/gnucash-2.4.7-never-unload.patch
@@ -0,0 +1,28 @@
+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 <dlfcn.h>
+ #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;
+             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 cd096d1..515a4ab 100644
--- a/gnucash.spec
+++ b/gnucash.spec
@@ -2,9 +2,9 @@
 
 Name: gnucash
 Summary: Finance management application
-Version: 2.4.7
+Version: 2.4.8
 URL: http://gnucash.org/
-Release: 2%{?dist}
+Release: 1%{?dist}
 License: GPLv2+
 Group: Applications/Productivity
 Source: http://www.gnucash.org/pub/gnucash/sources/unstable/2.3.x/gnucash-%{version}.tar.bz2
@@ -17,6 +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
 Requires: gnucash-docs >= 2.2.0
 Requires: slib >= 3a1-5
 Requires: perl(Finance::Quote)
@@ -40,6 +41,7 @@ balanced books.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 find src/quotes -name "*.in" -exec sed -i "s|use lib '@-PERLINCL-@';||g" {} \;
 
 %build
@@ -137,6 +139,9 @@ fi
 %doc doc/README.german doc/README.francais doc/README.OFX doc/README.HBCI
 
 %changelog
+* Tue Oct 25 2011 Bill Nottingham <notting at redhat.com> - 2.4.8-1
+- update to 2.4.8
+
 * Tue Aug  9 2011 Bill Nottingham <notting at redhat.com> - 2.4.7-2
 - fix python bindings on 64bit (#729454)
 
diff --git a/sources b/sources
index da6db8b..f2c5618 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-0f85c8bfd165b2605a7853f579808823  gnucash-2.4.7.tar.bz2
+6979d25bbe6d502036babca524b7e759  gnucash-2.4.8.tar.bz2


More information about the scm-commits mailing list