View Ticket
Ticket Hash: 3d29a7123abd9e58b603a8b30489e56c5a2a9ce4
Title: support embedded teapot metadata in files inside AS zips (fetching Img and dependencies fails)
Status: Open Type: Code_Defect
Severity: Important Priority:
Subsystem: Resolution:
Last Modified: 2018-06-21 13:35:39
Version Found In:
User Comments:
anonymous added on 2018-06-21 13:35:39:
Today I saw someone ask about installing Img on macosx.  I couldn't recommend teapot-client because it fails:

 - teapot.rkeene.org contains Img 1.4
 - teapot.activestate.com contains Img 1.4.2

thus Activestate wins:

$ tclsh teapot-client.tcl get vfs x86_64 macosx Img
Fetched Extensions:
  Img v1.4.2
$ find vfs/
vfs/
vfs/lib
vfs/lib/Img1.4.2
vfs/lib/Img1.4.2/Img.tcl
vfs/lib/Img1.4.2/pkgIndex.tcl

notice that the dependencies aren't picked up, because teapot-client expects zip packages to include teapot.txt.  Instead:

$ grep -R Meta\ require vfs/
vfs/lib/Img1.4.2/Img.tcl:# Meta require         {Tcl 8.4}
vfs/lib/Img1.4.2/Img.tcl:# Meta require         {Tk 8.4}
vfs/lib/Img1.4.2/Img.tcl:# Meta require         {img::bmp 1.4.2-2}
vfs/lib/Img1.4.2/Img.tcl:# Meta require         {img::gif 1.4.2-2}
vfs/lib/Img1.4.2/Img.tcl:# Meta require         {img::ico 1.4.2-2}
vfs/lib/Img1.4.2/Img.tcl:# Meta require         {img::jpeg 1.4.2-2}
vfs/lib/Img1.4.2/Img.tcl:# Meta require         {img::pcx 1.4.2-2}
vfs/lib/Img1.4.2/Img.tcl:# Meta require         {img::pixmap 1.4.2-2}
vfs/lib/Img1.4.2/Img.tcl:# Meta require         {img::png 1.4.2-2}
vfs/lib/Img1.4.2/Img.tcl:# Meta require         {img::ppm 1.4.2-2}
vfs/lib/Img1.4.2/Img.tcl:# Meta require         {img::ps 1.4.2-2}
vfs/lib/Img1.4.2/Img.tcl:# Meta require         {img::sgi 1.4.2-2}
vfs/lib/Img1.4.2/Img.tcl:# Meta require         {img::sun 1.4.2-2}
vfs/lib/Img1.4.2/Img.tcl:# Meta require         {img::tga 1.4.2-2}
vfs/lib/Img1.4.2/Img.tcl:# Meta require         {img::tiff 1.4.2-2}
vfs/lib/Img1.4.2/Img.tcl:# Meta require         {img::window 1.4.2-2}
vfs/lib/Img1.4.2/Img.tcl:# Meta require         {img::xbm 1.4.2-2}
vfs/lib/Img1.4.2/Img.tcl:# Meta require         {img::xpm 1.4.2-2}

I suppose teapot-client should, if a zip doesn't contain teapot.txt, look inside all its *.tcl files for embedded teapot data.