Artifacts Associated With Ticket 1555016064
Ticket change [aeaabba987] (rid 259290) by serhiy.storchaka on 2026-10-19 17:18:06:
- cmimetype initialized to: "text/x-fossil-wiki"
- comment initialized to:
With zipfs, an incremental build does not pick up changes in <tt>library/</tt>: after <tt>fossil update</tt> brings only Tcl library changes, <tt>make</tt> does nothing, and <tt>libtcl</tt> and <tt>tclsh</tt> keep the old library until <tt>make clean</tt>. This is what happened in [607d9a61d5]: the build kept <tt>tcl::idna</tt> 1.0.1 after the update to 1.0.2. The same happens with changes to <tt>library/encoding/*.enc</tt>. <verbatim> $ touch library/cookiejar/idna.tcl # or any change in library/ $ make # libtcl9.1.1.zip is not rebuilt </verbatim> The rule for <tt>${TCL_ZIP_FILE}</tt> in <tt>unix/Makefile.in</tt> and <tt>win/Makefile.in</tt> depends only on <tt>${ZIP_INSTALL_OBJS}</tt> (and the DDE DLL on Windows), not on the library files. <tt>win/makefile.vc</tt> is not affected: it rebuilds the zip on every run. Proposed fix in branch [/timeline?r=zip-depends-on-library|zip-depends-on-library]: the zip file depends on the files and directories of <tt>library/</tt>, so a changed, added or removed file rebuilds it. Tested on Linux and with MSYS2 on Windows. - foundin initialized to: "9.1.0"
- login: "serhiy.storchaka"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- subsystem initialized to: "53. Configuration and Build Tools"
- title initialized to:
Incremental build does not pick up changes in library/ (stale library zip)
- type initialized to: "Bug"
Ticket change [430b20b8c3] (rid 259542) by serhiy.storchaka on 2026-10-20 18:11:29:
- submitter changed to: "serhiy.storchaka"
Ticket change [57fa84ea81] (rid 262024) by serhiy.storchaka on 2026-11-22 17:53:39:
- assignee changed to: "jan.nijtmans"
- icomment:
Jan, could you please merge [/timeline?r=zip-depends-on-library|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).
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
Ticket change [689ae0a24f] (rid 262033) by apnadkarni on 2026-11-23 01:41:22:
- closer changed to: "nobody"
- comment changed to:
With zipfs, an incremental build does not pick up changes in <tt>library/</tt>: after <tt>fossil update</tt> brings only Tcl library changes, <tt>make</tt> does nothing, and <tt>libtcl</tt> and <tt>tclsh</tt> keep the old library until <tt>make clean</tt>. This is what happened in [607d9a61d5]: the build kept <tt>tcl::idna</tt> 1.0.1 after the update to 1.0.2. The same happens with changes to <tt>library/encoding/*.enc</tt>. <verbatim> $ touch library/cookiejar/idna.tcl # or any change in library/ $ make # libtcl9.1.1.zip is not rebuilt </verbatim> The rule for <tt>${TCL_ZIP_FILE}</tt> in <tt>unix/Makefile.in</tt> and <tt>win/Makefile.in</tt> depends only on <tt>${ZIP_INSTALL_OBJS}</tt> (and the DDE DLL on Windows), not on the library files. <tt>win/makefile.vc</tt> is not affected: it rebuilds the zip on every run. Proposed fix in branch [/timeline?r=zip-depends-on-library|zip-depends-on-library]: the zip file depends on the files and directories of <tt>library/</tt>, so a changed, added or removed file rebuilds it. Tested on Linux and with MSYS2 on Windows. - icomment:
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.
- login: "apnadkarni"
- mimetype: "text/x-markdown"
Ticket change [ee109c2980] (rid 262034) by serhiy.storchaka on 2026-11-23 05:15:40:
- icomment:
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).
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [a66853d400] (rid 262078) by jan.nijtmans on 2026-11-24 17:07:45:
- icomment:
Merged to [2f6d1b8032|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!
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Pending"
- icomment: