aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorgahr <gahr@FreeBSD.org>2013-07-15 17:55:03 +0800
committergahr <gahr@FreeBSD.org>2013-07-15 17:55:03 +0800
commit38e7166c2f1c7e14f0f5bc715452e30e040b3eeb (patch)
tree92972ee89f1e1e54ac68654f7fff79e06114d176 /devel
parent3860c6e959fe460043ad65402216a64283ced540 (diff)
downloadfreebsd-ports-gnome-38e7166c2f1c7e14f0f5bc715452e30e040b3eeb.tar.gz
freebsd-ports-gnome-38e7166c2f1c7e14f0f5bc715452e30e040b3eeb.tar.zst
freebsd-ports-gnome-38e7166c2f1c7e14f0f5bc715452e30e040b3eeb.zip
- Fix build with Tcl/Tk 8.6
Reported by: bapt
Diffstat (limited to 'devel')
-rw-r--r--devel/gdb66/files/patch-gdb-gdbtk-generic-gdbtk-hooks.c50
-rw-r--r--devel/gdb66/files/patch-gdb-gdbtk-generic-gdbtk.c58
2 files changed, 108 insertions, 0 deletions
diff --git a/devel/gdb66/files/patch-gdb-gdbtk-generic-gdbtk-hooks.c b/devel/gdb66/files/patch-gdb-gdbtk-generic-gdbtk-hooks.c
new file mode 100644
index 000000000000..29796d8c7ae6
--- /dev/null
+++ b/devel/gdb66/files/patch-gdb-gdbtk-generic-gdbtk-hooks.c
@@ -0,0 +1,50 @@
+--- gdb/gdbtk/generic/gdbtk-hooks.c.orig 2013-07-15 11:47:33.000000000 +0200
++++ gdb/gdbtk/generic/gdbtk-hooks.c 2013-07-15 11:48:41.000000000 +0200
+@@ -254,13 +254,13 @@
+ actual_len = 0;
+ }
+ else
+- actual_len = strlen (gdbtk_interp->result);
++ actual_len = strlen (Tcl_GetStringResult(gdbtk_interp));
+
+ /* Truncate the string if it is too big for the caller's buffer. */
+ if (actual_len >= sizeof_buf)
+ actual_len = sizeof_buf - 1;
+
+- memcpy (buf, gdbtk_interp->result, actual_len);
++ memcpy (buf, Tcl_GetStringResult(gdbtk_interp), actual_len);
+ buf[actual_len] = '\0';
+ return actual_len;
+ }
+@@ -505,11 +505,11 @@
+
+ if (result == TCL_OK)
+ {
+- return (xstrdup (gdbtk_interp->result));
++ return (xstrdup (Tcl_GetStringResult(gdbtk_interp)));
+ }
+ else
+ {
+- gdbtk_fputs (gdbtk_interp->result, gdb_stdout);
++ gdbtk_fputs (Tcl_GetStringResult(gdbtk_interp), gdb_stdout);
+ gdbtk_fputs ("\n", gdb_stdout);
+ return (NULL);
+ }
+@@ -633,7 +633,7 @@
+ report_error ();
+ free(buf);
+
+- return atoi (gdbtk_interp->result);
++ return atoi (Tcl_GetStringResult(gdbtk_interp));
+ }
+
+
+@@ -686,7 +686,7 @@
+ gdbtk_two_elem_cmd ("gdbtk_tcl_query", buf);
+ free(buf);
+
+- val = atol (gdbtk_interp->result);
++ val = atol (Tcl_GetStringResult(gdbtk_interp));
+ return val;
+ }
+
diff --git a/devel/gdb66/files/patch-gdb-gdbtk-generic-gdbtk.c b/devel/gdb66/files/patch-gdb-gdbtk-generic-gdbtk.c
new file mode 100644
index 000000000000..93029ba6d8c5
--- /dev/null
+++ b/devel/gdb66/files/patch-gdb-gdbtk-generic-gdbtk.c
@@ -0,0 +1,58 @@
+--- gdb/gdbtk/generic/gdbtk.c.orig 2013-07-15 11:44:12.000000000 +0200
++++ gdb/gdbtk/generic/gdbtk.c 2013-07-15 11:45:50.000000000 +0200
+@@ -468,7 +468,7 @@
+ Tcl_Free ((char *) exec_path);
+
+ if (Tcl_Init (gdbtk_interp) != TCL_OK)
+- error ("Tcl_Init failed: %s", gdbtk_interp->result);
++ error ("Tcl_Init failed: %s", Tcl_GetStringResult(gdbtk_interp));
+
+ /* Set up some globals used by gdb to pass info to gdbtk
+ for start up options and the like */
+@@ -486,23 +486,23 @@
+
+ /* Initialize the Paths variable. */
+ if (ide_initialize_paths (gdbtk_interp, "") != TCL_OK)
+- error ("ide_initialize_paths failed: %s", gdbtk_interp->result);
++ error ("ide_initialize_paths failed: %s", Tcl_GetStringResult(gdbtk_interp));
+
+ if (Tk_Init (gdbtk_interp) != TCL_OK)
+- error ("Tk_Init failed: %s", gdbtk_interp->result);
++ error ("Tk_Init failed: %s", Tcl_GetStringResult(gdbtk_interp));
+
+ if (Itcl_Init (gdbtk_interp) == TCL_ERROR)
+- error ("Itcl_Init failed: %s", gdbtk_interp->result);
++ error ("Itcl_Init failed: %s", Tcl_GetStringResult(gdbtk_interp));
+ Tcl_StaticPackage (gdbtk_interp, "Itcl", Itcl_Init,
+ (Tcl_PackageInitProc *) NULL);
+
+ if (Itk_Init (gdbtk_interp) == TCL_ERROR)
+- error ("Itk_Init failed: %s", gdbtk_interp->result);
++ error ("Itk_Init failed: %s", Tcl_GetStringResult(gdbtk_interp));
+ Tcl_StaticPackage (gdbtk_interp, "Itk", Itk_Init,
+ (Tcl_PackageInitProc *) NULL);
+
+ if (Tktable_Init (gdbtk_interp) != TCL_OK)
+- error ("Tktable_Init failed: %s", gdbtk_interp->result);
++ error ("Tktable_Init failed: %s", Tcl_GetStringResult(gdbtk_interp));
+
+ Tcl_StaticPackage (gdbtk_interp, "Tktable", Tktable_Init,
+ (Tcl_PackageInitProc *) NULL);
+@@ -540,7 +540,7 @@
+
+ if (Gdbtk_Init (gdbtk_interp) != TCL_OK)
+ {
+- error ("Gdbtk_Init failed: %s", gdbtk_interp->result);
++ error ("Gdbtk_Init failed: %s", Tcl_GetStringResult(gdbtk_interp));
+ }
+
+ Tcl_StaticPackage (gdbtk_interp, "Insight", Gdbtk_Init, NULL);
+@@ -719,7 +719,7 @@
+
+ retval = Tcl_Eval (gdbtk_interp, cmd);
+
+- result = xstrdup (gdbtk_interp->result);
++ result = xstrdup (Tcl_GetStringResult(gdbtk_interp));
+
+ old_chain = make_cleanup (free, result);
+