Tk Source Code

Check-in [d399f15e]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix [130949dafe]: build fails without zip: no rule to make minizip. The autoconf builds (unix and MinGW) used an external zip program to create the Tk library archive, with a fallback to minizip, but Tk's Makefiles never had a rule to build minizip. Create the archive with "zipfs mkzip" of Tcl 9, as makefile.vc has done since zip embedding was added ([30d0843b21]). The tclsh of the Tcl build directory or of the installed Tcl is used; TCLSH_NATIVE can be set to a host tclsh for cross-compiling. For static builds, tcl_library is copied from the archive of the static tclsh. This also removes the use of "find -empty", which Solaris find does not support.
Downloads: See separate download page
Timelines: family | ancestors | descendants | both | unix-zipfs-mkzip
Files: files | file ages | folders
SHA3-256: d399f15e5fe5e1f77e9e0991a0919474d0afdf0f994f7c63419b32ae727e132e
User & Date: serhiy.storchaka 2026-09-25 14:23:47.550
References
2026-09-25
14:33 • Open ticket [130949da]: Linux : no rule to make minizip needed to build libtk_8_7_a4.zip plus 5 other changes artifact: 2a60c3be user: serhiy.storchaka
Context
2026-10-05
08:13
Fall back to the zip program if no Tcl 9 shell runs on the build host, e.g. when cross-compiling, to create the Tk library archive. For static builds the Tcl library is taken from the archive of the static tclsh with "zip -A" and "zip -J". The variable for the native tclsh is renamed to NATIVE_TCLSH, as NATIVE_ZIP; the MinGW build also accepts TCLSH_NATIVE, as nmake does. check-in: 314d2909 user: serhiy.storchaka tags: unix-zipfs-mkzip
2026-09-25
14:23
Fix [130949dafe]: build fails without zip: no rule to make minizip. The autoconf builds (unix and MinGW) used an external zip program to create the Tk library archive, with a fallback to minizip, but Tk's Makefiles never had a rule to build minizip. Create the archive with "zipfs mkzip" of Tcl 9, as makefile.vc has done since zip embedding was added ([30d0843b21]). The tclsh of the Tcl build directory or of the installed Tcl is used; TCLSH_NATIVE can be set to a host tclsh for cross-compiling. For static builds, tcl_library is copied from the archive of the static tclsh. This also removes the use of "find -empty", which Solaris find does not support. check-in: d399f15e user: serhiy.storchaka tags: unix-zipfs-mkzip
13:02
Fix [9087fae43f]: configure: X11 header check always fails check-in: bf45f48c user: jan.nijtmans tags: trunk, main
Changes
Unified Diff Side-by-Side Diff Patch
Changes to unix/Makefile.in.
Changes to win/Makefile.in.