Bug 436567

Summary: The default library paths for Tcl 8.5 does not include /usr/lib
Product: [Fedora] Fedora Reporter: J. Tang <jtang>
Component: tclAssignee: Marcela Mašláňová <mmaslano>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: low    
Version: rawhideCC: wart
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-03-17 14:56:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description J. Tang 2008-03-07 23:20:40 UTC
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.

Comment 1 Marcela Mašláňová 2008-03-11 13:04:49 UTC
Do we forget something in our paths in tcl?
Any thoughts?

Comment 2 Wart 2008-03-11 15:27:46 UTC
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.

Comment 3 Marcela Mašláňová 2008-03-17 14:56:45 UTC
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.