<i>tcltk-man2html.tcl: a Tk tree found next to --srcdir breaks the Tcl paths (exit 1, "not table of contents")</i> status still Open with 5 other changes
by
.
D 2026-10-21T17:53:45.978
J assignee dkf
J closer nobody
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>:\r\n\r\n<verbatim>\r\n$\stclsh\stools/tcltk-man2html.tcl\s--srcdir=a\s--htmldir=out\r\nusing\sTcl\ssource\sdirectory\sa/tcl\r\nusing\sTk\ssource\sdirectory\sa/../tk\r\n...\r\nscanning\ssection\sTcl\sCommands\r\n\r\nwish:\sKEYWORDS:\smake-manpage-section:\snot\stable\sof\scontents.\r\n</verbatim>\r\n\r\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.\r\n\r\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".\r\n\r\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 login dgp
J mimetype text/plain
K 7dc0420245e1d460c384806fc4a4f644e1e40006
U dgp
Z d7daaaba09620aaf0d56bec324f943df