To be able to create a package index for Tk as
a loadable package using [pkg_mkIndex], one
must be able to load Tk. That, in turn,
requires an X DISPLAY on Unix.
This means one cannot create an index during
an install of Tk as a loadable package in the
conventional way on a headless box -- common
installation practice on Unix.
Logged In: YES
user_id=72656
I personally think that the requirement for installing Tk
(a UI toolkit) to need a display is logical, and one that
we don't want to work around. The obvious work-around is
to create a working pkgIndex.tcl for the install case,
which may be the sensical things to do anyway.
Logged In: YES
user_id=80530
This is less important now, since Tk comes with
a pkgIndex.tcl file.
Logged In: YES
user_id=75003
This issue still affects any package dependent on Tk and
trying to use [pkg_mkIndex] to create their index file.
I concede that this is the minority, i.e. most packages come
with a manually crafted "pkgIndex.tcl". An exception is
TkHTML which does use [pkg_mkIndex].