Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2026-11-24
17:07 • Pending ticket [1555016064]: Incremental build does not pick up changes in libra... artifact: a66853d400 user: jan.nijtmans
2026-11-23
05:15 • Ticket [1555016064]: 3 changes artifact: ee109c2980 user: serhiy.storchaka
01:41 • Ticket [1555016064]: 5 changes artifact: 689ae0a24f user: apnadkarni
2026-11-22
17:53 • Ticket [1555016064]: 4 changes artifact: 57fa84ea81 user: serhiy.storchaka
2026-11-10
16:58 • Ticket [7c9b3f3832] New http test failures status still Open with 3 other ch... artifact: d2e10eaf2a user: serhiy.storchaka
2026-10-20
18:11 • Ticket [1555016064] Incremental build does not pick up changes in library/ (stal... artifact: 430b20b8c3 user: serhiy.storchaka
2026-10-19
17:18 • New ticket [1555016064]. artifact: aeaabba987 user: serhiy.storchaka

Incremental build does not pick up changes in library/ (stale library zip)

Pending1555016064a4a70a5eb7caa2f019e98d2dffc8ffCreated 45 days agoUpdated 9 days ago
Descriptionwiki2026-10-19 17:18:06
With zipfs, an incremental build does not pick up changes in library/: after fossil update brings only Tcl library changes, make does nothing, and libtcl and tclsh keep the old library until make clean. This is what happened in [607d9a61d5]: the build kept tcl::idna 1.0.1 after the update to 1.0.2. The same happens with changes to library/encoding/*.enc.
$ touch library/cookiejar/idna.tcl    # or any change in library/
$ make                                # libtcl9.1.1.zip is not rebuilt

The rule for ${TCL_ZIP_FILE} in unix/Makefile.in and win/Makefile.in depends only on ${ZIP_INSTALL_OBJS} (and the DDE DLL on Windows), not on the library files. win/makefile.vc is not affected: it rebuilds the zip on every run.

Proposed fix in branch zip-depends-on-library: the zip file depends on the files and directories of library/, so a changed, added or removed file rebuilds it. Tested on Linux and with MSYS2 on Windows.

Referenced by1
  • d2e10eaf2aTicket [7c9b3f3832] New http test failures status still Open with 3 other changes ticket2026-11-10 16:58:17
serhiy.storchaka Ticket [1555016064]: 1 change [History diff]2026-10-20 18:11:29
serhiy.storchakawiki2026-11-22 17:53:39

Jan, could you please merge zip-depends-on-library? It still merges cleanly into main. Without it an incremental build silently keeps the old library scripts in the library zip after a "fossil update" or an edit in library/; I and others have fallen into this trap several times (today again: the installed 9.1 had the tcltest of October 30 after a rebuild).

apnadkarnimarkdown2026-11-23 01:41:22

I try not to touch the autoconf build system, but I believe that patch introduces a dependency on Gnu make which BSD folks (for example) may not desire.

serhiy.storchakawiki2026-11-23 05:15:40

I checked it with the native make of FreeBSD 15.1, NetBSD 10.2, OpenBSD 7.9 and DragonFly 6.4: $(wildcard ...) expands to an empty string (FreeBSD prints a warning, the others nothing) and the build succeeds. So with BSD make nothing changes (the zip is just not rebuilt automatically, as now), and with GNU make the stale library is fixed. unix/Makefile.in already uses GNU make functions ($(wildcard), $(addprefix), $(notdir) in valgrind_each).

jan.nijtmanswiki2026-11-24 17:07:45

Merged to [trunk]

> I checked it with the native make of FreeBSD 15.1, NetBSD 10.2, OpenBSD 7.9 and DragonFly 6.4: $(wildcard ...) expands to an empty string

So, this should not disturb anything on other platforms. Thanks!

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