Overview
| Artifact ID: | 689ae0a24f4077104c107dbe60ce0222deaa18434e4bc7c225f63f9b009e198d |
|---|---|
| Ticket: | 1555016064a4a70a5eb7caa2f019e98d2dffc8ff
Incremental build does not pick up changes in library/ (stale library zip) |
| User & Date: | apnadkarni on 2026-11-23 01:41:22 |
Changes
- 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"