<i>TCL_PACKAGE_PATH path is (wrongly) braced.</i> status still Closed with 5 other changes
by
.
D 2024-09-10T14:39:39.450
J closedate 2460564.11087326
J closer dgp
J icomment \r\nSome\sadditional\scommentary\son\show\sthis\sincompatible\schange\r\n(sort\sof)\sbreaks\sOOMMF.\r\n\r\nThe\sOOMMF\sproject\suses\sTcl\sscripts\sto\smanage\sthe\sbuild\sof\r\nits\sexecutables\sfrom\ssource\scode\son\smultiple\splatforms.\r\nEssentially\sa\svariation\son\s`make`,\sbut\swritten\sin\sTcl\sand\r\nworking\scross-platform\r\n\r\nSince\sthe\sexecutables\smake\suse\sof\sTcl,\sthe\sbuilds\soften\r\nwant\sto\sknow\ssomething\sabout\sthe\sinstallation\sof\sTcl\s(and\sTk)\r\nin\sorder\sto\spass\sthe\sright\soptions\sto\scompilers,\slinkers,\setc.\r\n\r\nOne\sthing\sthese\sscripts\swant\sto\sknow\sis\swhere\sthe\sC\slibraries\r\nfor\sTcl\sand\sTk\sare.\s\sHere\sis\sa\sstanza\sof\scode\sthat\sdetermines\r\nthat:\r\n\r\n\s\sif\s{[catch\s{tcl::pkgconfig\sget\slibdir,runtime}\slibdir]}\s{\r\n\s\s\s\sif\s{[catch\s{$configuration\sGetValue\sTCL_PACKAGE_PATH}\spp]}\s{\r\n\s\s\s\s\s\s\scontinue\r\n\s\s\s\s}\r\n\s\s\s\sset\slibdir\s[Oc_DirectPathname\s[lindex\s$pp\s0]]\r\n\s\s}\r\n\r\nAs\syou\scan\ssee\sthis\scode\srelies\son\sTCL_PACKAGE_PATH\sbeing\r\nin\sthe\sformat\sof\sa\sTcl\slist,\sas\sit\salways\swas.\s\sThe\snew\sformat\r\nbreaks\sthis.\r\n\r\nThe\scode\sonly\smakes\suse\sof\sTCL_PACKAGE_PATH\sas\sa\sfallback\r\nwhen\s[tcl::pkgconfig]\sfails.\s\sThis\shas\slong\sbeen\sin\sthe\r\ncode\sto\spermit\sthe\sscript\sto\swork\swhen\sthe\slocal\sTcl\sinstall\r\nis\sa\sversion\sbefore\sTcl\s8.5.\s\s(This\shas\sbeen\sa\sproject\sfor\r\na\svery\slong\stime).\s\sSince\s[tcl::pkgconfig]\sworks\sin\sall\r\nactive\ssupported\sTcl\sreleases\snow,\sthe\sbroken\scode\sis\salso\r\ncode\sthat\sis\snever\s(extremely\srarely???)\sexecuted.\s\sOtherwise\r\nI\smight\shave\snoticed\sthis\ssooner.\r\n\r\nAnyhow,\sI\swill\sconcede\sno\sactive\sharm\shere,\sbut\senough\sof\r\na\snear\smiss\sfor\sme\sto\sraise\swarnings\sthat\speople\suse\sthe\r\ninterfaces\sof\sTcl\s(including\sthings\slike\sthe\sformat\sof\r\nenvironment\svariables)\sin\smore\sways\sthan\syou\simagine\r\nand\soften\sdifferent\sfrom\sthe\srecommended\suse\syou\shave\sin\smind,\r\nand\sthat\schanging\sthese\sthings\sin\sa\spatch\srelease\srisks\r\ndamage\sand\sdisruption,\sand\sit\sreally\sis\sbest\sif\ssuch\r\nchanges\sget\sdiscussed\sbeyond\scomments\son\sone\sticket\seven\r\nwhen\sgoing\sinto\sa\snew\srelease\ssequence.
J login dgp
J mimetype text/plain
K 1b8a893ded5f2a9b0c70a5893c7a2be3429d8033
U dgp
Z a6b164dea1da03205ea9c528cee038f8