[Starkit] filleting tcllib

Steve Blinkhorn steve at prd.co.uk
Wed May 4 13:43:55 CEST 2005


> 
> Steve Blinkhorn wrote:
> > 
> > Tcllib is now quite big (4.5MB+), and individual packages often have
> > significant dependencies.  Including the whole of tcllib in a starkit
> > that is going to be downloaded by many users for a single usage
> > introduces a significant download penalty, particularly for dialup
> > users, but is unlikely to be of concern to those who are downloading
> > and installing a conventional Tcl/Tk installation.
> > 
> > Has anyone given any thought to a method for filleting tcllib, i.e.
> > specifying a list of packages known to be required, and ensuring that
> > those packages plus all dependencies are extracted and placed
> > appropriately in a .vfs tree?   Doing it by hand is moderately
> > painful, and I wonder if some clever use of [package ifneeded],
> > perhaps grabbing all the pkgIndex.tcl files and programmatically
> > rewriting them to replace the "source [file join...." element with a
> > "[file copy..." or two might be a way forward.
> > 
> 
> Most of the time I only need one or two packages and figuring out
> which to include has been relatively simple sofar. 
> 
> Perhaps rather than a programmatic solution, we should provide 
> a chart depicting which packages are required by which others?

I suppose what I am saying is that it's getting to the point with some
of our work where figuring out what to include is not so simple, but
considered use of the pkgIndex.tcl files and perhaps grep'ing for
package require lines might yield a tool of use to several if not
many (not limited just to tcllib, of course).

Regards,


-- 
Steve Blinkhorn <steve at prd.co.uk>


More information about the Starkit mailing list