Skip to content
Tcl Source Code Artifact [61c1d2a5e6]
Login

Artifact [61c1d2a5e6]

Artifact 61c1d2a5e6b8b901f6bd7061710c614b8e4b3b0cc895e276865a28249f183a66:

Ticket change [61c1d2a5e6] - Ticket [2990516fffffffff|2990516fff] <i>TM default paths do not search custom --libdir</i> status still Open with 6 other changes by aspect on 2019-03-02 07:14:36.
D 2019-03-02T07:14:36.272
J closer nobody
J comment The\sdefault\spaths\sset\sin\s[tcl::tm::path]\sare\srooted\sat\r\n\r\n[file\sdirname\s[info\slibrary]]\r\n\r\nand\r\n\r\n[file\sjoin\s[file\sdirname\s[file\sdirname\s[file\snormalize\s[info\snameofexecutable]]]]\slib]\r\n\r\nThe\sfirst\swants\sto\ssearch\snear\sTcl's\sscript\slibrary\swhich\sis\r\na\ssensible\splace\sTMs\smight\shave\sbeen\sinstalled.\r\n\r\nThe\ssecond\sis\smore\sproblematic.\s\sIf\sone\sassumes\s[info\snameofexecutable]\r\nis\smeant\sto\sbe\stclsh\sin\sits\snormal\sinstalled\slocation,\sthen\sthe\sconstruction\r\nis\sattempting\sto\sproduce\sthe\sdefault\svalue\sof\s$(libdir)\sfor\sa\sTcl\sinstall\r\nwhich\sis\sthe\sright\splace\sfor\sany\sTM\scontaining\sbinary\sparts\sto\sget\r\ninstalled.\r\n\r\nHowever,\sTcl\spermits\scustomization\sof\s$(libdir).\s\sOne\splace\sthis\sis\r\ncommonly\sused\sis\son\ssystems\swith\sboth\s32-\sand\s64-\sbit\scollections\r\nof\sbinaries\sinstalled.\s\sOn\ssuch\ssystems\sa\s64-bit\sbuild\sof\sTcl\smight\r\nbe\scustomized\sto\sinstall\sinto\sa\s$(libdir)\slike\s/usr/lib64\s.\s\sThat\spath\r\ncan\snever\sbe\sconstructed\sfrom\sthe\sTM\sdefaults,\sbecause\sthat\r\ndefault\shardcodes\sin\sthe\slast\selement\s"lib".\r\n\r\nBy\sanalogy,\sthe\solder\s[tclPkgUnknown]\spackage\sdiscovery\r\nsystem\spotentially\shas\sthe\ssame\sproblem,\sand\shas\sworked\r\naround\sit\svia\sthe\svariable\s::tcl_pkgPath\swhere\sthe\sactual\r\nconfigured\svalue\sof\s$(libdir)\sgets\sstored\sand\sretrieved\sto\r\neventually\sfind\sits\sway\sonto\sthe\s$::auto_path\s.\s\sIt's\sa\srather\r\nugly\ssolution\sand\sI'm\snot\srecommending\scopying\sit.\s\sJust\r\nnoting\sthat\sthis\sis\snot\sa\snew\sproblem\sto\ssolve.\r\n\r\nI\sthink\sthe\sright\splace\sto\sfind\sthe\svalue\sis\sin\sthe\sresult\r\nreturned\sby\sthe\scommand\r\n\r\n[tcl::pkgconfig\sget\slibdir,runtime]\r\n\r\nThis,\sof\scourse,\smeans\swe\swill\shave\sa\srenewed\sinterest\r\nin\smaking\sthat\scommand\sactually\swork.
J icomment The\ssecond\sdefault\scould\sbe\sdescribed\sas\sdownright\sdangerous\sfor\sembedding\s\r\nprograms\sand\sstarpacks.\s\sIt's\salso\ssurprising\sif\s[info\snameofexe]\shappens\sto\s\r\nbe\sa\ssymlink.\r\n\r\nWhat\swould\sit\stake\sto\sfix\sthis?\s\sIs\s[tcl::pkgconfig\sget\slibdir,runtime]\s\r\nstill\sunreliable\sfor\sthis\spurpose?\r\n\r\n(anecdotally,\sI\sdon't\ssee\sany\sbinary\s.tm's\sin\sthe\swild\sso\sI'm\stempted\sto\s\r\nargue\sfor\sremoving\sthe\ssecond\sdefault\saltogether\s..)
J login aspect
J mimetype text/plain
J severity Minor
K 2990516fffffffffffffffffffffffffffffffff
U aspect
Z 00e46c2d0d39c7d26780f8eb5f7aac0c