[Debian-astro-commits] [saods9] 02/03: Initialize tkblt stubs

Ole Streicher olebole at moszumanska.debian.org
Fri Apr 14 11:53:23 UTC 2017


This is an automated email from the git hooks/post-receive script.

olebole pushed a commit to branch master
in repository saods9.

commit 30c7e84928e47d18b720db8661b023cc65864944
Author: Ole Streicher <olebole at debian.org>
Date:   Fri Apr 14 13:41:44 2017 +0200

    Initialize tkblt stubs
    
    Closes: #859777
---
 debian/patches/Initialize-tkblt-stubs.patch | 32 +++++++++++++++++++++++++++++
 debian/patches/series                       |  1 +
 2 files changed, 33 insertions(+)

diff --git a/debian/patches/Initialize-tkblt-stubs.patch b/debian/patches/Initialize-tkblt-stubs.patch
new file mode 100644
index 0000000..1e5f1a2
--- /dev/null
+++ b/debian/patches/Initialize-tkblt-stubs.patch
@@ -0,0 +1,32 @@
+From: Ole Streicher <olebole at debian.org>
+Date: Fri, 14 Apr 2017 13:30:17 +0200
+Subject: Initialize tkblt stubs
+
+This resolves a crash when using vertical/horizontal graphs.
+Closes: #859777
+---
+ tksao/saotk.C | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/tksao/saotk.C b/tksao/saotk.C
+index d6b7adb..28fcd17 100644
+--- a/tksao/saotk.C
++++ b/tksao/saotk.C
+@@ -4,6 +4,8 @@
+ 
+ #include <tk.h>
+ 
++extern const char* Tkblt_InitStubs(Tcl_Interp*, const char*, int);
++
+ extern int FrameTrueColor8_Init(Tcl_Interp*);
+ extern int FrameTrueColor16_Init(Tcl_Interp*);
+ extern int FrameTrueColor24_Init(Tcl_Interp*);
+@@ -40,6 +42,8 @@ int Tksao_Init(Tcl_Interp* interp) {
+     return TCL_ERROR;
+   if (Tk_InitStubs(interp, TK_PATCH_LEVEL, 0) == NULL)
+     return TCL_ERROR;
++  if (Tkblt_InitStubs(interp, "3.2", 0) == NULL)
++    return TCL_ERROR;
+ 
+   if (FrameTrueColor8_Init(interp) == TCL_ERROR)
+     return TCL_ERROR;
diff --git a/debian/patches/series b/debian/patches/series
index bd0c665..5f25492 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -9,3 +9,4 @@ saotk_add_psscale.patch
 saotk_avoid_compile_warnings.patch
 saotk_use_system_libs.patch
 Fix-problem-with-graphs-and-image-zoomed-out.patch
+Initialize-tkblt-stubs.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/saods9.git



More information about the Debian-astro-commits mailing list