Tk Source Code

View Ticket
Login
Ticket UUID: bddc93017d7db0262fa69b90c183ca67cf61e97c
Title: `make` fails on Tk trunk with Tcl trunk
Type: Bug Version: trunk
Submitter: dgp Created on: 2024-12-06 14:30:18
Subsystem: 84. Unix Build Assigned To: jan.nijtmans
Priority: 5 Medium Severity: Important
Status: Closed Last Modified: 2024-12-07 08:07:39
Resolution: Fixed Closed By: apnadkarni
    Closed on: 2024-12-07 08:07:39
Description:
$ cd tcl/unix
$ ./configure --disable-shared
...
$ make
...
$ cd .../path/to/tk/unix
$ ./configure --disable-shared --with-tcl=.../path/to/tcl/unix
...
$ make
....
creating libtk9.0.1.zip from libtk.vfs/tk_library
	zip warning: expected 886 entries but found 0

zip error: Zip file structure invalid (../libtk9.0.1.zip)
make: [Makefile:626: libtk9.0.1.zip] Error 3 (ignored)
cd libtk.vfs && /usr/bin/zip -rq ../libtk9.0.1.zip *
make: *** [Makefile:627: libtk9.0.1.zip] Error 3


This failure is not observed in the releases Tcl 9.0.0 and Tk 9.0.0.
Something has regressed.
User Comments: apnadkarni added on 2024-12-07 08:07:39:

As a future (post 9.0.1) modification, should consider using Tcl's own zipfs * commands instead of relying on external utilities. (In all extensions, not just Tk). The nmake builds already do this iirc.


dgp added on 2024-12-06 16:15:58:
Confirm that change fixes the case reported.  Thanks!

jan.nijtmans added on 2024-12-06 15:18:51:

Fixed [fd0d1ad43588957a|here]

The Tk build uses the "zip -J" command to extract the zip-file from Tcl. This only works correctly, when the offsets in the zipfile are correct. Since in Tcl, "zip -A" is removed from the Makefile's, the offsets are not correct any more (the way "zip" considers the standard to be). Conclusions: the "zip -A" serves some purpose after all.

Easiest solution: Do a "zip -A" before doing the "zip -J" in Tk. This has the advantage that "zipfs info" keeps working as expected.