Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6be13d997094fd71719fd46487e9086eb272abd1ed6717fbaf6e15eabcaaea3f
Ticket: aaa84fbbc59fc039788c080a8cd32d2f73316db9
zipfs info on mountpoint of executable returns zero offset in field 4
User & Date: juliannoble2 on 2024-11-24 11:08:44
Changes

  1. icomment:
    patch info:
    Makes archives created with mkzipfs compatible with those made simply by 'cat file.zip >> tclstub.exe'
    
    ie exe-preamble is external to zip
    
    I believe androwish got this right. It is also compatible with the way TOBE works (a mentioned influence in the TIP) and the description of how to construct a combined exe/zip in TIP 430.
    
    zipfs info <mountpoint> will then report the offset correctly and allow easy splitting of the exe portion of a supplied kit.
    
    This does not stop existing exezips from working.
    
    It is inline with TIP 430 - whereas the existing situation is a change from that, and I have not yet seen any justification for why the build system (using zip -A) and mkzipfs internalizes the preamble and breaks 'zipfs info'.  
    
    The alternative would be to adjust the code to make zipfs info work out the offset for internalized preambles. As mentioned in my other posts I think that is more complicated and error prone and would require more documentation.
     
    I believe in concert with this the build system should stop using 'zip -A' - which would also possibly give greater compatibility for systems were the system zip doesn't have an offset adjustment flag, or just doesnt' work (e.g on windows it works when run from mingw - but not directly from cmd.exe)
    
  2. login: "juliannoble2"
  3. mimetype: "text/plain"