From: Torsten B. <be...@ty...> - 2024-07-30 22:01:08
|
Hi, thanks for looking into the tickets! Not totally sure if this helps but TIP 430 says: Tcl will now attempt to find a zip encoder in the environment. If a TIP #430 savvy tclsh is discovered, that shell will be used. Failing that, the system will search for an executable named zip. Failing that, tcl will build it's own zip encoder. When it cannot locate a zip encoded in the environment, Tcl will now build a copy of the minizip program, whose source is currently distributed in /compat/zlib/contrib/minizip. The tcl.m4macro now detects if the compiler used can produce native native executables, and in cases where it cannot, will search for a C compiler that can, an substitute that value into the Makefile as HOST_CC. The C compiler will generate a native executable minizip which will be compiled in the same directory as tcl, and be used for all archive creation. This sounds to me as if zlib is not a hard dependency but I haven't checked the implementation for whether it actually follows that specification. Regards, Torsten > Am 30.07.2024 um 17:53 schrieb apnmbx-public--- via Tcl-Core <tcl...@li...>: > > Starting to look into Torsten’s tickets re. zipfs and documentation, the first question I ran into was whether availability of zlib is mandatory for Tcl. It is auto-detected by the configure script but the build fails if it is not available. Fixing the build results in a Tcl initialization failure (tcl_library_init not found). > > So my questions > > Is zlib a hard dependency for Tcl 9 (actually 8.7 as well) ? I don’t know if that was the intent of TIP 430. > If yes, shouldn’t the configure itself fail? > If no, some work will be required I presume to get the initialization working without zipfs. (May or may not be trivial, have not checked). In that case, is it something that can be postponed to 9.1 (i.e. 9.0 will require zlib) > > /Ashok > _______________________________________________ > Tcl-Core mailing list > Tcl...@li... <mailto:Tcl...@li...> > https://lists.sourceforge.net/lists/listinfo/tcl-core <https://lists.sourceforge.net/lists/listinfo/tcl-core> |