<i>tcltk-man2html.tcl: a Tk tree found next to --srcdir breaks the Tcl paths (exit 1, "not table of contents")</i>.
by
.
D 2026-10-18T10:31:31.833
J cmimetype text/x-fossil-wiki
J comment When\sTk\sis\snot\sin\sthe\sdirectory\sgiven\swith\s<tt>--srcdir</tt>\s(or\sthe\sdefault\s<tt>../..</tt>),\stools/tcltk-man2html.tcl\slooks\sfor\sit\sin\sthe\sparent\sdirectory\stoo,\sand\stakes\sthe\sfirst\stree\swhose\sgeneric/tk.h\shas\sa\smatching\sversion,\seven\san\sunrelated\sone.\sWith\sTcl\sin\s<tt>a/tcl</tt>\sand\sTk\sin\s<tt>tk</tt>\snext\sto\s<tt>a</tt>:\n\n<verbatim>\n$\stclsh\stools/tcltk-man2html.tcl\s--srcdir=a\s--htmldir=out\nusing\sTcl\ssource\sdirectory\sa/tcl\nusing\sTk\ssource\sdirectory\sa/../tk\n...\nscanning\ssection\sTcl\sCommands\n\nwish:\sKEYWORDS:\smake-manpage-section:\snot\stable\sof\scontents.\n</verbatim>\n\nand\sit\sexits\swith\sstatus\s1,\sleaving\sincomplete\soutput.\s<tt>findversion</tt>\sreturns\sthe\sparent\sdirectory\sas\sthe\snew\scommon\sprefix,\swhich\sis\sstored\sin\sthe\svariable\s<tt>tcltkdir</tt>\sshared\swith\sTcl,\sso\sall\sTcl\spaths\s(<tt>$tcltkdir/$tcldir</tt>)\sthen\spoint\sto\sa\snonexistent\s<tt>a/../tcl</tt>.\sThe\sversion\scheck\sonly\scompares\s<tt><nowiki>[8-9].[0-9]</nowiki></tt>,\sso\swith\s9.0\sit\salso\stook\sa\s9.1\sTk\stree\sthat\shappened\sto\sbe\sthere.\n\nSeen\swith\s9.0.5\sand\s9.1.0;\s8.6\sdoes\snot\ssearch\sthe\sparent\sdirectory\sand\sstops\swith\s"couldn't\sfind\sTk".\n\nProposed\sfix\sin\sbranch\s[/timeline?r=man2html-tk-beside|man2html-tk-beside]:\swhen\sthe\sTcl\shelp\sis\sbuilt\stoo,\sa\sTk\stree\sfound\soutside\sthe\sTcl\sdirectory\sis\snot\sused.\sWithout\sa\susable\sTk\sthe\stool\sbuilds\sthe\sTcl\shelp\sonly\sand\ssays\sso,\sunless\s<tt>--tk</tt>\swas\sgiven,\swhich\sis\sstill\san\serror\s(this\salso\scovers\sthe\scase\sof\s[9babefdccc]).
J foundin 9.0.5,\s9.1.0
J login serhiy.storchaka
J priority 5\sMedium
J resolution None
J severity Minor
J status Open
J subsystem 53.\sConfiguration\sand\sBuild\sTools
J title tcltk-man2html.tcl:\sa\sTk\stree\sfound\snext\sto\s--srcdir\sbreaks\sthe\sTcl\spaths\s(exit\s1,\s"not\stable\sof\scontents")
J type Bug
K 7dc0420245e1d460c384806fc4a4f644e1e40006
U serhiy.storchaka
Z 0cc3e456918f1289d3d987d10531d8d0