aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches/tclConfig_path.patch
blob: ed504e5029ba4d53df92f60b3412399bfd30ac86 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: 'info library' doesn't give the right directory on Debian and Ubuntu, construct it a different way.
Author: Unit 193 <unit193@ninthfloor.org>
Origin: vendor
Forwarded: no
Last-Update: 2014-11-29

Index: sqlitestudio-3.0.0/Plugins/ScriptingTcl/ScriptingTcl.pro
===================================================================
--- sqlitestudio-3.0.0.orig/Plugins/ScriptingTcl/ScriptingTcl.pro
+++ sqlitestudio-3.0.0/Plugins/ScriptingTcl/ScriptingTcl.pro
@@ -34,7 +34,7 @@ linux: {
     #message("Found tclsh: $$TCLSH (version: $$TCL_VERSION)")
 
     # Find tclConfig.sh
-    TCL_CONFIG_DIR = $$system(echo "puts [info library]" | tclsh)
+    TCL_CONFIG_DIR = /usr/lib/$$system(dpkg-architecture -qDEB_HOST_MULTIARCH)/tcl$$TCL_VERSION
     TCL_CONFIG = $$TCL_CONFIG_DIR/tclConfig.sh
 
     # Define other libs required when linking with Tcl