Tcl Source Code

View Ticket
Login
2026-10-14
21:38 • Closed ticket [9336f1907d]: Default build fails on OpenIndiana: non-POSIX find -... artifact: 0a2714a0dd user: jan.nijtmans
20:26
Fix [9336f1907d]: remove empty directories from the zipfs VFS with POSIX find options check-in: e1bd512f91 user: jan.nijtmans tags: core-9-0-branch
13:18
Fix [9336f1907d]: remove empty directories from the zipfs VFS with POSIX find options check-in: 57f8022596 user: jan.nijtmans tags: trunk, main
2026-10-11
20:38 • New ticket [9336f1907d] Default build fails on OpenIndiana: non-POSIX find -empt... artifact: 8c8e2e921d user: serhiy.storchaka
19:43
Fix [9336f1907d]: remove empty directories from the zipfs VFS with POSIX find options. -empty and -d... closed check-in: 3a373cb84f user: serhiy.storchaka tags: unix-makefile-posix-find

Ticket UUID: 9336f1907db47f17051e274f423882b90d088ee
Title: Default build fails on OpenIndiana: non-POSIX find -empty -delete in unix/Makefile.in
Type: Bug Created on: 2026-10-11 20:38:46
Submitter: serhiy.storchaka Assigned to: aku
Subsystem: 53. Configuration and Build Tools Severity: Minor
Priority: 5 Medium Last modified: 2026-10-14 21:38:24
Status: Closed Closed by: jan.nijtmans
Resolution: Fixed Closed on: 2026-10-14 21:38:24
Version: 9.1.0
Description:

On OpenIndiana (illumos), the default build (./configure && gmake) fails while creating the library zip:

find: bad option -empty
find: [-E] [-H | -L] path-list predicate-list
gmake: *** [Makefile:799: libtcl9.1.1.zip] Error 1
The rule in unix/Makefile.in, added for [b322938e08], runs find ${TCL_VFS_ROOT} -type d -empty -delete. Neither -empty nor -delete is POSIX, and illumos find has neither. The build works with GNU find first in PATH or with --disable-zipfs. core-9-0-branch has the same rule; 8.6 is not affected.

Proposed fix in branch unix-makefile-posix-find: find ${TCL_VFS_ROOT} -depth -type d -exec rmdir {} + 2>/dev/null || :

User Comments:
jan.nijtmans added on 2026-10-14 21:38:24:

Merged to [57f802259663da4d|trunk] and core-9-0-branch

Many thanks!