<i>zipfs info on mountpoint of executable returns zero offset in field 4</i> status still Open with 3 other changes
by
.
D 2024-12-04T06:50:45.707
J icomment For\sthe\srecord,\sbelow\sis\sa\ssummary\scomparison\sof\sthe\scurrent\simplementation\sof\szipfs\sand\sJulian's\spatched\sversion.\r\n\r\nCurrently,\sthe\sUnix\sautoconf\sbuild\sappends\sthe\szip\sfile\sto\sthe\sexecutable/shared\slibrary\sand\sthen\sdoes\sa\s`zip\s-A`\sto\sfix\sup\sthe\soffsets\sin\sthe\szip\sToC.\r\n\r\nThe\sWindows\snmake\son\sthe\sother\shand\suses\sTcl's\sown\s`zipfs\smkimg`\scommand\sfor\sthe\ssame\spurpose\swhich\sdoes\snot\sfix\sup\sthe\soffsets\sin\sthe\szip\sToC.\r\n\r\nThe\sdifference\sshows\sup\sin\stwo\sways.\s*Some*\sexternal\sutilities,\slike\s`unzip`,\sdisplay\sa\swarning\son\sbinaries\sconstructed\swithout\sadjustment\sof\sthe\soffsets\s(as\sin\sthe\snmake\scase,\sor\sif\s`zip\s-A`\sis\snot\sinvoked\sin\sthe\sautoconf\scase)\r\n\r\n```\r\nArchive:\s\stcl90.dll\r\nwarning\s[tcl90.dll]:\s\s2947584\sextra\sbytes\sat\sbeginning\sor\swithin\szipfile\r\n```\r\n\r\nNote\sthis\sdoes\snot\saffect\sactual\soperation\sof\sthe\sunzip\scommand.\sAlso,\sunlike\s`unzip`,\s`7z`\sdoes\snot\sreport\sthis\seither\sas\san\serror\sor\swarning.\r\n\r\nThe\sproblem\swith\sthe\sautoconf\sbuild\showever,\sis\sthat\s`zipfs\sinfo`\swhich\sis\s**documented**\sas\sreturning\sthe\soffset\sof\sthe\sarchive\swithin\sthe\sexecutable\sinstead\sreturns\s0.\r\n\r\n```\r\n%\szipfs\sinfo\s//zipfs:/lib/tcl\r\n/home/apnadkarni/tcl/9.0.0/lib/libtcl9.0.so\s0\s0\s0\r\n```\r\n\r\nThus\s`zipfs\sinfo`\scannot\sbe\sused\sby\sTcl\sutilities\sto\ssplit\sattached\szip\sarchives\sin\swrapped\sbinaries.\r\n\r\nThe\spatch\sfrom\sJulian,\s**in\sconjunction\swith\sthe\sremoval**\sof\sthe\s`zip\s-A`\sstep\sfrom\sthe\sautoconf\sbuild\sfixes\sthis\sat\sthe\scost\sof\sthe\swarning\sabove.\r\n\r\n```\r\n%\szipfs\sinfo\s//zipfs:/lib/tcl\r\nC:/src/tcltk/wip/tcl/win/Release_AMD64_VC1939/tcl90.dll\s0\s0\s2947584\r\n```\r\n\r\nwhere\sthe\slast\selement\sis\sthe\soffset\sfor\ssplitting\sthe\swrapped\sbinary.\r\n\r\nEven\sthough\sthis\sgenerates\sthe\swarning\sfrom\s`unzip\s-l`,\sit\sis\sproposed\sthat\sthe\spatch\sbe\saccepted\sand\sadditionally\sthe\s`zip\s-A`\sstep\sbe\sremoved\sbecause\sthe\swarning\sis\sbenign\sas\swell\sas\slimited\sonly\sto\ssome\sutilities.\sMoreover,\sthe\sability\sto\sdirectly\smanipulate\sthe\ssplits\sand\sre-wrap\sfrom\swithin\sTcl\seasily\swithout\sre-parsing\sis\sconsidered\smore\suseful.
J login apnadkarni
J mimetype text/x-markdown
K aaa84fbbc59fc039788c080a8cd32d2f73316db9
U apnadkarni
Z 4d17cff37ed1b3e79bdaf30a6df606ff