Clone
ssoberni <stefan.sobernig@wu-wien.ac.at>
committed
on 22 Nov 10
- Conditionally disabling redefine protection (based on the presence of a global var ::nsf::bootstrap) failed due to the result fl… Show more
   - Conditionally disabling redefine protection (based on the presence       of a global var ::nsf::bootstrap) failed due to the result flag not       being set to TCL_OK in this case.     - Adding a (redundant) [package provide nsf /version/] to the ifneeded       script in nsf's pkgIndex.tcl. Background: [load] is only executed once       (leaving aside [unload]) for a given interp. Hence, the       initialization function and its Tcl_PkgProvide() call are only       performed once. A subsequent [package forget] and [package req]       barfs because the package version information is removed internally       upon [package forget]:

     "attempt to provide package nsf 2.0.0 failed: no version of package

     nsf provided"

     The Tcl docu provides hints on this requirement (for C

     extensions); see man for [package provide]:

     "[package provide] is typically invoked once as part of an ifneeded

     script, and again by the package itself when it is finally loaded."

     Note that most C-extension packages (sqlite, tdom) do not meet this

     requirement.

Show less