summaryrefslogtreecommitdiff
path: root/finance/homebank
diff options
context:
space:
mode:
authorWen Heping <wen@FreeBSD.org>2019-04-02 00:54:35 +0000
committerWen Heping <wen@FreeBSD.org>2019-04-02 00:54:35 +0000
commit63826978f90bcaea77741318c8a5a2c2d498f3f0 (patch)
treeea0a112211a6630f4b23215621e12684218eea8b /finance/homebank
parentmultimedia/aom: update to 1.0.0.1557 (diff)
- Fix the segfault when importing files
PR: 236942 Submitted by: freebsd.org@bilke.org
Notes
Notes: svn path=/head/; revision=497542
Diffstat (limited to 'finance/homebank')
-rw-r--r--finance/homebank/Makefile1
-rw-r--r--finance/homebank/files/patch-fix-236942.patch63
2 files changed, 64 insertions, 0 deletions
diff --git a/finance/homebank/Makefile b/finance/homebank/Makefile
index 31d755255ccf..b5fde1b96e80 100644
--- a/finance/homebank/Makefile
+++ b/finance/homebank/Makefile
@@ -2,6 +2,7 @@
PORTNAME= homebank
PORTVERSION= 5.2.3
+PORTREVISION= 1
CATEGORIES= finance
MASTER_SITES= http://homebank.free.fr/public/
diff --git a/finance/homebank/files/patch-fix-236942.patch b/finance/homebank/files/patch-fix-236942.patch
new file mode 100644
index 000000000000..31d629a42062
--- /dev/null
+++ b/finance/homebank/files/patch-fix-236942.patch
@@ -0,0 +1,63 @@
+=== modified file 'src/ui-assist-import.c'
+--- src/ui-assist-import.c 2019-03-17 16:01:28 +0000
++++ src/ui-assist-import.c 2019-03-21 18:12:19 +0000
+@@ -1994,6 +1994,12 @@
+ data->txndata = NULL;
+ }
+ data->txndata = g_array_sized_new(FALSE, TRUE, sizeof(ImpTxnData), nbacc);
++
++ //#1820618 patch for glib < 2.58 https://gitlab.gnome.org/GNOME/glib/issues/1374
++ if( glib_minor_version < 58 )
++ {
++ g_array_set_size(data->txndata, nbacc);
++ }
+
+ DB( g_print(" accnb=%d @%p\n", nbacc, data->txndata) );
+
+
+=== modified file 'src/ui-assist-start.c'
+--- src/ui-assist-start.c 2019-03-17 16:01:28 +0000
++++ src/ui-assist-start.c 2019-03-21 18:12:19 +0000
+@@ -35,7 +35,7 @@
+ /* our global datas */
+ extern struct HomeBank *GLOBALS;
+
+-extern gchar *CYA_ACC_TYPE[];
++extern HbKvData CYA_ACC_TYPE[];
+
+ /* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */
+
+@@ -84,7 +84,7 @@
+ }
+
+ item->kcur = GLOBALS->kcur;
+- item->type = gtk_combo_box_get_active(GTK_COMBO_BOX(data->CY_type));
++ item->type = hbtk_combo_box_get_active_id(GTK_COMBO_BOX_TEXT(data->CY_type));
+
+ item->number = g_strdup(gtk_entry_get_text(GTK_ENTRY(data->ST_number)));
+
+@@ -390,7 +390,8 @@
+ row++;
+ label = make_label_widget(_("_Type:"));
+ gtk_grid_attach (GTK_GRID (table), label, 1, row, 1, 1);
+- widget = make_cycle(label, CYA_ACC_TYPE);
++ //widget = make_cycle(label, CYA_ACC_TYPE);
++ widget = hbtk_combo_box_new_with_data(label, CYA_ACC_TYPE);
+ data->CY_type = widget;
+ gtk_widget_set_hexpand(widget, TRUE);
+ gtk_grid_attach (GTK_GRID (table), widget, 2, row, 1, 1);
+
+=== modified file 'src/ui-widgets.c'
+--- src/ui-widgets.c 2019-03-17 16:01:28 +0000
++++ src/ui-widgets.c 2019-03-21 18:12:19 +0000
+@@ -695,7 +695,8 @@
+ break;
+ if( tmp->key == key )
+ {
+- retval = (gchar *)tmp->name;
++ //#1820372
++ retval = (gchar *)_(tmp->name);
+ break;
+ }
+ }
+