Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Build with minizip broken

Closed / Fixed22ab2ae64ab2dd813719a985a6f125631ab1ba74Created 4 years agoUpdated 4 years ago
Descriptionplain2022-09-19 17:19:06
I build Tcl in a container.  The "zip" utility is not installed,
so the build uses the bundled "minizip".  The latest version of
minizip mis-handles symlinks, so in the zipfs that is attached to
the shared library the contents of subdirectories is missing.
This means that e.g. "package require tcltest" fails.

Using "stat" instead of "lstat" in tinydir.h seems to fix the
problem.
Referenced by1
  • 696144dcedFix [22ab2ae64a]: Build with minizip broken (actually, only a problem in 8.7, but let's keep tinydir.h the same in all branches) check-in2022-09-22 12:30:11
anonymousplain2022-09-19 17:22:52
I am assuming that the same issue occurs on all branches that
have the latest minizip.
jan.nijtmanswiki2022-09-20 21:02:09

Well, the "minizip" included with Tcl is modified, this - exactly - is the danger doing that.

Shouldn't this be reported upstream? https://github.com/cxong/tinydir/

jan.nijtmanswiki2022-09-22 12:42:56

Fixed now in all branches.

Thanks!

anonymous (claiming to be [email protected])plain2022-09-23 15:18:49
Thanks for merging the patch.

> Shouldn't this be reported upstream?
> https://github.com/cxong/tinydir/

In general, I agree.  I was not aware that tinydir was a project
independent of minizip.  That might make an upstream solution a little
bit more complex.
Log in (anonymous is fine) to add a comment.