Skip to content
Tcl Source Code Artifact [c91c404a93]
Login

Artifact [c91c404a93]

Artifact c91c404a93984e37af398bb5e8b7ea17fe47ca0d:

Ticket change [c91c404a93] - New ticket [1655677fffffffff|1655677fff] <i>tcl_findLibrary is not thorough enough</i>. by wart on 2007-02-09 01:38:45.
D 2007-02-09T01:38:45
J assignee dgp
J cmimetype text/plain
J comment Let\sme\spreface\sby\sstating\sthat\sthis\sonly\scauses\sproblems\swhen\srunning\sTcl\swith\sa\sslightly\sstripped-down\sauto_path.\s\sI\srealize\sthis\sis\sa\snon-standard\sconfiguration,\sbut\shope\sthat\sthe\ssolution\smakes\ssense\sin\sthe\sgeneral\scase\sas\swell.\n\nThe\stcl_findLibrary\sprocedure\sis\sused\sto\slocate\sa\spackages\sfoo.tcl\sscript\sby\slooking\sin\sa\sfew\scommon\slocations.\s\sUnfortunately,\sit\sdoes\snot\slook\sin\sthe\ssibling\sdirectory\sof\sTcl's\sown\sscript\slibrary.\s\sThis\scauses\sproblems\sfor\sTk\swhen\sTcl\sis\sbuilt\swith\sa\srestricted\sauto_path.\n\nOne\sdirectory\sthat\sis\snot\sused\sin\sthis\ssearch\sis\sthe\ssibling\sof\s[::tcl::pkgconfig\sget\sscriptdir,runtime]:\n\nset\svalue\s[::tcl::pkgconfig\sget\sscriptdir,runtime]\n[file\sjoin\s[file\sdirname\s$value]\s$basename$version]\n\nFor\sexample,\sif\sTcl's\sscript\slibrary\sis\sinstalled\sin\s/usr/share/tcl8.5,\sthen\stcl_findLibrary\sshould\slook\sfor\sfoo's\sscript\slibrary\sin\s/usr/share/foo8.5.\n\nThis\sis\snot\san\sissue\sin\sthe\sstandard\sTcl/Tk\sinstallation\sbecause\stcl_findLibrary\salso\ssearches\sin\ssubdirectories\sof\sauto_path,\swhich\sincludes\sthe\smassive\s/usr/lib\sand\s/usr/share\sdirectories.\s\sBut\sif\sTcl\sis\sused\swith\sa\srestricted\sauto_path\scontaining\sonly\s/usr/share/tcl8.5\sand\s/usr/lib/tcl8.5,\sthen\sit\swon't\sfind\stk's\stk.tcl\sin\s/usr/share/tk8.5.\n\nAlso\snote\sthat\sthe\sfollowing\scomment\sin\s$tk_src_dir/generic/tkInitScript.h\sis\sincorrect,\s$tcl_library/../tk$tk_version\sis\s_not_\sa\sdirectory\sthat\sis\ssearched:\n\n"\s*\sIn\sorder\sto\sfind\stk.tcl\sduring\sinitialization,\sthe\sfollowing\sscript\sis\n\s*\sinvoked\sby\sTk_Init().\sIt\slooks\sin\sseveral\sdifferent\sdirectories:\n\s*\n\s*\s\s\s\s\s\s$tk_library\s\s\s\s\s\s\s\s\s\s\s\s\s-\scan\sspecify\sa\sprimary\slocation,\sif\sset\sno\n\s*\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sother\slocations\swill\sbe\schecked\n\s*\n\s*\s\s\s\s\s\s$env(TK_LIBRARY)\s\s\s\s\s\s\s\s-\shighest\spriority\sso\suser\scan\salways\soverride\n\s*\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sthe\ssearch\spath\sunless\sthe\sapplication\shas\n\s*\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sspecified\san\sexact\sdirectory\sabove\n\s*\n\s*\s\s\s\s\s\s$tcl_library/../tk$tk_version\n\s*\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s-\slook\srelative\sto\sinit.tcl\sin\san\sinstalled\n\s*\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\slib\sdirectory\s(e.g.\s/usr/local)\n"
J foundin obsolete:\s8.5a5
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter wart
J subsystem 38.\sInit\s-\sLibrary\s-\sAutoload
J title tcl_findLibrary\sis\snot\sthorough\senough
J type RFE
K 1655677fffffffffffffffffffffffffffffffff
U wart
Z 17b084934539403379f403958e3b3a10