summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--math/gcalctool3/Makefile3
-rw-r--r--math/gcalctool3/files/patch-src_math-equation.c25
2 files changed, 27 insertions, 1 deletions
diff --git a/math/gcalctool3/Makefile b/math/gcalctool3/Makefile
index f470968a1..d8671ca3b 100644
--- a/math/gcalctool3/Makefile
+++ b/math/gcalctool3/Makefile
@@ -3,11 +3,12 @@
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD$
-# $MCom: ports/math/gcalctool3/Makefile,v 1.12 2011/04/27 21:04:15 kwm Exp $
+# $MCom: ports/math/gcalctool3/Makefile,v 1.13 2011/05/28 11:29:29 kwm Exp $
#
PORTNAME= gcalctool
PORTVERSION= 6.0.2
+PORTREVISION= 1
CATEGORIES= math gnome
MASTER_SITES= GNOME
DIST_SUBDIR= gnome3
diff --git a/math/gcalctool3/files/patch-src_math-equation.c b/math/gcalctool3/files/patch-src_math-equation.c
new file mode 100644
index 000000000..14b7577f8
--- /dev/null
+++ b/math/gcalctool3/files/patch-src_math-equation.c
@@ -0,0 +1,25 @@
+--- src/math-equation.c.orig 2011-05-30 19:16:53.000000000 -0400
++++ src/math-equation.c 2011-05-30 19:19:35.000000000 -0400
+@@ -1305,6 +1305,7 @@ void
+ math_equation_solve(MathEquation *equation)
+ {
+ GError *error = NULL;
++ gulong stacksize = 0;
+
+ g_return_if_fail(equation != NULL);
+
+@@ -1326,7 +1327,13 @@ math_equation_solve(MathEquation *equati
+
+ math_equation_set_number_mode(equation, NORMAL);
+
+- g_thread_create(math_equation_solve_real, equation, false, &error);
++ if (GLIB_SIZEOF_LONG == 8) {
++ stacksize = 0x400000;
++ } else {
++ stacksize = 0x200000;
++ }
++
++ g_thread_create_full(math_equation_solve_real, equation, stacksize, false, false, G_THREAD_PRIORITY_NORMAL, &error);
+
+ if (error)
+ g_warning("Error spawning thread for calculations: %s\n", error->message);