Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2022-09-23
15:18 • Ticket [22ab2ae64a] Build with minizip broken status still Closed with 6 oth... artifact: 614a1b7332 user: anonymous
2022-09-22
12:42 • Closed ticket [22ab2ae64a]. artifact: 76cd73ef8e user: jan.nijtmans
12:30
Fix [22ab2ae64a]: Build with minizip broken (actually, only a problem in 8.7, but let's keep tinydir... check-in: 696144dced user: jan.nijtmans tags: core-8-6-branch
2022-09-20
21:02 • Ticket [22ab2ae64a] Build with minizip broken status still Open with 4 other... artifact: 12bb6aaae8 user: jan.nijtmans
2022-09-19
17:22 • Ticket [22ab2ae64a]: 3 changes artifact: b8b6958df4 user: anonymous
17:21 • Add attachment patch to ticket [22ab2ae64a] artifact: 62d2a5bedb user: anonymous
17:20 • Add attachment log to ticket [22ab2ae64a] artifact: 59341fc466 user: anonymous
17:19 • New ticket [22ab2ae64a] Build with minizip broken. artifact: b6e22e0e6c user: anonymous

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.