Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2021-01-29
12:28 • Closed ticket [16e9b297df]: 8.7: --enable-zipfs is overloaded with multiple mean... artifact: 3241d6f1f8 user: jan.nijtmans
09:58 • Ticket [16e9b297df]: 3 changes artifact: 1b3bf21ab2 user: bll
2020-09-28
17:52 • Ticket [16e9b297df]: 3 changes artifact: 004e0b2ca6 user: bll
2020-09-22
12:55 • New ticket [16e9b297df]. artifact: adc96bb3ba user: bll

8.7: --enable-zipfs is overloaded with multiple meanings

Closed / Invalid16e9b297dfb314693954d66a86bfc209d76b88bfCreated 6 years agoUpdated 6 years ago
Descriptionplain2020-09-22 12:55:43
When using --enable-zipfs, two different changes are made:
  - The zipfs extension is enabled and built
  - The Tcl library is packaged as a zipfs and attached to the shared library.
When using --disable-zipfs:
  - The zipfs extension is not built
  - The directory layout for files is used.

--enable-zipfs' meaning should not be overloaded.

Preferred behavior:

  --enable-zipfs
    Enable the zipfs extension and build it.
    (default)
  --disable-zipfs
    Disable the zipfs extension.

  --enable-zipfs-library=embed
    Embed the Tcl library as a zipfs in the shared library.
    (default for Linux and Windows)
  --enable-zipfs-library=<location>
    Create a zipfs file with the Tcl library and save it to <location>.
    (default for Mac OS)
  --disable-zipfs-library
    The directory layout is used.
bll Ticket [16e9b297df]: 3 changes [History diff]2020-09-28 17:52:58
bllplain2021-01-29 09:58:19
Related tickets:

https://core.tcl-lang.org/tcl/info/113be1991e726247

https://core.tcl-lang.org/tcl/info/92c2169782c2e006
jan.nijtmanswiki2021-01-29 12:28:34

OK, let's try.

$ configure --disable-zipfs $ make runtest % zipfs wrong # args: should be "zipfs subcommand ?arg ...?" %

So, the "zipfs" extension is build-in OK, it's only not really usable because there is no zip-file available. But attaching a zip-file (without recompiling anything) and zipfs is usable again.

Conclusion: --enable-zipfs only controls whether a zip-file is attached to the executable/shared library. The "zipfile" command is available in Tcl 8.7 always.

Log in (anonymous is fine) to add a comment.