TEA (tclconfig) Source Code

View Ticket
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to [email protected]
or submit via the online form by Sep 9.
Ticket UUID: 00ed054f4fd86af9f3484f4defd6528101c7dc7b
Title: Search in Debian per-version directories
Type: Patch Version:
Submitter: anonymous Created on: 2013-12-23 20:36:37
Subsystem: 85. tclconfig Assigned To: jan.nijtmans
Priority: 6 Severity: Minor
Status: Closed Last Modified: 2013-12-29 10:59:04
Resolution: Fixed Closed By: jan.nijtmans
    Closed on: 2013-12-29 10:59:04

In Debian, tclConfig.sh installs into /usr/lib/tcl8.?, with a symlink in /usr/lib for a default version. However, the default version symlink is present only if tcl-dev package is installed, while tcl8.* packages don't install it themselves.

It'd be cool if tcl.m4 checked those per-version locations too:

From: Andrew Shadura <[email protected]>

As Debian supports multiple parallel installations of Tcl, allow using any available of them if no default selected. 

--- a/tcl.m4
+++ b/tcl.m4
@@ -138,6 +138,7 @@
 			`ls -d /usr/contrib/lib 2>/dev/null` \
 			`ls -d /usr/lib 2>/dev/null` \
 			`ls -d /usr/lib64 2>/dev/null` \
+			`ls -d /usr/lib/tcl[[8-9]].[[0-9]] 2>/dev/null` \
 			; do
 		    if test -f "$i/tclConfig.sh" ; then
 			ac_cv_c_tclconfig="`(cd $i; pwd)`"

User Comments: jan.nijtmans added on 2013-12-29 10:59:04:

Fixed in [9fb41ed228]. Just one remark: It's better to check 8.6 before 8.5 implicitly (the only two supported versions), otherwise if both are installed the one chosen depends on the order produced by the ls command.