Skip to content
Tcl Source Code Artifact [1dd75545f9]
Login

Artifact [1dd75545f9]

Artifact 1dd75545f92f33f425a88bf75656ded24b1438b2:

Ticket change [1dd75545f9] - New ticket [2990516fffffffff|2990516fff] <i>TM default paths do not search custom --libdir</i>. by dgp on 2010-04-21 17:36:57.
D 2010-04-21T17:36:57
J assignee dgp
J cmimetype text/plain
J comment \nThe\sdefault\spaths\sset\sin\s[tcl::tm::path]\sare\srooted\sat\n\n[file\sdirname\s[info\slibrary]]\n\nand\n\n[file\sjoin\s[file\sdirname\s[file\sdirname\s[file\snormalize\s[info\snameofexecutable]]]]\slib]\n\nThe\sfirst\swants\sto\ssearch\snear\sTcl's\sscript\slibrary\swhich\sis\na\ssensible\splace\sTMs\smight\shave\sbeen\sinstalled.\n\nThe\ssecond\sis\smore\sproblematic.\s\sIf\sone\sassumes\s[info\snameofexecutable]\nis\smeant\sto\sbe\stclsh\sin\sits\snormal\sinstalled\slocation,\sthen\sthe\sconstruction\nis\sattempting\sto\sproduce\sthe\sdefault\svalue\sof\s$(libdir)\sfor\sa\sTcl\sinstall\nwhich\sis\sthe\sright\splace\sfor\sany\sTM\scontaining\sbinary\sparts\sto\sget\ninstalled.\n\nHowever,\sTcl\spermits\scustomization\sof\s$(libdir).\s\sOne\splace\sthis\sis\ncommonly\sused\sis\son\ssystems\swith\sboth\s32-\sand\s64-\sbit\scollections\nof\sbinaries\sinstalled.\s\sOn\ssuch\ssystems\sa\s64-bit\sbuild\sof\sTcl\smight\nbe\scustomized\sto\sinstall\sinto\sa\s$(libdir)\slike\s/usr/lib64\s.\s\sThat\spath\ncan\snever\sbe\sconstructed\sfrom\sthe\sTM\sdefaults,\sbecause\sthat\ndefault\shardcodes\sin\sthe\slast\selement\s"lib".\n\nBy\sanalogy,\sthe\solder\s[tclPkgUnknown]\spackage\sdiscovery\nsystem\spotentially\shas\sthe\ssame\sproblem,\sand\shas\sworked\naround\sit\svia\sthe\svariable\s::tcl_pkgPath\swhere\sthe\sactual\nconfigured\svalue\sof\s$(libdir)\sgets\sstored\sand\sretrieved\sto\neventually\sfind\sits\sway\sonto\sthe\s$::auto_path\s.\s\sIt's\sa\srather\nugly\ssolution\sand\sI'm\snot\srecommending\scopying\sit.\s\sJust\nnoting\sthat\sthis\sis\snot\sa\snew\sproblem\sto\ssolve.\n\nI\sthink\sthe\sright\splace\sto\sfind\sthe\svalue\sis\sin\sthe\sresult\nreturned\sby\sthe\scommand\n\n[tcl::pkgconfig\sget\slibdir,runtime]\n\nThis,\sof\scourse,\smeans\swe\swill\shave\sa\srenewed\sinterest\nin\smaking\sthat\scommand\sactually\swork.\n
J foundin None
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter dgp
J subsystem 39.\sPackage\sManager
J title TM\sdefault\spaths\sdo\snot\ssearch\scustom\s--libdir
J type Bug
K 2990516fffffffffffffffffffffffffffffffff
U dgp
Z 86efe23034b2cb7f0caca76cdc416b8d