.
D 2018-11-21T13:13:04.012
J icomment Zipfs\sbuilds\sare\sgenerating\sa\sfile\ssystem\sthat\sis\sonly\sreadable\sfrom\sthe\sversion\sof\sTcl\sthat\sis\srunning.\sWe\shave\sour\slittle\s"museum\sof\sTcl"\sbecause\sin\san\sinstall\sthe\slatest\sTcl\sis\scompeting\sin\sa\sfile\ssystem\swith\swhatever\sTcls\smay\shave\scome\sbefore.\sBreaking\s/library\sup\sinto\schunks\sfor\szipfs\sbuilds\sis\san\sunneeded\scomplication.\r\n\r\nIn\stesting\szipfs\swas\scausing\sissues\swith\ssafe\sTcl\sinterpreters\sbecause\s(depending\son\senvironment)\sthere\swas\ssome\sinstall\sfoolery\safoot\sto\sobscure\score\spackages\sthat\swere\snot\sSafe\sTcl\sworthy.\sI\sassembled\sthe\sspirit\sof\sthose\svarious\sinstall\smechanism\sinto\sa\smanifest\sfile\sthat\stells\sthe\sinterpreter,\sfor\sclear\sand\sfor\scertain,\swhich\spackages\smay\sbe\sloaded\sin\sa\snormal\sinterpreter\sand\swhich\spackages\smay\sbe\sloaded\sin\sa\ssafe\sinterpreter.\r\n\r\nClearly\sthe\send\sof\sthe\sinit.tcl\sfile\swas\snot\sthe\splace\sfor\sthat\sbecause\sof\sthe\sissue\sraised\sin\sthis\sticket.\r\n\r\nThe\ssolution\sI've\scome\sup\swith\sis\sto\stake\swhat\swas\sin\sthat\smanifest\sand\smove\sit\sout\sof\sinit.tcl\sand\sinto\sa\sfile\sthe\sinstallers\sand\sTcl\swill\signore\s(but\sstill\smaintained\sin\sthe\s/library\sfile\ssystem\svia\sscm)\sas\smanifest.txt.\r\n\r\nWhen\sbuilding\szipfs\sfile\ssystems,\swe\scopy\s/library\sinto\sthe\sVFS.\sNow\sthere\swill\sbe\sone\sextra\sstep,\safter\sthe\scopy\sis\scompleted,\sto\srename\smanifest.txt\sto\spkgIndex.tcl.\sBecause\stcl_library\sis\salready\sin\sthe\sauto_path\sof\san\sunmodified\sTcl\sinterpreter,\sall\sof\sthe\spackages\swe\sare\slooking\sto\sexpose\s(either\sin\sa\s"real"\sinterp\sor\sa\s"safe"\sinterp)\sare\snot\sexposed\sin\sa\sway\sthat\smake\ssense.\r\n\r\nAnd\sin\sthe\scase\sof\sNmake,\syou\scan\scontinue\sto\suse\syour\scurrent\sinstall\sprocedure\sand\sthe\smanifest.txt\sfile\swill\ssimply\sbe\signored.\sThough\sit\swould\sbe\snice\sto\sbring\snmake\sup\sto\sspeed\son\show\sto\swrap\s/library\sinto\sa\svfs\sthat\sis\sattached\sto\sthe\stcl.dll\sfile.\r\n\r\nI\ssee\sthat\swe\sare\sdeputizing\sTcl\sfor\sa\scouple\sof\sother\ssteps\sin\sthe\snmake\sbuild\sprocess.\sPerhaps\swe\scould\suse\sthe\szip\sencoded\sin\sthe\score\snow\sto\sdo\sthe\swrapping?\sWhat\sother\splatforms\sare\sdoing\sis\scopying\s/library\sto\slibtcl.vfs,\sand\sthen\susing\sa\snative\szip\sprogram\sto\sbuild\stclVERSION.zip.\r\n\r\nFor\sstatic\slibraries,\sthis\szip\sfile\sis\scopied\snext\sto\sthe\slibtclVERSION.a\sfile.\sFor\sdynamic\sbuilds,\stclVERSION.zip\sis\sconcatenated\sonto\sthe\send\sof\sthe\slibtclVERSION.(so|dll|dylib),\sand\sthen\swe\sperform\sa\scall\sto\szip\sto\scleanup\sthe\soffset.\r\n\r\nInside\sthe\stip430\simplementation\swe\shave\sa\szip\sencoder\sthat\scould\sdo\sthis\sentire\sprocess\sin\sone\sstep\r\n\r\nI\shave\sput\stogether\sa\swrapper\stcl\sscript\s(checked\sinto\s[core-8-branch])\sand\sa\sprovisional\spatch\sto\smakefile.vc\sto\sutilize\sit\s(in\sthe\s[nmake-zipfs]\sbranch).\sI'm\sa\slittle\srusty\son\smy\svisual\sstudio,\sso\sif\sJan\sor\sfvogel\scould\stry\sthat\sbranch\sout\sthat\swould\sbe\sgreat.\r\n\r\nThe\spatch\seliminates\sinstalling\sfiles\sand\sinstead\swraps\s/library\sin\sa\szipfs\ssystem\sattached\sto\sthe\stcl.dll\s(for\sdynamic\sbuilds)\sor\stcl$(VERSION).zip,\swhich\sis\sdropped\sin\snext\sto\sthe\stclsh.exe\sduring\sinstall.\sI\sthink\sI\sgot\sit\sright,\sbut\sit\snever\shurts\sto\stest.\sI\shave\stested\sthat\sthe\swrapper\sscript\sdoes\sindeed\swork\son\sMac.\r\n\r\n--Sean
J login hypnotoad
J mimetype text/x-fossil-wiki
K 4e812aadae68af384605a5e78845abe40206fbe9
U hypnotoad
Z 443ce27db82fe7afc433b9bffb8e7a7c