Bug 436567 - The default library paths for Tcl 8.5 does not include /usr/lib
Summary: The default library paths for Tcl 8.5 does not include /usr/lib
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: tcl
Version: rawhide
Hardware: All
OS: Linux
low
high
Target Milestone: ---
Assignee: Marcela Mašláňová
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-03-07 23:20 UTC by J. Tang
Modified: 2008-03-17 14:56 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-03-17 14:56:45 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.