Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Default build fails on OpenIndiana: non-POSIX find -empty -delete in unix/Makefile.in

Closed / Fixed9336f1907db47f17051e274f423882b90d088eefCreated 52 days agoUpdated 49 days ago
Descriptionwiki2026-10-11 20:38:46
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 || :

Referenced by3
  • e1bd512f91Fix [9336f1907d]: remove empty directories from the zipfs VFS with POSIX find options check-in2026-10-14 20:26:55
  • 57f8022596Fix [9336f1907d]: remove empty directories from the zipfs VFS with POSIX find options check-in2026-10-14 13:18:50
  • 3a373cb84fFix [9336f1907d]: remove empty directories from the zipfs VFS with POSIX find options. -empty and -delete are not POSIX; illumos find lacks them, so the default build failed on OpenIndiana. check-in2026-10-11 19:43:19
jan.nijtmanswiki2026-10-14 21:38:24

Merged to [trunk] and core-9-0-branch

Many thanks!

Log in (anonymous is fine) to add a comment.