Description of problem: The default search path for Tcl 8.5 does not include /usr/lib. This is a problem because Tk's pkgIndex.tcl is at /usr/lib/tk8.5. For legacy code that used the convention: package require Tk the tclsh interpreter will be unable to find the Tk package. This can be mitigated with: lappend auto_path /usr/lib prior to [package require]. However, older Tcl code should not be required to make this change. Note that this affects tclsh, not wish.
Do we forget something in our paths in tcl? Any thoughts?
I verified that this is indeed not working. One of our Tcl patches was supposed to fix how Tk is found, but doesn't seem to be working correctly at the moment. I'll take a closer look and follow up when I have more information.
I added another path into TCL_PACKAGE_PATH="${libdir}/tcl8.5 ${prefix}/share/tcl8.5 ${libdir}/tk8.5 ${TCL_PACKAGE_PATH}" Not sure if it's the best solution, but it's working. Tk should be the last problematic programme, which doesn't live in tcl8.5 directory.