pkgIndex.tcl breaks Tcl 7
Closed / Fixed918137ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2004-03-17 16:42:33
If the Thread package gets installed
in a directory that happens to be on
the auto_path of a Tcl 7 interpreter,
its index script (pkgIndex.tcl) causes
errors in that interpreter. This can
be corrected by a rewrite of Thread's
pkgIndex.tcl.in file to:
# Tcl package index file, version 1.1
if {![package vsatisfies [package provide Tcl] 8.3]}
{return}
if {[string equal 8.3 [package provide Tcl]]} {
package ifneeded Thread @THREAD_VERSION_SUBSET83@ \
[list load [file join $dir
@thread_LIB_FILE@] Thread]
} else {
package ifneeded Thread @VERSION@ \
[list load [file join $dir
@thread_LIB_FILE@] Thread]
}
package ifneeded Ttrace @TTRACE_VERSION@ \
[list source [file join $dir ttrace.tcl]]
(Patch also attached.)
See also http://wiki.tcl.tk/5900
dgpplain2004-03-17 23:42:33
File Added - 80430: index.patch
vasiljevicplain2004-03-18 19:20:11
Logged In: YES user_id=95086 Yes. This has never been tested. The reason is that thread package would work first at 8.3 and later. I will however fix the pkgIndex.tcl accordingly. In the new upcoming 2.6 version.
vasiljevic Closed ticket [918137ffff].
[History diff]2004-04-02 16:56:45
dgp Ticket [918137ffff]: 1 change
[History diff]2004-04-02 22:07:39
Log in (anonymous is fine) to add a comment.
Attachments:
- index.patch [download] added by dgp on 2004-03-17 23:42:33. [details]