Tcl Source Code

View Ticket
Login
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!