Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Make pkgIndex.tcl generation include Tcl files

Closed / Out of Date1077363fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 16 years ago
Descriptionplain2004-12-02 07:24:16
The way that pkgIndex.tcl is generated right now is
primitive.  It either only knows about the shared
library or requires serious messing with the Makefile.

If I include any Tcl files to be installed, for example
in configure.in,

TEA_ADD_TCL_SOURCES([runtime/pgtcl.tcl])

...and that files does a "package provide Pgtcl 1.4",
for example, it's not automatically picked up in the
pkgIndex.tcl, but it can be, very easily...

When doing an install, simply cd to the install
directory and execute tclsh with a "pkg_mkIndex ." as
the program.  This will generate a correct pkgIndex.tcl
that will pick up the shared library and any other
packages defined by .tcl files and/or other shared
libraries in the target directory.
dgp Ticket [1077363fff]: 1 change [History diff]2005-01-26 01:30:40
hobbsplain2010-08-14 01:09:46
The sample extension shows how to do auto-gen or hand-crafted pkgIndex.tcl, and I've assisted both styles for other extensions.  I don't think this is valid for the latest sample cvs.
sf-robotplain2010-09-30 02:22:35
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
Log in (anonymous is fine) to add a comment.