Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2026-10-22
17:19 • Ticket [87e840c26c] TIP 430 / zipfs failures status still Closed with 3 othe... artifact: eb7e505e05 user: serhiy.storchaka
2026-10-15
11:39 • Closed ticket [87e840c26c]. artifact: 72cb8b678e user: serhiy.storchaka
2021-02-19
09:45 • Pending ticket [87e840c26c]. artifact: 26f37e6968 user: jan.nijtmans
2021-02-08
17:05 • Ticket [87e840c26c]: 4 changes artifact: 2c19c08de4 user: jan.nijtmans
2021-02-04
14:33 • Ticket [87e840c26c]: 3 changes artifact: 44292e983b user: jan.nijtmans
2021-01-21
17:02 • Ticket [87e840c26c]: 3 changes artifact: 4c676252de user: apnadkarni
16:20 • Ticket [87e840c26c]: 3 changes artifact: c8907dce1a user: jan.nijtmans
2020-12-14
17:45 • Ticket [87e840c26c]: 3 changes artifact: d7314b2e39 user: jan.nijtmans
03:49 • New ticket [87e840c26c]. artifact: 08e88427aa user: apnadkarni

TIP 430 / zipfs failures

Closed / Fixed87e840c26cca1f18685ff6f943f2323664a19621Created 6 years agoUpdated 42 days ago
Descriptionplain2020-12-14 03:49:50
The following observations pertain to TIP 430 functionality for 8.7. Perhaps the work is still in progress, but no work seems to have happened in that area for many months. So logging here so they don't get lost sight of:

1.  Although the TEA build for tclsh builds a ZIP containing Tcl scripts and attaches it to the tcl87.dll, the same is not done for Tk (and wish). Is this intentional? The TIP does not talk about this but it seems inconsistent.

2. Related to the above, if the Tk scripts are manually attached to tk87.dll they are not found by wish (unlike tclsh).

3. The TIP states “If the first argument to Tclsh or Wish is detected to be a zipfile, that file will be mounted as ZIPFS_ROOT/app. If ZIPFS_ROOT/app/main.tcl exists, that file is marked set the shell's startup script.” Currently this does not seem to be the case. The file is treated as a standard Tcl script with obvious errors.

4. The TIP also states “If install is the first argument, set subsequent arguments are passed to a new file in library install.tcl.” This does not seem to be happening either.

5.  Cannot get “zipfs mkimg” to work with static builds. The input scripts seem to overwrite the Tcl and Tk libraries already attached to the executable. Have not tried with shared builds.

6. The test suite has no tests for zipfs other than some basic argument checking.
jan.nijtmanswiki2020-12-14 17:45:41

There's a "bug-87e840c26c" branch (in Tk) now, meant to work on this issue without the need to bother about Tcl 8.6 compatibility. This branch builds with Tcl 8.7 only.

Approach: 1) Make it work as expected with Tcl 8.7. 2) Worry about compatibility with Tcl 8.6 after that.

If compatibility with Tcl 8.6 gives more problems than expected, we can decide later what to do about it and if it is really worth it.

jan.nijtmans Ticket [87e840c26c]: 3 changes [History diff]2021-01-21 16:20:32
apnadkarniplain2021-01-21 17:02:05
Just a clarification - the nmake Tk build has already been modified to attach the Tcl and Tk zipkits to the DLL.
jan.nijtmansplain2021-02-04 14:33:35
"bug-87e840c26c" branch is getting into shape. It still depends on "zip" (not minizip), and it is not tested with 8.6 yet. But getting almost there.
jan.nijtmanswiki2021-02-08 17:05:33

> if the Tk scripts are manually attached to tk87.dll they are not found by wish

Well, I found the reason for this: It's a situation tcl_findLibrary (in auto.tcl) doesn't handle yet. Working on it .....

jan.nijtmanswiki2021-02-19 09:45:22

At least 1) and 2) are fixed now. I'm not sure if 3), 4) and 5) was a good idea anyway: The "zip" utility can do everything we want, it's not necessary to duplicate this functionality in tclsh. At least, that's my 2c. 6) is difficult to do as well, but we have "github actions" now to build everything.

serhiy.storchakawiki2026-10-15 11:39:52

Items 1, 2 and 6 fixed by [c10be39138], first released in 8.7a5/9.0. The first-argument zip and "install" handling of TIP 430 (items 3 and 4) is still not implemented (SUPPORT_BUILTIN_ZIP_INSTALL).

serhiy.storchaka Ticket [87e840c26c]: 3 changes [History diff]2026-10-22 17:19:27
Log in (anonymous is fine) to add a comment.