| Ticket UUID: | 447022 | |||
| Title: | tcllib packages not immediately loadable | |||
| Type: | Bug | Version: | None | |
| Submitter: | dgp | Created on: | 2001-08-02 02:20:07 | |
| Subsystem: | None | Assigned To: | andreas_kupries | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2001-08-03 01:12:27 | |
| Resolution: | Fixed | Closed By: | andreas_kupries | |
| Closed on: | 2001-08-02 18:12:27 | |||
| Description: |
With Tcl 8.2.3...
Install tcllib 1.0. Then try the demo in the
ftp module:
$ cd modules/ftp
$ wish ftpdemo.tcl
Error in startup script: can't find package ftp 2.0
while executing
"package require ftp 2.0"
(file "ftpdemo.tcl" line 25)
The problem is that tcllib doesn't install its
constituent packages in a directory relative
to the default $::auto_path where they will
be loaded.
After one failed [package require], the index
script for "tcllib" itself will augment $::auto_path
with an additional search directory, so the packages
will be found on the second attempt.
Later releases of Tcl (8.3.1+) have changed the
default [package unknown] behavior so that it
keeps searching for pkgIndex.tcl files as long
as the value of $::auto_path keeps changing...
...but if tcllib's installation depends on that,
then the whole tcllib collection ought to
package require Tcl 8.3.1
I think we want (most of) tcllib usable with Tcl 8.2.
This can be accomplished with some special
processing in tcllib's index script.
| |||
| User Comments: |
andreas_kupries added on 2001-08-03 01:12:27:
Logged In: YES user_id=75003 Patch committed. andreas_kupries added on 2001-08-02 23:05:33: Logged In: YES user_id=75003 I should have scrolled down. Maybe I do need a coffee in the morning :) dgp added on 2001-08-02 22:39:34: Logged In: YES user_id=80530 The patch is attached to this bug report. andreas_kupries added on 2001-08-02 22:32:17: Logged In: YES user_id=75003 Do you have a patch for this ? Or alternatively can you give me an idea how to do the special processing ? dgp added on 2001-08-02 10:32:44: File Added - 9152: mkIndex.patch Logged In: YES user_id=80530 Here's a patch. | |||
Attachments:
- mkIndex.patch [download] added by dgp on 2001-08-02 10:32:44. [details]
