| Ticket UUID: | 1566418 | |||
| Title: | pkgIndex.tcl needs Tcl version guard | |||
| Type: | Bug | Version: | None | |
| Submitter: | dgp | Created on: | 2006-09-27 15:35:27 | |
| Subsystem: | 84. Unix Build | Assigned To: | andreas_kupries | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2006-09-28 01:44:25 | |
| Resolution: | Fixed | Closed By: | andreas_kupries | |
| Closed on: | 2006-09-27 18:44:25 | |||
| Description: |
After installing Tk 8.5a5,
when using Tcl 8.4 I see:
error reading package index file
/home/dgp/sparc/solaris2/lib/tk8.5/pkgIndex.tcl:
expected version number but got "8.5a5"
The installed pkgIndex.tcl file
needs another guard line that older
Tcl versions can eval without error:
if {[package vcompare [package provide Tcl] 8.5] != 0}
{ return }
| |||
| User Comments: |
andreas_kupries added on 2006-09-28 01:44:25:
Logged In: YES user_id=75003 Modified the various makefiles (windows too) and committed. dgp added on 2006-09-28 01:27:52: Logged In: YES user_id=80530 Yes. Too much cut & paste. Too little thinking from me. Thanks for coming up with the right answer. andreas_kupries added on 2006-09-28 01:22:15: Logged In: YES
user_id=75003
So we would have two guard conditions ? The problem is, the
guard condition based on the '8.5' would not work for Tcl
8.5, so Tcl 8.5 would no see Tk at all. Hm.
A second guard based on 'vsatisfies' however should work I
think.
if {![package vsatisifies [package provide Tcl] 8.5]} \
return
As an alpha satisfies the '8.5', whereas an 8.4 doesn't.
After that condition we can do the check that the versions
are fully identical.
| |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki