Skip to content
Tcl Source Code Artifact [7edb53d31a]
Login

Artifact [7edb53d31a]

Artifact 7edb53d31a49922b27f908c8a4bc2ba0ae6fb82f:

Ticket change [7edb53d31a] - Ticket [695441ffffffffff|695441ffff] <i>tcl_findLibrary does not look in $::auto_path</i> status still Open with 4 other changes by dgp on 2003-03-03 09:01:01.
D 2003-03-03T09:01:01
J icomment Logged\sIn:\sYES\s\nuser_id=80530\n\nmy\sstrong\spreference\sis\sthat\sno\snew\spackage\s\nuses\s[tcl_findLibrary],\sand\spackages\sthat\ncurrently\suse\s[tcl_findLibrary]\sshould\stry\sto\nmove\saway\sfrom\sit.\n\n[tcl_findLibrary]\sexists\sto\ssolve\sa\sproblem\sthat\npackages\sare\smuch\sbetter\soff\sjust\snot\ncreating\sfor\sthemselves\sin\sthe\sfirst\splace.\n\nFor\syour\sexample,\sjust\sbe\ssure\sto\sinstall\s\nall\sfiles\sof\sFoo\s1.0\s[*]\s--\slibFoo.so,\sfooInit.tcl,\nand\spkgIndex.tcl\s\s--\sall\sin\sthe\ssame\sinstallation\ndirectory.\s\sThen,\spkgIndex.tcl\sshould\scontain:\n\npackage\sifneeded\sFoo\s1.0\s[list\ssource\s[file\sjoin\s$dir\nfooInit.tcl]]\n\nAnd\sfooInit.tcl\sshould\scontain:\n\nload\s[file\sjoin\s[file\sdirname\s[info\sscript]]\slibFoo[info\nsharedlibextension]]\sFoo\n\nSince\syour\spackage\sincludes\sbinary\sfiles,\sit\sshould\nbe\sinstalled\sonly\son\san\sappropriate\splatform,\seither\nunder\sTCL_EXEC_PREFIX,\sor\ssomewhere\selse\nthat\swill\sbe\splaced\son\sauto_path\sonly\son\sappropriate\nplatforms.\n\nI\sbelieve\sthis\sapproach\sis\swhat\sTEA2\srecommends.\n\nThe\solder\sstyle\sof\sinstalling\sbinary\sparts\sunder\nTCL_EXEC_PREFIX\sand\scross-platform\sparts\nunder\sTCL_PREFIX\sis\swhat\sled\sto\sthe\sneed\nfor\s[tcl_findLibrary]\sto\sallow\sthe\spackage\sto\sfind\nits\smissing\shalf.\s\sThe\sonly\sbenefit\sof\sthat\sscheme\nwas\sto\ssave\sdisk\sspace\son\sfile\sservers\sserving\nmulti-platform\sclients,\sand\sthat's\slargely\san\noptimization\sof\sa\sbygone\sera.\s\sMuch\sbetter\sfor\nruntime\ssanity\sand\sfor\suninstall\scapability\sto\nput\sall\sparts\sof\san\sinstalled\spackage\sin\sjust\none\splace.\s\s\n\n[*]\sFWIW,\sI'd\srather\syou\snamed\sthe\spackage\n"foo"\srather\sthan\s"Foo".\n
J login dgp
J mimetype text/plain
J username dgp
K 695441ffffffffffffffffffffffffffffffffff
U dgp
Z b804781dc16a4dd9dcb4f68b19ba0849