summaryrefslogtreecommitdiff
path: root/debian/patches/use-signal-not-tclx.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/use-signal-not-tclx.patch')
-rw-r--r--debian/patches/use-signal-not-tclx.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/debian/patches/use-signal-not-tclx.patch b/debian/patches/use-signal-not-tclx.patch
new file mode 100644
index 0000000..55342eb
--- /dev/null
+++ b/debian/patches/use-signal-not-tclx.patch
@@ -0,0 +1,40 @@
+Description: Use signal package instead of tclx
+ Since tclx package is deprecated the tcl-signal package was used as
+ a replacement.
+Author: Andrew Shadura <bugzilla@tut.by>
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/lib/main.tcl
++++ b/lib/main.tcl
+@@ -79,7 +79,7 @@
+ {Tk 8.5}
+ {img::png 1.3}
+ {tdom 0.8}
+- {Tclx 8.0}
++ {Signal 1.4}
+ {Tcl 8.2}
+ }
+
+@@ -192,9 +192,9 @@
+ }
+
+ # Tclx workarond for Debian
+- } elseif {$library == {Tclx}} {
++ } elseif {$library == {Signal}} {
+ set ::TCLX_AVAILABLE 0
+- puts stderr "\nERROR: Unable to load Tclx library, functionality will be limited"
++ puts stderr "\nERROR: Unable to load Signal library, functionality will be limited"
+ return
+ }
+
+@@ -759,8 +759,8 @@
+ exit 1
+ }
+
+- signal trap SIGINT {signal_handler SIGINT}
+- signal trap SIGTERM {signal_handler SIGTERM}
++ signal add SIGINT {signal_handler SIGINT}
++ signal add SIGTERM {signal_handler SIGTERM}
+ }
+
+