summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2014-01-05 12:41:44 (EST)
committer P. J. McDermott <pjm@nac.net>2014-01-05 12:41:44 (EST)
commit256e11e0009d35a9f4eba1f435762cc56b51c24b (patch)
tree70342ff8164f8d31d64ca5798674bb7fd5885456
parentc0cf7e792659de0def4c97b30412b07f72135dc2 (diff)
Add patch to fix TCL_SRC_DIR, etc.
-rw-r--r--patches/01_tcl-private.patch47
1 files changed, 47 insertions, 0 deletions
diff --git a/patches/01_tcl-private.patch b/patches/01_tcl-private.patch
new file mode 100644
index 0000000..13488c2
--- /dev/null
+++ b/patches/01_tcl-private.patch
@@ -0,0 +1,47 @@
+From: Chris Waters <xtifr@debian.org>
+Origin: <http://anonscm.debian.org/viewvc/pkg-tcltk/tcl8.6/branches/experimental/debian/patches/tclprivate.diff?revision=1447&view=markup&pathrev=1447>
+Subject: Set TCL_SRC_DIR and other paths to a directory under /usr/include
+
+Some packages (e.g. expect) look for Tcl private headers either next to the
+public headers or in the Tcl source code (cf. the definition of the
+"TEA_PRIVATE_TCL_HEADERS" M4 macro). We install Tcl's private headers under
+/usr/include, so with this patch we can point TCL_SRC_DIR to the headers.
+
+diff -Naur src.orig/unix/tclConfig.sh.in src/unix/tclConfig.sh.in
+--- src.orig/unix/tclConfig.sh.in 2013-09-19 16:17:13.000000000 -0400
++++ src/unix/tclConfig.sh.in 2014-01-05 12:13:40.001771263 -0500
+@@ -100,7 +100,7 @@
+
+ # String to pass to linker to pick up the Tcl library from its
+ # build directory.
+-TCL_BUILD_LIB_SPEC='@TCL_BUILD_LIB_SPEC@'
++TCL_BUILD_LIB_SPEC='@TCL_LIB_SPEC@'
+
+ # String to pass to linker to pick up the Tcl library from its
+ # installed directory.
+@@ -135,7 +135,7 @@
+ # different place than the directory containing the source files, this
+ # points to the location of the sources, not the location where Tcl was
+ # compiled.
+-TCL_SRC_DIR='@TCL_SRC_DIR@'
++TCL_SRC_DIR='@includedir@/tcl-private'
+
+ # List of standard directories in which to look for packages during
+ # "package require" commands. Contains the "prefix" directory plus also
+@@ -153,14 +153,14 @@
+
+ # String to pass to linker to pick up the Tcl stub library from its
+ # build directory.
+-TCL_BUILD_STUB_LIB_SPEC='@TCL_BUILD_STUB_LIB_SPEC@'
++TCL_BUILD_STUB_LIB_SPEC='@TCL_STUB_LIB_SPEC@'
+
+ # String to pass to linker to pick up the Tcl stub library from its
+ # installed directory.
+ TCL_STUB_LIB_SPEC='@TCL_STUB_LIB_SPEC@'
+
+ # Path to the Tcl stub library in the build directory.
+-TCL_BUILD_STUB_LIB_PATH='@TCL_BUILD_STUB_LIB_PATH@'
++TCL_BUILD_STUB_LIB_PATH='@TCL_STUB_LIB_PATH@'
+
+ # Path to the Tcl stub library in the install directory.
+ TCL_STUB_LIB_PATH='@TCL_STUB_LIB_PATH@'