Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2004-04-02
22:07 • Ticket [918137ffff] pkgIndex.tcl breaks Tcl 7 status still Closed with 1 oth... artifact: 7aa043ad56 user: dgp
16:56 • Closed ticket [918137ffff]. artifact: 1256fa54fd user: vasiljevic
2004-03-18
19:20 • Ticket [918137ffff]: 4 changes artifact: 843345580d user: vasiljevic
2004-03-17
23:42 • Ticket [918137ffff]: 4 changes artifact: 560afcb559 user: dgp
23:42 • Add attachment index.patch to ticket [918137ffff] artifact: c28ef0e984 user: dgp
16:42 • New ticket [918137ffff] pkgIndex.tcl breaks Tcl 7. artifact: f8f7451991 user: dgp

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: