Overview
| Artifact ID: | cc9431b2e3b4678e46d9cdd5e96365ea2432d92053a39d9656968fb3cd102c8e |
|---|---|
| Ticket: | b2e3cbdc8fedeff29be5355576ac9e9af3a3d4f3
`make html` fails |
| User & Date: | serhiy.storchaka on 2026-10-20 12:40:54 |
Changes
- foundin changed to: "9.1.0"
- icomment:
Reproduced on main with source directories named tcl9.1b1 and tk9.1b1, exactly as reported. The cause is in <tt>findversion</tt> in tools/tcltk-man2html.tcl: <tt>foreach top1 {$top $top/..} sub {{} generic}</tt> pairs the two lists, so it only tries <tt>$top/<dir>/tk.h</tt> and <tt>$top/../<dir>/generic/tk.h</tt>. After Tcl is found the search for Tk starts from the parent directory, so <tt>tk9.1b1/generic/tk.h</tt> is never checked, and Tk is only found if its directory is named <tt>tk$useversion</tt>; the empty Tk directory then gives "not table of contents". Proposed fix in branch [/timeline?r=man2html-find-tk-generic|man2html-find-tk-generic]: try both subdirectories for each search root. <tt>make html</tt> then works with tcl9.1b1/tk9.1b1; the output for a checkout layout is unchanged. Related: [7dc0420245] (branch [/timeline?r=man2html-tk-beside|man2html-tk-beside]) is about the opposite case, an unrelated Tk tree found next to the source directory. Both change how tcltk-man2html.tcl finds Tk, in different places, so the branches can be merged together. - login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"