Re: vfs 1.4 updates
Jeff Hobbs <[email protected]> Tue, 2 Dec 2008 18:40:41 -0800 (PST)
| Newsgroups | gmane.comp.lang.tcl.starkit |
|---|---|
| Message-ID | <[email protected]> |
Andreas Kupries wrote:
>> I plan to make a vfs 1.4 that ...
>>
>> 1. Removes all the mac classic stuff (done)
>> 2. Removes zipvfs and mk4vfs as packages (vfs::zip and vfs::mk4 have
>> been around for a while).
>> 3. Allows only for the toplevel pkgIndex.tcl.in in the build setup (no
>> longer have the pseudo-functional library/pkgIndex.tcl).
>> 4. Removes vfs::normalize from vfslib.tcl (couldn't find any users).
>> 5. REMOVE tclIndex FOREVER
>> 6. Update to TEA 3.7
>> 7. May also fix a few bugs along the way
>>
>> Only (2) and (5) I believe may be problematic to existing code. I still
>> found uses of 'package require mk4vfs' in our own starkit build stuff
>> (couldn't find users of zipvfs).
>>
>> Removing the tclIndex is a forward improvement, but it means I will
>> preload the vfsUtils.tcl file (which all vfses require) at dll load
>> time. What you also lose is the vfs::*::Mount autoloading. I believe
>> it was terribly evil to use this crutch, and it breaks in insidious
>> ways. If you want vfs::mk4, then require that, not just vfs and hope
>> the rest will autoload.
>>
>> Comments, concerns?
>
> First, attached is the set of local vfs changes I have here. Mainly code to
> make the template code proper packages instead of tclIndex based. Ignore the
> Makefile change. We do this to avoid unwanted local Makefile regen and such
The cvs for tclvfs now has an initial 1.4 with radically changed
packaging setup. I've only tested it on Windows and Linux, but it
gets through 'make test' better than before.
I'm sure this will have repercussions on some other work, especially
with 'mk4vfs' no longer a defined package. You can simulate with:
catch {package require bogus} ; # make sure something has been loaded
package ifneeded mk4vfs [lindex [package versions vfs::mk4] end] {
package provide mk4vfs [package require vfs::mk4]
}
Please give it a try and let me know if anything goes horribly wrong.
Thanks,
Jeff