Skip to content
Tcl Source Code Artifact [70cf7adf51]
Login

Artifact [70cf7adf51]

Artifact 70cf7adf5163342e04254289d66b4a160465121edaa7932ddddbd2e69c9a1559:

Ticket change [70cf7adf51] - New ticket [006bef5d75f6fd6b|006bef5d75] <i>Tcl cannot run from an arbitrary build directory with --disable-zipfs</i>. by apnadkarni on 2026-05-20 13:45:32.
D 2026-05-20T13:45:32.195
J assignee nobody
J closer nobody
J cmimetype text/x-markdown
J comment (Below\sis\swith\sreference\sto\sthe\sautoconf\sbuild\ssystem.\sThe\snmake\sbuild\salso\shas\sthe\ssame\sissue\swith\sOPTS=noembed.)\r\n\r\nIf\sTcl\sis\sbuilt\sat\san\sarbitrary\slocation,\ssay\sin\s`/tmp/90`\sand\sconfigured\sas\s\r\n\r\n```\r\n/mnt/c/src/tcltk/wip/tcl/unix/configure\s--prefix=/tmp/90install\s--disable-zipfs\r\n```\r\n\r\nan\sattempt\sto\srun\sit\sas\sfollows\sfails.\r\n\r\n```\r\napnadkarni@IO:/tmp/90$\sLD_LIBRARY_PATH=`pwd`\s./tclsh\r\napplication-specific\sinitialization\sfailed:\sCannot\sfind\sa\susable\sinit.tcl\sin\sthe\sfollowing\sdirectories:\r\n\s\s\s\s/tmp/90install/lib/tcl9.0\s/tmp/lib/tcl9.0\s/lib/tcl9.0\s/tmp/library\s/library\s/tcl9.0/library\s/tcl9.0.4/library\s/tcl9.0.4/library\r\n\r\nThis\sprobably\smeans\sthat\sTcl\swasn't\sinstalled\sproperly.\r\n```\r\n\r\nNote\s`make\stest|shell`\ssucceed\sbecause\sthey\sset\s`TCL_LIBRARY`\sto\sthe\slibrary\sdirectory\sin\sthe\ssources.\r\n\r\nI\sstrongly\ssuspect\sthis\sis\snot\snew\sto\s9.0\sbut\snow\shas\sassumed\smore\simportance\sfor\stwo\sreasons.\r\n\r\n-\sWhile\sthe\sabove\swould\sstill\sfail\sprior\sto\sTIP\s732,\sbuilds\swithin\sthe\sfirst\slevel\sbelow\sthe\sconfigure.ac\sdirectory\swould\sstill\swork\sbecause\sof\sTcl\swould\sgo\ssearching\sin\smultiple\splaces\shunting\sfor\sinit.tcl.\sTIP\s732\srestricts\sthis.\sIn\sany\scase,\srestoring\sthe\searlier\ssearches\sdoes\snot\sfix\sthe\sabove\sproblem.\r\n\r\n-\sBeing\sable\sto\srun\stclsh\sfrom\sthe\sbuild\sdirectory\shas\sbecome\smore\simportant\sdue\sto\sthe\srecent\schanges\sin\ssupport\sof\sa\sBI\sinstaller\sfor\spackaging\spurposes\swhen\sbuilding\sextensions\s(including\sTk).\sAdmittedly,\sa\sselfish\sinterest.\r\n\r\nI\spropose\sto\sfix\sthis\sby\sintroducing\sadditional\skeys\sto\sthe\s`tcl::pkgconfig`\scommand.\sThe\scommand\salready\sincludes\skeys\s`scriptdir,install`,\s`scriptdir,runtime`,\s`bindir,runtime`\setc.\sI\swould\slike\sto\sadd\sthe\skey\s`scriptdir,buildtime`\swhich\swould\shold\sthe\sscript\sdirectory\spath\sas\sof\sbuild\stime.\sThe\ssearch\sfor\sinit.tcl\swould\sthen\sinclude\sthis\spath\s(it\salready\sincludes\sthe\sprevious\stwo).\r\n\r\nThe\skeys\sreturned\sby\stcl::pkgconfig\sare\snot\sdocumented\sso\sI\sdon't\sthink\sadding\snew\skey(s)\sneeds\sa\sTIP\sbut\shappy\sto\swrite\sone\sif\sfolks\sare\shappy\sto\svote!\r\n\r\nAny\scomments\sor\salternative\ssolutions?
J foundin 9.0
J is_private 0
J login apnadkarni
J priority 5\sMedium
J private_contact 9546e9877f1a8899e25a89082561ee694e7fb402
J resolution None
J severity Important
J status Open
J submitter apnadkarni
J subsystem 53.\sConfiguration\sand\sBuild\sTools
J title Tcl\scannot\srun\sfrom\san\sarbitrary\sbuild\sdirectory\swith\s--disable-zipfs
J type Bug
K 006bef5d75f6fd6b12cdbb774cfa1faef94c7835
U apnadkarni
Z 77c5957b2ffe7563e0b9eb788e856540