On Mon, Apr 06, 2009 at 15:24:38 -0700, Mike Castle wrote:

[...]

> Perhaps the GC user community needs to petition the maintainer to
> explain the importance of this particular bug and that it would be
> worth while at least attempting the patch this particular fix into the
> current version rather than waiting for 2.9 to migrate to stable.

The user community can help testing the upstream fix with the current
version in unstable; this may convince the maintainer to release a
patched 2.2.6 package before 2.2.9 is ready. I am not a regular gnucash
user, so I can only confirm that the following procedure fixes the
simple test case given in the upstream bugreport (tested with version
2.2.6-3 on Sid/amd64, no guarantees, YMMV):

Save this message as "gnucash-patch.txt" in a convenient working
directory; you will need about 230 MB of disk space to build the patched
package from source. Go to the directory in which you saved the patch
and run this sequence of commands ("#" means root prompt, "$" normal
user):

# aptitude install build-essential devscripts
# aptitude build-dep gnucash
$ apt-get source gnucash
$ patch -u -p0 < gnucash-patch.txt
$ cd gnucash-2.2.6/
$ dch -l "+patch"
  (Add a comment to the changelog if you want, then leave the editor.)
$ dpkg-buildpackage -rfakeroot -us -uc
$ cd ..
# dpkg -i gnucash_2.2.6-3+patch1_*.deb gnucash-common_2.2.6-3+patch1_all.deb

Here is the patch, according to comment #9 in the upstream bug report,
http://bugzilla.gnome.org/564928 (this comment describes the change that
introduced the problem; the patch below simply reverts this):   

--- gnucash-2.2.6/src/register/register-gnome/gnucash-sheet.c-orig      
2009-04-07 10:46:23.000000000 +0200
+++ gnucash-2.2.6/src/register/register-gnome/gnucash-sheet.c   2009-04-07 
10:47:04.000000000 +0200
@@ -2367,8 +2367,7 @@
         sheet->width = 0;
         sheet->height = 0;
 
-        sheet->cursor_styles = g_hash_table_new_full (g_str_hash, g_str_equal,
-                                                     g_free, NULL);
+        sheet->cursor_styles = g_hash_table_new (g_str_hash, g_str_equal);
 
         sheet->blocks = g_table_new (sizeof (SheetBlock),
                                      gnucash_sheet_block_construct,

-- 
Regards,            | http://users.icfo.es/Florian.Kulzer
          Florian   |


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to